IShapeInfo

Description

interface Tinman.Terrain.Shapes.IShapeInfo

Derived from

IConfigurable

Extended by

IShape
ShapeInfo sealed

Provides information about a vector shape.

Public / Attributes

EdgeCount


public attribute EdgeCount → (get)

value : int32

[>=0]
The number of shape edges.

Returns the number of shape edges.

See also

IShape.EdgeAt

EdgeParity


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).

IsCubemap


public attribute IsCubemap → (get)

value : bool

true if this is a cubemap shape, false if not.

Is this a cubemap shape?

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

TriangleCount


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.

VertexCount


public attribute VertexCount → (get)

value : int32

[>=0]
The number of shape vertices.

Returns 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.

See also

IShape.VertexAt