Shape.Type

Description

Name

enum Tinman.Shape.Type

Used by

Shape.Info.type

Enumeration of shape types.

Items

# Name Tag

0

Implicit

-

An implicit shape.

The signed distance field of an implicit shape is defined by the custom arithmetic that is implied by the implementation class of the Shape interface.

An implicit shape may expose vertices of its aggregated shapes, either all of them or any subset thereof.

1

Group

-

A group shape that aggregates one or more other shapes.

The signed distance field of a group shape is defined as the minimum distance from a given point to any aggregated shape (distance point to shape).

All shapes in a group have the same geo-reference. If necessary, shapes will be transformed to the geo-reference of the group, before being added.

A shape group exposes all vertices of all the shapes that it aggregates, so that each shape group vertex can be mapped to an aggregated shape vertex. If an aggregated shape does not expose any vertices, the shape group exposes a pseudo-vertex for it, which is defined as the center of the bounding box of the corresponding aggregated shape.

2

Cube

-

A cubemap shape that aggregates a shape for each cubemap face.

Cubemap shapes are empty and do not have a signed distance field. There is an aggregated shape for each cubemap face that will be used instead.

The geo-reference of a cubemap shape is a projected coordinate system that uses the cubemap face projection for Face.NegZ (see CoordOp.Type.Cubemap_Face). The aggregated shapes use a cubemap face projection for their own cubemap face.

3

Points

-

A shape that is made of individual points.

The signed distance field of a point shape is defined as the minimum distance from a given point to any point in the shape (distance point to point).

4

Graph

-

A shape that is made of individual edges.

The signed distance field of a graph shape is defined as the minimum distance from a given point to any edge in the shape (distance point to line-segment).

5

Polygon

-

A shape that is made of one or more contours (i.e. a sequence of connected and non-intersecting edges) and defines one or more polygons with zero or more holes.

The signed distance field of a polygon shape is defined as the minimum distance from a given point to any edge on a contour (distance point to line-segment), scaled with the sign of the contour (1 on the outside, -1 on the inside).

6

Mesh

-

A shape that is made of individual triangles.

The signed distance field of a mesh shape is defined as the minimum distance from a given point to any triangle in the shape (distance point to triangle).