add z cut option for widgets

This commit is contained in:
Stewart Allen 2021-08-30 13:50:24 -04:00
commit 69f246efb9
5 changed files with 25 additions and 7 deletions

View file

@ -1059,6 +1059,9 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
widget.stack = STACKS.create(widget.id, widget.mesh),
factor = (widget.getVertices().count / defvert);
// compensate for zcut (widget moved through floor)
widget.stack.obj.view.position.z = widget.track.zcut;
widget.slice(settings, function(sliced, error) {
widget.rotinfo = null;
let mark = Date.now();