The Brep.Repair() Method

Attempts to "right" a brep that is not faulty or incomplete

Can someone elaborate if and when this Method will be usefull?
I read the not in the description as a typo that should be omitted.

My context: I’m handling imported geometry and try to setup a series of methods to clean up the geometry as much as possible. eg Brep.Standardize(), Brep.Compact()


Yes, correct.

The idea of the function is to fix ‘bad’ Breps. But it’s possible for the function to make changes to perfectly good Breps too.

Let me spend some time documenting these - I’m sure that would be more helpful.

– Dale

1 Like

@Willem, I’ve added some comments to Brep.Repair() for the next WIP.

In a nutshell, the function fills missing information in Brep definitions. The function is useful when reading Brep information from other file formats that do not provide as complete of a definition as required by Rhino.

For example, some formats provide edge curves and no trims. In this case, Brep.Repair() will fill in the missing information, pulling back the 3D curves to the appropriate surface(s), and a whole bunch of other good stuff.

Hope this helps.

– Dale

Hi Dale,

Thanks for the swift update. It’s exactly the type of functionality I was hoping for as I’m dealing with imported geometry.