I’m making something like a miniBIM for building with straw panels.
User draws lines for walls and windows, and define specs for measurements, like height, etc
one of the problem I’m having is working with this line.
Right now im trying to extrude panels for make them the proper thick, but i can’t manage how to obtain the proper direction.
Here is the image some panels that orients wrongly, and i dont know how to tell them to look inside of the building.
The code is within a violet colour group if you want to look at it
find the toggle button circled and signed with an arrow to bake the geometry. constructor con paja2.gh (214.4 KB)
You can determine centroids of panels with Area component.
Find Surface closest points to them.
Evaluate surface at given UV coordinates and use output normals as extrusion direction.
This should work or at least point you to solution.
I’m uploading the file in the first post. if someone wants to check.
it’s really dirty file, sorry, the place where the problem is, is the group in violet colour.
Yes, i uploaded the 3dm file becouse its getting the geometry from a human pipeline plugin, from different layers, and it doesnt have the option to internalize data.
I’m updating the file with a toggle button to bake the geometry, there are only a few lines in three layers.
But those are referenced in millions of places, so i think this is the easiest way.
just marked with a circle and arrow where is the toggle button, and a circle where are the panels.
Diferent problem, different solution, different posting.
Maybe the image is similar becouse it’s within the same project.
One tries to erase duplicate geometry
Other tries to flip surfaces in a common but not simple direction.