IShapeInfo

Description

interface Tinman.Terrain.Shapes.IShapeInfo

Derived from

IConfigurable

Extended by

IShape
ShapeInfo sealed

Provides information about a vector shape.

Public / Attributes

Edge​Count


public attribute EdgeCount → (get)

value : int32

[>=0]
The number of shape edges.

Returns the number of shape edges.

See also

IShape.EdgeAt

Edge​Parity


public attribute EdgeParity → (get)

value : int32

The parity value: +/- 1 for polygons, 0 for non-polygon shapes.

Defines how the vertex winding of polygon contours is interpreted (outer rings vs. holes).

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 where X+ points rightwards and Y+ points upwards).

Georef


public attribute Georef → (get)

value : CoordinateSystem

[not-null]
The coordinate system.

The coordinate system of the shape.

The default coordinate system is a local one (see CoordinateSystem.IsLocal) in metres (see UnitOfMeasure.Metre).

Metadata


public attribute Metadata → (get)

value : IJsonValue

[not-null]
The metadata value or JsonValue.Null if the shape has no metadata.

The metadata of the shape.

Shape​Count


public attribute ShapeCount → (get)

value : int32

[>=0]
The aggregated shape count.

Returns the number of aggregated shapes.

Triangle​Count


public attribute TriangleCount → (get)

value : int32

[>=0]
The number of shape triangles.

Returns the number of shape triangles.

Type


public attribute Type → (get)

value : ShapeType

The shape type.

The shape type.

Value​Mask


public attribute ValueMask → (get)

value : ShapeValue

The additional shape values.

Returns the additional per-vertex shape values that are present in this shape.

See also

IShape.ValueAt

Vertex​Count


public attribute VertexCount → (get)

value : int32

[>=0]
The number of shape vertices.

Returns the number of shape vertices.

See also

IShape.VertexAt