Utility for clipping polygons.
More...
Utility for clipping polygons.
|
int | n |
|
float[] | x |
|
float[] | y |
|
float[] | z |
|
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
-
result | Ouput vertices |
multi | Scale factor for the input vertices. Should be +1 or -1. If -1 the negative half plane is kept. |
offset | Offset to move the input vertices with before cutting |
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
-
result | Ouput vertices. Only the Y coordinates are calculated. The X and Z coordinates are undefined. |
multi | Scale factor for the input vertices. Should be +1 or -1. If -1 the negative half plane is kept. |
offset | Offset to move the input vertices with before cutting |
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
-
result | Ouput vertices. Only the Y and Z coordinates are calculated. The X coordinates are undefined. |
multi | Scale factor for the input vertices. Should be +1 or -1. If -1 the negative half plane is kept. |
offset | Offset to move the input vertices with before cutting |
UnityEngine.Vector3 this[int i] |
|
set |
The documentation for this struct was generated from the following file:
- /Users/arong/unity/a-pathfinding-project/Assets/AstarPathfindingProject/Generators/Utilities/Voxels/VoxelPolygonClipper.cs