add process.outputPurgeTower to allow disabling them. update three quat inverse to invert.
This commit is contained in:
parent
2ba3637eed
commit
2184f412a1
5 changed files with 16 additions and 5 deletions
|
|
@ -339,6 +339,7 @@
|
|||
outputShortPoly: 100.0,
|
||||
outputMinSpeed: 10.0,
|
||||
outputCoastDist: 0,
|
||||
outputPurgeTower: true,
|
||||
outputLayerRetract: false,
|
||||
outputOriginCenter: true,
|
||||
outputLoopLayers: "",
|
||||
|
|
|
|||
|
|
@ -74,15 +74,16 @@
|
|||
if (!SDB[SEED]) {
|
||||
SDB[SEED] = new Date().getTime();
|
||||
if (!SETUP.s && API.feature.seed) {
|
||||
if (SETUP.debug) {
|
||||
return then();
|
||||
}
|
||||
platform.load_stl("/obj/cube.stl", function(vert) {
|
||||
CATALOG.putFile("sample cube.stl", vert);
|
||||
platform.compute_max_z();
|
||||
SPACE.view.home();
|
||||
setTimeout(() => { API.space.save(true) },500);
|
||||
then();
|
||||
if (!SETUP.debug) {
|
||||
API.help.show();
|
||||
}
|
||||
API.help.show();
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
|
@ -1360,6 +1361,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
function isMultiHead() {
|
||||
let dev = API.conf.get().device;
|
||||
return dev.extruders && dev.extruders.length > 1;
|
||||
}
|
||||
|
||||
function isBelt() {
|
||||
return UI.deviceBelt.checked;
|
||||
}
|
||||
|
|
@ -1796,6 +1802,7 @@
|
|||
gcodePauseLayers: UC.newInput(LANG.ag_paws_s, {title:LANG.ag_paws_l, modes:FDM, comma:true, show:isNotBelt}),
|
||||
outputLoopLayers: UC.newInput(LANG.ag_loop_s, {title:LANG.ag_loop_l, modes:FDM, comma:true, show:isBelt}),
|
||||
outputLayerRetract: UC.newBoolean(LANG.ad_lret_s, onBooleanClick, {title:LANG.ad_lret_l, modes:FDM}),
|
||||
outputPurgeTower: UC.newBoolean(LANG.ad_purg_s, onBooleanClick, {title:LANG.ad_purg_l, modes:FDM, show:isMultiHead}),
|
||||
|
||||
// SLA
|
||||
slaProc: UC.newGroup(LANG.sa_menu, null, {modes:SLA, group:"sla-slice"}),
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
firstLayerSeek = process.outputSeekrate,
|
||||
firstLayerRate = process.firstLayerRate,
|
||||
firstLayerMult = process.firstLayerPrintMult,
|
||||
purgeTower = process.outputPurgeTower || false,
|
||||
layerRetract = process.outputLayerRetract,
|
||||
layerno = 0,
|
||||
zoff = 0,
|
||||
|
|
@ -274,7 +275,7 @@
|
|||
|
||||
// generate purge block for given nozzle
|
||||
function purge(nozzle, track, layer, start, z, using) {
|
||||
if (extcount < 2 || isBelt) {
|
||||
if (!purgeTower || extcount < 2 || isBelt) {
|
||||
return start;
|
||||
}
|
||||
let rec = track[nozzle];
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ MOTO.CTRL = function (object, domElement, notify, slider) {
|
|||
lastQuaternion = new THREE.Quaternion(),
|
||||
// so camera.up is the orbit axis
|
||||
quat = new THREE.Quaternion().setFromUnitVectors(object.up, new THREE.Vector3(0, 1, 0)),
|
||||
quatInverse = quat.clone().inverse(),
|
||||
quatInverse = quat.clone().invert(),
|
||||
// touch tracking
|
||||
firstTouch = [],
|
||||
touchSlide = false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue