Closes #2509
This commit is contained in:
parent
902068448a
commit
ad42410219
6 changed files with 44 additions and 44 deletions
|
@ -771,6 +771,18 @@ export class SimplifyGeometry extends CachedGeometry {
|
|||
h.embed(this.m_geom);
|
||||
h.endStruct();
|
||||
}
|
||||
|
||||
static wrapWithGizmo(g, gizmo) {
|
||||
const needsTransform = !Transform.isTranslate(gizmo);
|
||||
if (needsTransform) {
|
||||
return new TransformedGeometry(
|
||||
gizmo,
|
||||
new SimplifyGeometry(new TransformedGeometry(gizmo.inverse(), g)),
|
||||
);
|
||||
} else {
|
||||
return new SimplifyGeometry(g);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Utility functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue