TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct Tinman.Shape.Info

Short Name:
  • struct Shape.Info
Fields:

Describes a 2D vector shape.

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
required shape Shape
# != null
 

The shape to describe.

external type Shape.Type    

The shape type.

external georef CoordSys    

The georeference of the shape vertices.

external cubemap bool    

Is this a cubemap shape?

Cubemap shapes have a geographic coordinate system and six separate sub-shapes, one for each cubemap face (see Face)).

external vertices number    

The number of shape vertices.

When the vertex count is zero, the shape is defined implicitly. If the vertex count is greater than zero, the shape is explicitly defined by its vertices.

external edges number    

The number of shape edges.

external parity number    

Defines how the vertex winding of polygon contours is interpreted (outer rings vs. holes):
> +/- 1 for polygons, 0 for non-polygon shapes.

A polygon contour is classified as an outer ring or a hole according to the sign of its signed area:

outer := sign(Area(contour)) == Parity
hole  := sign(Area(contour)) != Parity

The default value is -1 (i.e. clockwise orientation in a standard Cartesian coordinate system).

external triangles number    

The number of shape triangles.