I am back with an interesting question (well at least for me ).
I have a mesh imported using the meshtoolikt (it is an OBJ file) which represents a geo model exported from leapfrog. The idea is to slice this mesh usin the Mesh.Intersect node and produce a set of closed polycurves. In some areas the slice will produce more than one polycuve and those will present in mainly two different options:
- 2 or more separated closed curves
- 2 or more concentric closed curves (those will represent holes in that specific material)
What I need is to intersect those areas with another area to get how much square meters ot are overlapping (imagine to calculate the amount of excavation for a tunnel)
Now the question:
I can create surfaces out of the produced polycurves but Dynamo will not understand to remove concentric loops from the external one, unless I have to decide which one is the cutting tool for the surface (without mentioning the performances in creating these surfaces). I can go down the path of writing my own “polyogn cutter” using some clever algorithm but, before I start doing that, is there anyone that has a different idea? Am I missing something?
In GH it takes literally less than a second to do the full operation for 1.2km of tunnel but I have the rest of my workflow already in Dynamo and, before starting to move the entire set of custom nodes already built to GH, I want to ask for suggestions. There must be a better way!
And to close up about performances and strange behaviours:
- It takes forever to generate just on set of surfaces
- No idea why the loop and the surface are not on the same plane, consideing they are both produced by the same slice
@solamour I believe this is something the team needs to investigate further.