Hello everyone! I need some assistance with my Grasshopper project. I’m attempting to generate a house model using a cadastral plan. I basically have a cadastral DXF-File and can adjust the lot borders N,E,S,W. After that I extruded the form.
After that I imported the Terrain as a 3dm as shown in the script. The height of the house is derived from the intersection of the shape and the terrain.
My question is house do I get the point? The terrain isn’t flat so I assume I have to figure out the lowest point of the terrain, to make sure the shape isn’t floating. I need to cut off the excess shape that’s under the terrain and proceed from there. As you may have noticed I’m not the best at grasshopper although I get the logic I don’t know what nodes to use.
I worked with paths so I can’t internalize the data.
I would really appreciate any help you can provide! Thanks so much for your time!
As @wim said, internalizing your data should be possible - and helpful.
As a first step, you can intersect the terrain with the house contour, then use Bounding Box or Deconstruct Brep to get the highest and lowest altitudes. From there, it’s up to you to define a rule for the first floor placement - lowest, highest, average…
Hi, thanks for the fast reply. This my GH file I’ve been working with. I was unsure if the data was internalized, because the button was greyed out. I think it should work Prototype cadastralplan.gh (45.3 KB)
Hi Nick -
Please always state the plug-in dependencies when posting a Grasshopper file so that people don’t needlessly download and try to open your file…
Hi, Apologies for any confusion. To import the DXF file, I downloaded ShapeDiver. Additionally, I used Mesh Area to ensure the measurements were accurate and opted for 3DM as it proved to be more efficient than the pre-existing option. I used bounding box to find out the highest and lowest altitudes. I Set the start of the House cube at the lowest altitude, so that every point of the cube is below the terrain.
I suppose I can take the middle point of the surface I extruded the House form from. But I have no clue how to get the intersection point with the landlot dm3 modell (Point in yellow). My house form is a Brep and the lot is mesh. Prototype Cadastralplan.gh (35.1 KB)
No matter which plug-ins you use, your definition will only correctly open on your machine.
The Grasshopper native Import 3DM component will import DXF files just fine.
If you want anyone else to be able to use your definition, you can then flow the output of that parameter into a Geometry parameter and internalize it there:
Hi Wim, I internalized all the data and switched out all the downloaded nodes for native ones. It should work now. Prototype Cadastralplan.gh (340.2 KB)