[056-057] Understanding alignScopeToGeometryBBox() in CityEngine CGA
Learn how procedural scope re-alignment and external 3D model positioning work in CityEngine using alignScopeToGeometryBBox(). In this comprehensive guide, we dive deep into the mechanics of the alignScopeToGeometryBBox() command. Learn how it computes bounding boxes on specified projection planes using local geometry axes instead of world coordinates, and discover how to properly align imported external 3D models (OBJ) for flawless urban simulations. Part 1: Reorienting the Scope with Basic Geometry Today, we wrap up our multi-part series on scope alignment by focusing on the final and highly versatile command: alignScopeToGeometryBBox() . How alignScopeToGeometryBBox() Works At first glance, since this command automatically calculates and configures the scope as long as you specify a projection plane, it might seem like a simpler or more automated version of alignScopeToAxes() . However, the command actually follows t...