Utility for clipping polygons.
More...
Utility for clipping polygons.
|
int | n |
|
float [] | x |
|
float [] | y |
|
float [] | z |
|
◆ VoxelPolygonClipper()
◆ ClipPolygonAlongX()
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 |
◆ ClipPolygonAlongZWithY()
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 |
◆ ClipPolygonAlongZWithYZ()
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 |
◆ this[int i]
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