Like the title say, is it possible to have a drag point (scaleBox) on edges of the BoundingBox gizmo like SketchUp ?
Currently we can have scaleBoxes to the corners and it makes a scale on the 3 axes at the same time, I want to make a scale on 2 axes and not 3.
If I understand correctly, it would replace the rotation spheres on the edges with a 2D-like scale.
I see no objection to that. It needs a new optional property that is set at construction time to set that behavior (disabled by default to preserve the backward compatibility).
I’ll be happy to review your pull request
add properties/flags to BoundingBoxGizmo to support this new behavior.
I’m in favor of #2 because of the work and copy/paste #1 needs (snapping, rotation on/off,…). where as, just adding a flag seems easy. Same for documentation, just 1 flag to explain Vs adding a whole new page.
It looks like the proportional computation is here :
Tried that out. Works great. I think the flag needs to be in the constructor because getting the scale boxes all synced up after the gizmo has been constructed looks like a big butt-pain. I can share a branch or the file if that would be helpful.
I also added a flag that allow you to have parent meshes with non-uniform scaling at your own peril.