Closed mrguilima closed 5 months ago
@mrguilima Maybe some additional restrictions are needed on the points input to the gentrap. For example, are there restrictions about the top and bottom points not being rotated 180 degrees?
@mrguilima Actually it looks like the problem is that the normal calculation assumes the points are CCW ... which is not the case.
Since the input lower points can be ordered in both CW or CCW orderings, the sense needs to take into account the sign of the plane offset with respect to the plane normal.
An extra test was added for opposite ordering of points (CCW ordering), and the documentation has been adjusted.
See review process for descriptions of the labels and requirements.