The range for a rotated cell seems to be wrong.
The magenta box is the returned one. The handles are from the "element selection" tool. The handles are correct, so the cell range is correct but
the returned value from "element.range" is not.
Any ideas what alternative could give me the correct result ?
Jens, if the handles are correct and the box is showing the range, what should be wrong with it ? The range is (afaik) representing the minimum and maximum x,y,z coordinate of the element, the range is always a cube aligned to x,y,z axis of the drawing.
I would expect the values to be in "local" coordinates of the element (left example) not aligned to the drawing coordinates (right example). Otherwise they are pretty useless.
A rotation would not solve the problem because the "diagonal values" are obvious different.
Unknown said:Otherwise they are pretty useless
Usefullness, or its absence, depends on what you want to do with the element range.
The primary use of element range is in a spatial scan. You can choose or reject an element by comparing its range with some set of coordinates. That check is fast compared to getting the geometry of an element and performing computational geometric algebra. The check is independent of how you might be seeing the element in one of eight rotated views.
Regards, Jon Summers LA Solutions