What is the best way to get building / rooftops aligned?
Is there any command to get the rooftop correctly aligned, regarding the slope on the terrain?
Thank you guys.
I'm currenty using this cga for the building correct heights (based on geodatabase atrributes) :
#initalize attribute set to a particular value or 0
attr NPisos = 10
attr avgFloorHeight = 3
Lot --> extrude(NPisos * avgFloorHeight)
NPisos is Number of floors.
How can i add that line in my cga? What would be the value?
Just building off the comment from Rasa Ra it would be something like this:
#initalize attribute set to a particular value or 0 attr NPisos = 10 attr avgFloorHeight = 3 @StartRule Lot --> extrude(world.up.flatTop, NPisos * avgFloorHeight)
Are you using CE 2016? - I think flatTop CGA was only introduced at 2016.
When you align shapes to terrain, instead of projecting, use translate to minimum then extrude the building through the terrain. I don't know if there's another way to replicate flatTop.
Joao Pedro Marques This rule should give you a building on a leveled lot at the minimum of sloped shapes:
attr buildingHeight = 15 @StartRule Lot --> alignScopeToAxes(y) s('1,0,'1) extrude( buildingHeight )