hi
always thank you for good anwser
i am beginner in cityengine
i would like to split window like attached image
can you make sample cga
Facade A
The code assumes that the scope of your facade is aligned such that x is along the width and y is along the height.
// Define facade width and height here or set to scope.sx or scope.sy const facade_width = scope.sx const facade_height = 9 const door_width = 0.3*facade_width const door_height = 0.7*(facade_height/3) const window_width = 0.7*facade_width const window_height = 0.5*(facade_height/3) Facade --> split(y) { ~1: Floor1 | ~1: Floor2 | ~1: Floor3. } Floor1 --> split(y) { door_height: split(x) { ~1: Wall | door_width: Door | ~1: Wall | door_width: Door | ~1: Wall } | ~1: Wall } Floor2 --> split(x) { ~1: Wall | window_width: WindowTile | ~1: Wall } WindowTile --> split(y) { ~1: Wall | window_height: Window | ~1: Wall } <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Facade B
Modify the Facade A code above by changing the definition of window_width and the Floor2 rule as follows.
const window_width = 0.2*scope.sx Floor2 --> split(x) { ~1: Wall | window_width: WindowTile | ~1: Wall | window_width: WindowTile | ~1: Wall } <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.