I have these items on layer 1 already divided by the item on layer 2. I would like to separate the items according to the normal direction of the item on layer 2 in Grasshopper, can anyone help me?
SelectByNormal.3dm (4.1 MB)
I have these items on layer 1 already divided by the item on layer 2. I would like to separate the items according to the normal direction of the item on layer 2 in Grasshopper, can anyone help me?
SelectByNormal.3dm (4.1 MB)
Hello.
I have extended and closed a surface and then loaded it into Grasshopper.
Like this?
CheckInside.gh (3.3 MB)
Here’s another method of dividing the mesh objects based on which side of the surface they are on.
SelectByNormal.gh (8.9 KB)
Some of the mesh objects in your file are not cleanly split by the surface object as can be seen here.
-Kevin
my friend, thank you very much for your help, your code worked perfectly! gratitude!
Kevin, do you have a good solution do close the naked edges of meshes? Please, help me one more time…
The meshes with holes from being split could be easily closed by using a plug-in or script but there are a lot of other problems with your mesh geometry.
These are all the meshes with naked edges:
Many of the meshes have been improperly constructed.
There are 3 naked edges highlited in magenta. One on the larger upper face and one on each of the smaller faces at the bottom. To fix this, you would need to split the upper face to get an edge that intersects the vertex I have circled in red.
The best way to fix this is to go back to the process you used to create this geometry and correct it there.
I re-created your input geometry (using breps instead of meshes) and used your cutting surface to split and separate the breps.
File is a bit heavy (all geometry internalised) and takes a few seconds to solve.
Breps_Split_Sort.gh (6.4 MB)
Result is all closed breps (easily converted to meshes by using the Simple Mesh component).
Edit: cleanup input geometry
Breps_Split_Sort.gh (4.6 MB)
-Kevin