Geometry

Description

Name

class Tinman.Shape.Geometry

Derived from

Shape

Creates a shape from the given geometry.

Fields / Required

vertices

Type

Vec2[]

Constraint

# != null

The shape vertices, given as optionally georeferenced coordinates.

Fields / Optional

edges

Type

Vec2[]

Default

null

The shape edges, given as pairs of vertex indices.


triangles

Type

Vec3[]

Default

null

The shape triangles, given as triplets of vertex indices.


parity

Type

number

Default

0

The shape edge parity.


georef

Type

CoordSys

Default

null

The shape georeference.