Hmm, interesting, I wasn’t aware that these plug-ins could manage that. I tried Flexibility and it fixed 7 of the 11 bad objects I had in this file - not bad. The Package manager didn’t get me the latest Parakeet, the version it installed (0.941) didn’t fix any of them, but there was a message that it was outdated. I downloaded and installed the latest (0.97) and it also fixed 7 out of the 11 - the same ones.
With my own personal routines - which basically involves Explode, find the bad surfaces, use a custom Python script to untrim and re-trim them then rejoin, I was able to fix all of them… One object required running that twice - have to figure out why, most likely the first run fixed the trim on the bad surface, and the next one the trims on the surrounding surfaces.
So maybe I will take this combination of tools which currently run directly in Rhino and put them together into a script that runs inside GH.
The point of this thread was that I would like to at least be able to have a preview on the invalid breps with the standard GH components, as well as having the scripted possibility to add them to the document without the need to fix them. At least an optional argument in Rhino.DocObjects.Tables.ObjectTable.AddBrep()
method to allow invalid objects to be added - like the current ...AddMesh()
class does.
Note also that these are relatively easy examples because the surfaces are primarily planar. Once the objects start to have curved faces, it often becomes a lot harder to fix.
Thanks to all for testing and suggestions!