Posts

Showing posts with the label 3D Design

[028] How to Select Specific Segments Using split.index in CityEngine

Image
Learn how to use the split.index function to identify and control specific segments within a procedural split operation for precise architectural logic. This tutorial covers the sequential nature of CGA split operations and demonstrates how to target specific segments using zero-based indexing, allowing for more dynamic and efficient rule writing compared to manual segment definition. What is split.index in CityEngine CGA? split.index is a value used to identify the position of each segment generated during a split operation. Sequential Indexing in Procedural Splits In our previous sessions, we explored the three types of split(~, *, ') operations. Today, I intended to cover splitting by rows and columns, but I felt it would be better to pause and discuss the index at this point. Although we haven't officially learned about axis or scope yet, the split operation works by dividing an area one by one alo...

[025] How Relative Split Ratios (~) Work in CityEngine CGA

Image
Distribute remaining architectural spaces proportionally using relative ratios (~) in CGA split and learn approximate repeating splits. This tutorial continues our exploration of the split command by focusing on the powerful tilde (~) operator. You will learn how to divide geometries based on proportions rather than fixed meters, how to combine fixed dimensions with relative ones, and how to use approximate repeating splits to ensure your models perfectly fill a given space without leaving small leftover fragments. Since tomorrow will be a busy day making kimchi, I wanted to write this lesson in advance. Following the previous lecture, we continue with the split command. There is something I forgot to mention briefly when explaining the tilde (~). Imagine a situation like this. When splitting a rectangular lot with a total length of 40m, do you always have to input the exact numerical values for the lengths you want...

[099] How to Use Recursive Calls for Object Placement in CGA

Image
Master object duplication and spacing logic by implementing recursive CGA rules in CityEngine. In this tutorial, we will learn how to duplicate objects and arrange them at regular intervals using recursive calls. We will explore the logic of calling a rule within itself, managing variable changes to prevent infinite loops, and using conditional statements to control procedural placement. In this lesson, we will build a simple recursive placement system that duplicates objects at fixed intervals. This technique is commonly used for procedural repetition, geometric patterns, and rule-based layouts in CityEngine. img 1 : Example of object spacing using recursive calls Before diving into the logic, watch how the recursive duplication behaves in practice. Video: Demonstration of recursive object placement Understanding the Logic The example above duplicates an object repeatedly based on the value en...