Apparently Inside-out SubD

Sometimes I am getting apparently inside out SubDs. It happens when I use Rhinocommon to mirror and add a SubD to the doc (I’m asking this in the SubD category rather than the developer category as I’m thinking it is more a general rhino issue, but please let me know if I should move the discussion to the developer category).

If I save the file, close Rhino, and open it, it is no longer appearing inside out. But if I add it back to the doc again, it is once more appearing inside out. Anyone have any idea what is going on here?

Thank you,
Sam

Still hoping for some help on this…

baking the subD from GH?

Rhinocommon

Rhino usually does some magic in the background before adding to the doc. what you see in rhino and what common does is not identical. you need to add your own magic to your script. in this case probably a normal vector to areacentroid comparison before adding it to the document.

Thanks Ben. I’m not seeing a place to access the SubD’s areacentroid comparison. Could you please advise, maybe provide some code?

https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.areamassproperties/centroid

you get the centroid from here. it’s within the areamassproperties.

for comparison I would move the point on the surface where you got your normal vector from along the normal vector and check both distances to the centroid.

1 Like

Got it, thanks!

1 Like