disable brim threshold @ 0. limit support projection. set z mid in setFocus
This commit is contained in:
parent
b482c79fa7
commit
0be501d0d5
3 changed files with 4 additions and 5 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue