io-gui / three-controls

Modularized three.js controls
MIT License
25 stars 1 forks source link

[Feature Request]: "Mirror" Transform Mode #4

Open marciot opened 4 years ago

marciot commented 4 years ago

I am working on a web-based slicer for 3D printers. I am using "THREEJS.TransformControls" for manipulating objects and it works great; however, I would like to implement a feature to "mirror" an object. This can be done by setting the scaling to exactly -1 or 1 for an axis, but there is no way to constrain TransformControls to do so.

Having a way to constrain TransformControls would be one solution, the other alternative might be a special "mirror" mode that would simply toggle the scale on an axis from -1 to 1. It could have a special look, something like what the Cura slicer currently uses:

CuraMirrorTool

marciot commented 4 years ago

FWIW, I am using the version that is THREE.js, which seems to have diverged quite a bit from this one. So I'm not sure whether this is the correct way to request this feature :)