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

Shape​Polygon​Simple​Base

2 overloads


protected constructor ShapePolygonSimpleBase1 → (1)

serialId in : ISerialTypeInfo

[not-null]
The serial type ID.

Creates a new instance of ShapePolygonSimpleBase.


protected constructor ShapePolygonSimpleBase2 → (6)

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.

metadata in : IJsonValue

Optional metadata.

values in : float64 [ ] [ ]

The custom per-vertex values that will be passed to ShapeGeometry.

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.