mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-21 16:05:44 +01:00
fix mirror command to work on faces that are located at at origin.
This commit is contained in:
parent
7f56e49224
commit
c9c45e4bcd
1 changed files with 1 additions and 2 deletions
|
|
@ -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));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue