There is a bug in Rectangle tool. I wonder since when we have this case ?..
The Rectangle tool in some cases does not create a face, because one corner is not on a same plane.
The animation is created in web version, but I was able to reproduce in SU 17.2.2555 Make and SU 21.1.279. I guess âallâ versions are âinfected.â
(The ladybug has been inserted by me into animation, this is not built in feature⌠)
When you begin rotating the rectangle, you notice that a dashed diagonal is shown intermittently.
If you click to complete the rectangle when this diagonal is not shown, the rectangle closes without problem.
If you click when this diagonal is shown, you get no face.
This diagonal indicates that one of the two new endpoints is not coplanar with the other three and that a line will be needed to define two triangles to close that new face. There must be an inference that is having an effect here.
Neither side of the created âsquareâ is equal to any other: It is not a Rectangle.
The vertices A* and B* are at least in place.
The C* vertex was projected From point C in the right direction but at the wrong distance.
I have no idea how the D* vertex was created. Only its vertical coordinate is okay.
One possible way to do it: (Perhaps it helps for SU developers, but hopefully they know better ⌠)
When we detect the conditions âFrom pointâ (C) and âSquareâ, we know which two coordinates of the cursor are âfixedâ, so we can calculate the side length of the square, as well as the AC distance. (Using the corresponding coordinates of the first point (B) and C).
Then, using Pythagorean theorem, we can calculate the distance of offset (CC*) e.g.: CC* = sqrt(AB^2 - AC^2) = sqrt( 100^2 -61,803399^2 ) = 78,615138
The position of C* can be obtained by offset the point C by the vector. This vector obtained from the position of the âForm pointâ (C) and the actual cursor, the length of the vector must be set to the previously calculated distance (CC*).
Ruby dev note
The âFrom pointâ position is not available in the Ruby API, so Ruby developers need to work harder, but the C-side should have it.
Many times, when placing rectangles inside voids of frames etc. and you notice that the sides donât have a red, green or blue color, I tend to hit an arrow key to constrain it, rather than trusting on the inferencing machine.
Of course, there is no plane in this situation what can be inferenced. Only points.
The inference system might be confused, or is very sensitive in that matter. It involves the points of inferences hoovered over, the angle of the camera, the position of the cursor when dragging the rectangle out, etc. (I always say âetc.â when I canât think of anything else)
With some patience, I managed to get a âblueâ side of the rectangle by moving the cursor back to the opposite corner of the rectangle to be:
Maybe the preference system needs to prioritise certain aspects (eg. âalways have plumb linesâ)
But it is not a Square, Iâm 99,99% sure about it.
Either you get a rectangle with the edge projected From point. OR a Square where the edge is not on a same Blue-Red plane as the From point.
Both are not really possible currently.
Jack, you are talking about inference system or how to create a rectangles⌠(âetc.â) , and you are certainly right.
⌠but the topic is about a fact and prove a bug in Rectangle tool.
We have been living with this bug for a long time. We know how to avoid. But thatâs still a bug. Do not you think so?
I definitively agree that there is a bug exposed. Anyone can draw edges, but the rectangle should only draw edges that are in one plane and square, otherwise it should be called âFour Edge Linetoolâ
My point was thatâs in a normal model with lotâs of geometry in the background (not a simple 1x1x1 cube), itâs much more difficult to get sides to be âOn one of the Axesâ and since we do not know what order of inferences is prevailing in the program where kind of left in the dark out here.
When I have a blue side and then click, it is a perfect square:
When all sides are black before the second, that might be a clue to the enduser that something is off. Usually, this results in a rectangle in a whole different plane, so again, it is bugged.
If you switch the corners of the rectangle, it seems to draw a square face, though: