disable brim threshold @ 0. limit support projection. set z mid in setFocus

This commit is contained in:
Stewart Allen 2021-01-22 21:06:28 -05:00
commit 0be501d0d5
3 changed files with 4 additions and 5 deletions

View file

@ -387,7 +387,7 @@
pos.y /= widgets.length;
pos.z /= widgets.length;
SPACE.platform.setCenter(pos.x, -pos.y, pos.z);
SPACE.view.setFocus(new THREE.Vector3(pos.x, pos.z, -pos.y));
SPACE.view.setFocus(new THREE.Vector3(pos.x, topZ / 2, -pos.y));
}
function reload() {

View file

@ -290,7 +290,6 @@
// establish offsets
for (let widget of widgets) {
let { rotinfo, belt } = widget;
console.log({rotinfo, belt, widget});
let offset = widget.mesh ? Object.clone(widget.mesh.position) : {x:0, y:0, z:0};
if (isBelt) {
offset.x = rotinfo.xpos;
@ -482,7 +481,7 @@
lastout = rec;
}
// skip if brig trigger not met
if (firstLayerBrimTrig && mins > firstLayerBrimTrig) {
if (firstLayerBrimTrig > 0 && mins > firstLayerBrimTrig) {
continue;
}
// add brim, if specified

View file

@ -921,8 +921,8 @@
for (let sup of fixed) {
let slice = findSlice(sup.z);
let rem = addPillar(slice, sup);
let zmin = sup.z - sup.dh / 2;
let zmax = sup.z + sup.dh / 2;
let zmin = sup.z - (sup.dh * 0.75) / 2;
let zmax = sup.z + (sup.dh * 0.75) / 2;
while (slice.up && slice.up.z <= zmax) {
slice = slice.up;
if (!addPillar(slice, sup)) {