I am creating an extension that traverses the SUModel using SUModelFromExisting content and retrieve the geometries of the different faces.
Everything works fine until I tried converting a model that contains a face with a hole.
Here is the model:
percee.skp (126.4 KB)
That model contains a square face that contains the hole.
When I traverse the faces, I check SUFaceIsComplex to know if there is hole or not.
SUFaceIsComplex never return true to tell me that one of the face contains hole.
All the face are considered simple and as a result I get the mesh converted without the hole as shown below.
But! If I do the same operation using SUModelCreateFromFile and traverse the face with the same code, things go differently.
SUFaceIsComplex returns true for the square plane and the code that handle the face triangulation (that take care of the hole) is reached. As a result, I’ve got the mesh correctly converted as shown below:
So the question is why faces that come from SUModelFromExisting does not handle correctly holes whereas the one that came from SUModelCreateFromFile are correct.
Does I miss something?
Thanks for your help!