OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::Composite

A boolean expression tree, stored as a flat node array with indices so that it stays a value: copyable, comparable and trivially serializable, with no heap nodes and no pointer fixups.

Public attributes

nodes

std::vector< GeometryNode > nodes

the tree, in no particular order

root

uint32_t root = kNoNode

index of the node to start from

vertices

std::vector< Vec2 > vertices

Every polygon leaf's vertices and every spline leaf's control points, packed end to end.

Public functions

Empty

auto Empty() const -> bool

True when there is no geometry at all -- a region that measures nothing rather than one that measures an empty area.