[054] How to Use alignScopeToGeometry() in Esri CityEngine CGA
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...