I used sporph to orient a mesh onto box surfaces today and noticed an inconsistency in the surface direction on boxes.
The Grasshopper definition contains five inputs:
The first box is created in Rhino with the following command:
Command: _Box
First corner of base ( Diagonal 3Point Vertical Center ): Diagonal
First corner ( Cube ): Cube
First corner: 0
Second corner: 100,100,100
The six surface normals all point towards the outside but the curve orientation seems off for the underside of the box. The sporph component places all meshes correctly except the one where the curve direction is ‘1’.
I’m expecting the curve direction to be ‘-1’ for a surface when looked at it from the front side.
Both the Grasshopper box and bot 2pt components create surfaces with confusing curve directions but the result of the sporph is correct.
The surface normals are correctly evaluated for all surfaces and the offset curves are also offset in the right direction.
The only time the curve directions match my expectation is when I extract the face boundaries from an undivided mesh box with six faces. The mesh box is also the only object where the curve seam of a face is consistently in the second quadrant / left-top side region of the surface frame.
I’m confused and it seems something is off for how the boxes are deconstructed and the curves are derived.
Unless I’ve overlooked something, the results seems to be identical in Rhino 8 WIP.
surface_curve_direction_inconsistency_sporph_problem.gh (138.1 KB)










