Glitch: shape bounding rect is incorrect
-
- Grab the Pen tool and pen out a shape. Make sure you drag out individual nodes so their handle is relatively long.
- Switch to the Shape Editor tool and drag around the shape select all nodes.
- Now select the Transform tool (V). At this point you get a bounding rect that surrounds the shape but the bounding rect is taking into consideration (or includes) the node handles as well. There are significant gaps between the bounding rect and the shape (depending on how long the individual node handles are).
- Click on the canvas.
- Now select the shape. The bounding rect is now correct.
So every time you drag-select all nodes with the Shape Editor tool then select the Transform tool, you get the wrong bounding box.
You can do it with a simple circle, too.
- Draw a circle.
- Convert it to curves.
- Grab one of the 4 nodes and pull the handles way out.
- Drag-select all nodes with the Shape Editor.
- Select the Transform tool. > Incorrect bounding box.
Video here:
https://www.youtube.com/watch?v=egyET64IWJQVS 1.1.094
-
@pentool Replicated here. Yes, it looks like the bounding box is drawn around the Bézier handles.
-
@pentool @b77 Yes, with a node selection, the bounding box will always include the control points also (this is required to be able to properly scale or rotate these).
Activating the transform tool with a node selection will keep the node selection. So in this case, it is not the object that is selected, but its nodes.
-
@VectorStyler Yes, but is there a use case why would I wanna see the boundary of the handles? It was obvious immediately that the bounds showing the handles I just don't see its usefulness. I think it's just confusing.
-
@VectorStyler OK, I have to disagree here, because:
- It's confusing since the app displays only the nodes and not the control handles;
But even if it did display the control handles…
- It's not useful (except maybe for Raph Levien ) :
- scaling a shape like this so you can snap it to grid, a guideline or to another
shape or node is not possible (the bounding box is not where it's needed for that),
and… - rotating is done around a different pivot.
Same goes when just a part of the nodes are selected — scaling and rotating them
should be done only with the bounding box around them / the actual path, and in
this case any symmetric nodes need to be simply converted to smooth (or cusp)
when scaling.So I would not leave it like this since it's not practical.
-
@b77 said in Glitch: shape bounding rect is incorrect:
scaling and rotating them should be done only with the bounding box around them
Doing this will not work well if there are only a few nodes selected (not the whole thing).
-
@VectorStyler There has to be a percent-based scaling formula that makes it work
for cases where a selected node is not at the extrema of the segment and thus
not at the edge of the bounding box, if this is what you mean.