UNPKG

snapmaker-lunar

Version:

64 lines (51 loc) 2.89 kB
"use strict"; var _module$exports; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var _require = require("./slicer.js"), Slicer = _require.Slicer, SLICE_LASER = _require.SLICE_LASER, SLICE_CNC = _require.SLICE_CNC, MODEL_SUPPORT = _require.MODEL_SUPPORT, MODEL_REPAIR = _require.MODEL_REPAIR, MODEL_CHECK = _require.MODEL_CHECK, MODEL_SIMPLIFY = _require.MODEL_SIMPLIFY; var getpath = require("./getpath.js"); var slice = function slice(type, inputPath, outputPath, settingsPath) { var slice = new Slicer(type, inputPath, outputPath, settingsPath); return slice; }; var slice3DP = function slice3DP(inputPath, outputPath, settingsPath) { var slice = new Slicer(SLICE_LASER, inputPath, outputPath, settingsPath); return slice; }; var sliceLaser = function sliceLaser(inputPath, outputPath, settingsPath) { var slice = new Slicer(SLICE_LASER, inputPath, outputPath, settingsPath); return slice; }; var sliceCNC = function sliceCNC(inputPath, outputPath, settingsPath) { var slice = new Slicer(SLICE_CNC, inputPath, outputPath, settingsPath); return slice; }; var modelSupport = function modelSupport(inputPath, outputPath, settingsPath) { var slice = new Slicer(MODEL_SUPPORT, inputPath, outputPath, settingsPath); return slice; }; var modelRepair = function modelRepair(inputPath, outputPath, settingsPath) { console.log('modelRepair'); var slice = new Slicer(MODEL_REPAIR, inputPath, outputPath, settingsPath); return slice; }; var modelCheck = function modelCheck(inputPath, outputPath, settingsPath) { var slice = new Slicer(MODEL_CHECK, inputPath, outputPath, settingsPath); return slice; }; var modelSimplify = function modelSimplify(inputPath, outputPath, settingsPath) { var slice = new Slicer(MODEL_SIMPLIFY, inputPath, outputPath, settingsPath); return slice; }; module.exports = (_module$exports = { SLICE_LASER: SLICE_LASER, SLICE_CNC: SLICE_CNC, slice: slice, sliceLaser: sliceLaser }, _defineProperty(_module$exports, "sliceLaser", sliceLaser), _defineProperty(_module$exports, "sliceCNC", sliceCNC), _defineProperty(_module$exports, "sliceCNC", sliceCNC), _defineProperty(_module$exports, "modelSupport", modelSupport), _defineProperty(_module$exports, "modelSupport", modelSupport), _defineProperty(_module$exports, "modelRepair", modelRepair), _defineProperty(_module$exports, "modelRepair", modelRepair), _defineProperty(_module$exports, "modelCheck", modelCheck), _defineProperty(_module$exports, "modelCheck", modelCheck), _defineProperty(_module$exports, "modelSimplify", modelSimplify), _defineProperty(_module$exports, "modelSimplify", modelSimplify), _defineProperty(_module$exports, "getPath", getpath), _module$exports);