OptrisOptrisDocumentation

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

optris::sdk::GeometryNode

One node of a region's geometry tree: either a placed shape or an operator combining two others. Which fields carry meaning depends on kind, and the rest are ignored rather than invalid.

Public attributes

kind

NodeKind kind = NodeKind::kShape

selects which fields below apply

primitive

Primitive primitive = Primitive::kRect

which canonical shape

transform

Matrix3 transform = kIdentity3

Places the unit shape: where it sits, how big it is, how it is turned. Composed as translate * rotate * scale by MakeTrs().

vertex_begin

uint32_t vertex_begin = 0

kPolygon and kSpline: a range into Composite::vertices. A polygon's are its vertices; a spline's are its control points, which the curve passes through but which are not the points to draw -- SplinePolyline() produces those -- and whose last entry repeating the first is what closes the curve.

vertex_count

uint32_t vertex_count = 0

number of vertices from vertex_begin

left

uint32_t left = kNoNode

index of the left operand

uint32_t right = kNoNode

index of the right operand