Table of Contents

Method GetFalloff

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

GetFalloff(Vector3[], float, FalloffDirection)

Builds a falloff polygon by offsetting each anchor along the averaged corner normal.

public static Vector3[] GetFalloff(Vector3[] srcAnchors, float distance, FalloffDirection direction)

Parameters

srcAnchors Vector3[]

Base polygon anchors.

distance float

Offset distance used to build the falloff polygon.

direction FalloffDirection

Whether the falloff polygon should expand outward or inward from the base polygon.

Returns

Vector3[]

A new anchor array describing the derived falloff polygon.

Remarks

For polygons with fewer than three anchors, the source anchors are copied unchanged because there is not enough topology to compute corner normals reliably.