Working with the Model Hierarchy Explorer

The shape tree of a generated model can be interactively explored. To open the Model Hierarchy Explorer, select the "Show Model Hierarchy" item in the Window menu:

Shape Tree Explorer A
The Model HierarchyExplorer can be opened in the Window menu.

Generate a model, select it and hit the Inspect Model button in the toolbar:

Shape Tree Explorer B
A generated model can be switched to the edit model; its hierarchy then appears in the Model Hierarchy Explorer.

The model hierarchy (or shape tree) of a model can now be unfolded by using the context menu (right-click) on a tree node:

Shape Tree Explorer
Use the right-click menu to expand and collapse model hierarchy nodes.

The shape tree of a specific building is defined by the associated rule file and the initial shape.

Shape Tree Explorer
Part of a CGA rule file and the hierarchy of the generated model.

In the picture above, a snippet from the Candler rule file (which can be found in the Tutorials) is shown on the left and the according part of the model hierarchy on the right. Note the matching structures (Lot -> Solid -> Front/Side/Back/Roof).

Each node of the model hierarchy can be expanded and collapsed using the right-click menu. Moreover, each shape node can be selected/deselected with a left click (use the ctrl modifier to select more than one node). It is also possible to directly click into the model in the 3dView. A number of special rendering modes are available to show the attributes of the selected shapes.

Shape Tree Explorer
Using the special rendering modes to visualize attributes of the selected shape tree nodes. Note (1) that some nodes have their shape parameters attached in brackets and (2) the "Set Edit Model Alpha" slider on the top right (under the mouse cursor).

In the picture above, the two leaves "Sill" and "WindowAsset" are selected, and the rendering mode is set such that the geometry and the scope of only the two selected shapes are drawn. Additionaly, the "Model Alpha" is set to a very low value, such that the model is rendered transparently and the select shapes are clearly visible. To change the "Model Alpha", click on the "Set Model Alpha" button and the slider will appear. Let us look at the render mode switches in more detail:
Show scope
If enabled, the selected shape nodes' scopes are drawn (x-axis red, y-axis green, z-axis blue, other scope edges orange). The line width can be set in the Preferences->General->Grammar Core.
Show pivot
If enabled, the selected shape nodes' pivots are drawn (x-axis red, y-axis green, z-axis blue). The size and line width can be set in the Preferences->General->Grammar Core.
Show trim planes
If enabled, the selected shape nodes' trim planes are drawn.
Show geometry
If enabled, the selected shape nodes' geometry attribute is drawn (in the drawing mode selected in the viewport).
Derived Image Origin
If enabled, the model's origin is drawn (x-axis red, y-axis green, z-axis blue).

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.