Posts

Showing posts with the label alignScopeToGeometry

[054] How to Use alignScopeToGeometry() in Esri CityEngine CGA

Image
Understand precise coordinate bounding box alignment using alignScopeToGeometry() in Esri CityEngine to snap scope planes to specific geometry faces and edges without manual calculation errors. Managing coordinate bounds (Scope) is critical for procedural 3D modeling in CityEngine. While basic component splits dynamically generate temporary local coordinate systems, manipulating complete 3D models as single entities requires explicit scope reorientation. This tutorial contrasts manual scope rotation via rotateScope() with precise automatic snapping using alignScopeToGeometry(), illustrating how to retrieve face and edge indices through the Inspector for flawless procedural splits. Why Scope Alignment Matters in CityEngine You might wonder, "If separating with comp(f) automatically creates a scope aligned to the face, why do I need to use other commands to set the scope?" That is correct. If you are worki...

[029] How to Perform Vertical and Horizontal Splits in CityEngine

Image
How First Edge Defines the X-Axis Direction Counter-Clockwise Polygon Construction Behavior Transition from horizontal floor divisions to vertical facade splits by manipulating coordinate axes with alignScopeToGeometry. In CityEngine, procedural modeling relies heavily on understanding the local coordinate system of each shape. This tutorial explains how to use the split command for vertical divisions and introduces the alignScopeToGeometry(zUp) function. By reorienting the Z-axis to the Y-axis, you can apply architectural logic using the more intuitive X and Y plane, making it much easier to code complex building facades, floors, and repeating window patterns. Default Axis Orientation and Split Direction in CityEngine The splits we have learned so far were mainly focused on horizontal divisions. Today, we will cover vertical splits. Regarding the content mentioned in the previous session, I hope you haven...