split parapet walls

4135
5
Jump to solution
09-07-2015 11:43 PM
AidaAfrooz
New Contributor III

Hello,

Does anyone know which operation I need to use to split the parapet wall of the building attached similar to the Google image?Thanks!

zallinisplit parapet.JPG

0 Kudos
1 Solution

Accepted Solutions
BenLeslie1
Occasional Contributor III

I had a go and this looked pretty good to me - I'm not sure you'll get the sizes identical unless each wall is the same length.

Lot-->

extrude(10)

comp(f){top:Top|side:Sides.}

Top-->

offset(-0.5)

comp(f){inside:Roof.|border:Battlement}

Battlement-->

split(x){~1:Merlon|{~2:Crenel.|~2:Merlon}*|~2:Crenel.|~1:Merlon}

Merlon-->

extrude(2)

(edited to correct terminology)

View solution in original post

5 Replies
BenLeslie1
Occasional Contributor III

I think this section of CE documentation should help

split Operation

Unless I misunderstand what youre asking..

0 Kudos
MatthiasBuehler
Occasional Contributor III

Hi,

Did you have a look at the official tutorial 9?

CityEngine Tutorials - Tutorial 9: Advanced shape grammar

This will give you a good intro in how to tackle your specific building..

Good luck!

Matt

Matthias Buehler

Head of 3D Technologies

twitter: @MattB3D

------------------------------------

Garsdale Design Limited

matthias.buehler@garsdaledesign.co.uk

www.garsdaledesign.co.uk

0 Kudos
AidaAfrooz
New Contributor III

Hi Ben and Matthias,

Thanks for your reply.

I tried split operation but was not successful to make the crenellation or the gap between the splits equally.

I looked at the tutorial before but will double check it and go through it again.

in case you came up with any ideas in making the crenellation for parapet walls, please let me know!

thanks

0 Kudos
BenLeslie1
Occasional Contributor III

I had a go and this looked pretty good to me - I'm not sure you'll get the sizes identical unless each wall is the same length.

Lot-->

extrude(10)

comp(f){top:Top|side:Sides.}

Top-->

offset(-0.5)

comp(f){inside:Roof.|border:Battlement}

Battlement-->

split(x){~1:Merlon|{~2:Crenel.|~2:Merlon}*|~2:Crenel.|~1:Merlon}

Merlon-->

extrude(2)

(edited to correct terminology)

AidaAfrooz
New Contributor III

Thank you very much Ben!! It works

0 Kudos