Manually created Brep to API Brep

Hi @dale ,

I am facing an issue in creating Brep via api, in order track down the issue, i just tried reading the brep data using plugin, and tried to recreate it via API. but still facing issue in creating an innerLoop.


you could see from the above image the inner loop has surface and it trimmed improperly.

checked the datas like ,

making the inner edges /curve3d in clockwise
making the outer edges/curve3d in anticlockwise.
creating trims for both outer and inner loops.

even
image
the log couldn’t give any error message, it says its an valid brep.

can you help o this.

thanks
VJ

There are some examples for this. See

C++

and in C#:

@menno , thanks for your response and help.

I have resolved this by calling Brep.Repair(0.1,0.1) and its heals the brep I guess.

1 Like