ShapePolygonSimpleBase

Description

abstract class Tinman.Terrain.Shapes.ShapePolygonSimpleBase

Derived from

ShapePolygonBase abstract

Abstract base class for IShape implementations that represent polygons.

This class represents a simple polygon (i.e. a single closed, non-intersecting ring).

Protected / Constructors

ShapePolygonSimpleBase

2 overloads


protected constructor ShapePolygonSimpleBase1 → (1)

serialId in : ISerialTypeInfo

[not-null]
The serial type ID.

Creates a new instance of ShapePolygonSimpleBase.


protected constructor ShapePolygonSimpleBase2 → (4)

serialId in : ISerialTypeInfo

[not-null]
The serial type ID.

negative in : bool

Polygon has negative parity?

vertices in : Vec2D [ ]

[not-null]
The shape vertices.

georef in : CoordinateSystem

Optional geo-reference.

Creates a new instance of ShapePolygonSimpleBase.

Protected / Methods

Next


protected method Next → (1)

vertex in : int32

The vertex index.

returns → int32

Index of next vertex.

Returns the next vertex.

Prev


protected method Prev → (1)

vertex in : int32

The vertex index.

returns → int32

Index of previous vertex.

Returns the previous vertex.

Protected / Attributes

n


protected attribute n → (int32)

Maximum vertex index.