How to create a hole using the inner loop?


#1

I’m using C SDK to build a custom exporter for room plans. The holes desired to represent positions for windows/doors object.

My current algorithm looks like this:

  • Create an outer loop SULoopInputCreate;
  • Add outer loop vertices SUGeometryInputAddVertex, SULoopInputAddVertexIndex;
  • Add face SUGeometryInputAddFace;
  • Create inner loop SULoopInputCreate;
  • Add inner loop vertices SUGeometryInputAddVertex, SULoopInputAddVertexIndex;
  • Add inner loop to the face SUGeometryInputFaceAddInnerLoop.

The result of the algorithm: inner loop vertices are on the place but the inner area has the same face as an outer area. I’m looking for a way to cut a hole in the outer area.

See the image for a visual representation.
Capture3

Thanks in advance!