I’m working on processing a site model from another person that came in as meshes. I have converted the objects to nurbs but want to re-extrude the bottom face to clean up the topology. I will be doing this a lot so thought to automate it with Grasshopper. The script I have works for +90% of the objects, but for some reason a few objects over or under extrude and I can’t figure out why. Oddly, when implementing a move to plane component at the beginning of the script to move everything flat at Z=0, or projecting the faces to the cplane, the problematic shapes change. The ones with a certain setup extrude correctly one way and then wrong with a slightly different script.
This is what happens with the script I’ve uploaded.
Re-Extrusion Script.gh (609.2 KB)
Here is the example of where simply adding a project component before the extrude causes breps that are over and under-extruding to change.
Any help is great!
Edit: It looks like the problem is some of my objects have two bottom faces instead of just the one I was expecting. I ended up solving it by brep joining and merging faces again and that cleaned it up for this instance. I could then re-extrude and all the values aligned correctly.
Please let me know if there is a better way to do this.
Edit:
RegionUnion is what I was looking for and booleans the shapes together nicely