remove non-func unrotate() and fold rotinfo back into belt

This commit is contained in:
Stewart Allen 2022-11-01 23:45:11 -04:00
commit 4bc113096b
7 changed files with 43 additions and 76 deletions

View file

@ -249,7 +249,6 @@ FDM.prepare = async function(widgets, settings, update) {
let swidget = kiri.newWidget(null,widget.group);
swidget.slices = sslices;
swidget.support = true;
swidget.rotinfo = widget.rotinfo;
swidget.belt = widget.belt;
swidget.track = Object.clone(widget.track);
swidget.mesh = { widget: swidget, position: swidget.track.pos };
@ -440,12 +439,12 @@ FDM.prepare = async function(widgets, settings, update) {
// establish offsets
for (let widget of widgets) {
let { rotinfo, belt } = widget;
let { belt } = widget;
let offset = Object.clone(widget.track.pos);
if (isBelt) {
let o = rotinfo.ypos * beltfact;
let o = belt.ypos * beltfact;
offset = {
x: rotinfo.xpos,
x: belt.xpos,
y: o,
z: o
};