Model.Flags

Description

Name

enum Tinman.Model.Flags

Used by

Model.Import.flagsNot / Model.Import.flagsOr

Enumeration of flags for 3D model nodes that describe semantic aspects.

Items

# Name Tag

0

Group

-

The model represents a group of models, for example variations of the same object.

1

NoSpatialQuery

-

The model and its descendants are excluded from spatial queries.

2

ComplexGeometry

-

The geometry of the model parts is complex.

Computing collision detection data for complex geometry typically heavy on CPU usage, RAM consumption and processing time. Specifying this flag acts as a hint to include additional pre-computed data in the model file (for example spatial acceleration structures such as octrees).

3

ComplexHierarchy

-

The model is part of a complex hierarchy.

Computing spatial bounds for complex hierarchies requires traversal of the whole hierarchy, while analysing the geometry of each model. Specifying this flag acts as a hint to include pre-computed spatial bounds in the model file.

4

Terrain

-

The geometry of the model parts represents the terrain surface.

This flag can be used to distinguish between surface and other geometry. While the latter is rendered on top of the terrain, the former may be used to adjust the terrain mesh, for example by ray-casting.