A* Pathfinding Project  4.1.20
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
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.
 
void ClipPolygonAlongZWithY (ref VoxelPolygonClipper result, float multi, float offset)
 Clips a polygon against an axis aligned half plane.
 
void ClipPolygonAlongZWithYZ (ref VoxelPolygonClipper result, float multi, float offset)
 Clips a polygon against an axis aligned half plane.
 

Public Attributes

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

Properties

UnityEngine.Vector3 this[int i] [set]
 

Constructor & Destructor Documentation

VoxelPolygonClipper ( int  capacity)

Member Function Documentation

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
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
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

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

Property Documentation

UnityEngine.Vector3 this[int i]
set

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