Building a Brep in RhinoCommon

Yes, probably. You could always loop through the list of curves one at a time. But that would be slow.

Rolling your own Brep isn’t for the faint of heard. There is quite a bit of work in putting together the most basic shapes, let alone a patched face with a bunch of holes.

The famous Brep data structure:

Here are a couple of samples, in C#, to chew on:

SampleCsFaceWithHole.cs

SampleCsTrimmedPlane.cs

Now if you really want to trim, not split, then it is possible to create a disjoint Brep, with a bunch of extruded surfaces, and then use Brep.Trim. I can work up a sample if you want…

– Dale

3 Likes