fix mirror command to work on faces that are located at at origin.

This commit is contained in:
Mike Molinari 2022-02-27 13:34:39 +00:00 committed by Val Erastov
parent 7f56e49224
commit c9c45e4bcd

View file

@ -27,8 +27,7 @@ export const MirrorBodyOperation: OperationDescriptor<MirrorBodyParams> = {
params.inputBodies.forEach((shellToMirror) => {
const newShellName = shellToMirror.id + ":mirror";
oci.copy(shellToMirror, newShellName);
params.face.csys.origin.data();
oci.tmirror(newShellName, ...params.face.csys.origin.data(), ...params.face.csys.origin.normalize().data());
oci.tmirror(newShellName, ...params.face.csys.origin.data(), ...params.face.csys.z.normalize().data());
created.push(occ.io.getShell(newShellName));
});