Select to view content in your preferred language

Trim a Flat Top

1751
8
10-07-2019 07:38 AM
BurakAydin1
Occasional Contributor

Hi,

I have the following problem:


since i have a hilly terrain, i extrude the buildings with the command "extrude(world.up.flatTop,0)". However, the flat tops are much too high in some places (see "flatTop").

Is there a way to trim these flat tops? Preferably so that the door is always on the floor, or a flat top is created from the door onwards. Matthias BuehlerCheryl LauGeoff TaylorDavid WassermanChris WilkinsThomas FuchsMichelle MathiasL RMartin ManzerElliot HartleyDan Patterson

0 Kudos
8 Replies
DavidWasserman
Frequent Contributor

To some extent given the degree of the slope, it is not clear if the problem is the need to reduce the height or just to add stairs.

Another option is to potentially identify the best place to put the door based on the sampled ground elevation of each side shape, but I am not sure elevation sampling is that exact. 

I am curious if the resetGeometry and scope.elevation functions/elements would help here, but I have not gotten to test them that deeply. 

David Wasserman, AICP
0 Kudos
BurakAydin1
Occasional Contributor

Hi David,

creating stairs would be an option, but how do you create the stair rule for it?

That would be the best solution, but i don't know how to identify the best place for the door.

Are resetGeometry and slope.elevation commands? I haven't found anything in the cityengine help.

0 Kudos
by Anonymous User
Not applicable

re: new commands:  resetGeometry is new as of 2019.0. scope.elevation is old. I assume accuracy of scope.elevation is based on resolution of Esri's elevation service in the part of the world you are at.

by Anonymous User
Not applicable

Here's an example of a way I've dealt with hills and foundations in the past. Not addressing stairs tonight, maybe tomorrow. CGA rule is attached.

BurakAydin1
Occasional Contributor

Hi Chris,

in fact your CGA Rule has brought me a lot, thank you!

But the buildings in some places are still too high, so a staircase would be helpful.

Do you also have a CGA Rule for the stairs, that would be great

0 Kudos
by Anonymous User
Not applicable

I have other stair rules for specific cases, but I just made a simple version here (meaning very few options). It uses the Foundation example from yesterday. It rotates the door down to make the stairs using an imported stair rule.  You have to adjust the height manually - finding a solution to that is out of my time frame. Also, I added a doorIndex attribute to tell it which wall gets the door (uses split.index).

Rules attached here. 

stairs rule pics

BurakAydin1
Occasional Contributor

Hi Chris,

your rules are great. Now everything looks much better (see "stairs").

But some of the heights are not right, as you already mentioned (see "stairs1").

I'll probably solve it with s().

Nevertheless you helped me a lot, thank you very much stairs

stairs1

DavidWasserman
Frequent Contributor

Thanks for taking a look at this Chris!

David Wasserman, AICP
0 Kudos