rectangle rotate function #1374
Replies: 4 comments 6 replies
-
|
I second this! Having previously worked with oriented bounding boxes, I can pitch in with a feature suggestion. For legacy reasons, I would opt for a new shape type, call it Rectangle2 definitionThere are multiple ways to represent a rectangle 2: (see YOLO-OBB) Out of simplicity, we can use a point-based representation, which is consistent with how shapes are currently stored. To determine the normal (direction) of the angle, we can also follow the logic used for YOLO-OBB. Draw a rectangle2Because there are many ways of drawing a rotated rectangle, I would personally like to see a 3 point method like below. I find it easier to use than drawing a rectangle from the center. This is also consistent with how other shape types are drawn. Edit a rectangle2Here, I think it's important that the grab points feel natural:
I hope to reopen this discussion and help speed up the development of this feature. |
Beta Was this translation helpful? Give feedback.
-
|
I have a quick question regarding the proposal discussed in Would it be acceptable to enter the proposed rotated-rectangle (rectangle2) drawing mode via a keyboard modifier while staying in the rectangle tool? The idea would be: Default rectangle behavior remains unchanged Holding a modifier key enables the alternative drawing interaction Releasing the key returns to the normal rectangle workflow This would keep the interaction lightweight and avoid breaking existing workflows, while still allowing experimentation with the rectangle2 concept !?????? |
Beta Was this translation helpful? Give feedback.
-
|
@wkentaro Currently, none of the shapes support drawing outside of the canvas (pixmap), which makes sense for some use cases (polygon clipping, for example). Here's an example (image credit) where bottle 1 cannot be annotated because a small part of it lies outside of the canvas. Bottle 2 shows a normal annotation. I am curious to hear your thoughts on drawing outside of the canvas, and if it could apply to other shapes (like rectangles and circles). |
Beta Was this translation helpful? Give feedback.
-
|
Found a somewhat relevant discussion: #1374 Included here for posterity. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
I would appreciate it if you could create a function to rotate a rectangle.
Beta Was this translation helpful? Give feedback.
All reactions