A* Pathfinding Project  4.3.5
The A* Pathfinding Project for Unity 3D
VoxelPolygonClipper Struct Reference

Utility for clipping polygons. More...

Detailed Description

Utility for clipping polygons.

Public Member Functions

 VoxelPolygonClipper (int capacity)
 
void ClipPolygonAlongX (ref VoxelPolygonClipper result, float multi, float offset)
 Clips a polygon against an axis aligned half plane. More...
 
void ClipPolygonAlongZWithY (ref VoxelPolygonClipper result, float multi, float offset)
 Clips a polygon against an axis aligned half plane. More...
 
void ClipPolygonAlongZWithYZ (ref VoxelPolygonClipper result, float multi, float offset)
 Clips a polygon against an axis aligned half plane. More...
 

Public Attributes

int n
 
float [] x
 
float [] y
 
float [] z
 

Properties

UnityEngine.Vector3 this[int i] [set]
 

Constructor & Destructor Documentation

◆ VoxelPolygonClipper()

VoxelPolygonClipper ( int  capacity)

Member Function Documentation

◆ ClipPolygonAlongX()

void ClipPolygonAlongX ( ref VoxelPolygonClipper  result,
float  multi,
float  offset 
)

Clips a polygon against an axis aligned half plane.

The polygons stored in this object are clipped against the half plane at x = -offset.

Parameters
resultOuput vertices
multiScale factor for the input vertices. Should be +1 or -1. If -1 the negative half plane is kept.
offsetOffset to move the input vertices with before cutting

◆ ClipPolygonAlongZWithY()

void ClipPolygonAlongZWithY ( ref VoxelPolygonClipper  result,
float  multi,
float  offset 
)

Clips a polygon against an axis aligned half plane.

The polygons stored in this object are clipped against the half plane at z = -offset.

Parameters
resultOuput vertices. Only the Y coordinates are calculated. The X and Z coordinates are undefined.
multiScale factor for the input vertices. Should be +1 or -1. If -1 the negative half plane is kept.
offsetOffset to move the input vertices with before cutting

◆ ClipPolygonAlongZWithYZ()

void ClipPolygonAlongZWithYZ ( ref VoxelPolygonClipper  result,
float  multi,
float  offset 
)

Clips a polygon against an axis aligned half plane.

The polygons stored in this object are clipped against the half plane at z = -offset.

Parameters
resultOuput vertices. Only the Y and Z coordinates are calculated. The X coordinates are undefined.
multiScale factor for the input vertices. Should be +1 or -1. If -1 the negative half plane is kept.
offsetOffset to move the input vertices with before cutting

Member Data Documentation

◆ n

int n

◆ x

float [] x

◆ y

float [] y

◆ z

float [] z

Property Documentation

◆ this[int i]

UnityEngine.Vector3 this[int i]
set

The documentation for this struct was generated from the following file: