HullFrustum

Description

sealed class Tinman.Terrain.Meshing.HullFrustum

Derived from

Frustum abstract

The HullFrustum class consumes a point soup in terrain-space, transforms it to frustum-space, computes the convex hull in the XY-plane and extrudes the hull along the Z-axis to obtain the final hull frustum.

Public / Constructors

Hull​Frustum


public constructor HullFrustum → ()

Creates a new instance of HullFrustum.

Public / Methods

Clear


public method Clear → ()

Clears the computed hull frustum.

Compute


public method Compute → (2)

pointSoup in : IArrayVector<Vec3D>

[not-null]
The point soup, in terrain-space.

maxPlaneCount opt : int32 = 30

[0..30]
The maximum number of frustum planes to use.

Compute the hull frustum from the given point soup.

The frustum plane at index zero is the far clipping plane.

Public / Attributes

Hull


public attribute Hull → (get)

value : IVectorConst<Vec2D>

[not-null]
The convex hull vertices.

The vertices of the convex hull, in frustum-space.

Matrix


public attribute Matrix → (get,set)

value : Mat4D

The transformation matrix.

The matrix that transforms from terrain-space to frustum-space.