![]() |
Dungeon Architect
17.0.0
|
A set of contours around the regions of a CompactHeightfield, used as the edges of a PolyMesh. More...
Public Member Functions | |
| ContourSet (IEnumerable< Contour > contours, BBox3 bounds, int width, int height) | |
| Initializes a new instance of the ContourSet class. More... | |
| bool | Contains (Contour item) |
| Checks if a specified ContourSet is contained in the ContourSet. More... | |
| void | CopyTo (Contour[] array, int arrayIndex) |
| Copies the Contours in the set to an array. More... | |
| IEnumerator< Contour > | GetEnumerator () |
| Returns an enumerator that iterates through the entire ContourSet. More... | |
Properties | |
| int | Count [get] |
| Gets the number of Contours in the set. More... | |
| BBox3 | Bounds [get] |
| Gets the world-space bounding box of the set. More... | |
| int | Width [get] |
| Gets the width of the set, not including the border size specified in CompactHeightfield. More... | |
| int | Height [get] |
| Gets the height of the set, not including the border size specified in CompactHeightfield. More... | |
A set of contours around the regions of a CompactHeightfield, used as the edges of a PolyMesh.
Definition at line 18 of file ContourSet.cs.
| SharpNav.ContourSet.ContourSet | ( | IEnumerable< Contour > | contours, |
| BBox3 | bounds, | ||
| int | width, | ||
| int | height | ||
| ) |
Initializes a new instance of the ContourSet class.
| contours | A collection of Contours. |
| bounds | The bounding box that contains all of the Contours. |
| width | The width, in voxel units, of the world. |
| height | The height, in voxel units, of the world. |
Definition at line 32 of file ContourSet.cs.
| bool SharpNav.ContourSet.Contains | ( | Contour | item | ) |
Checks if a specified ContourSet is contained in the ContourSet.
| item | A contour. |
Definition at line 97 of file ContourSet.cs.
| void SharpNav.ContourSet.CopyTo | ( | Contour[] | array, |
| int | arrayIndex | ||
| ) |
Copies the Contours in the set to an array.
| array | The array to copy to. |
| arrayIndex | The zero-based index in array at which copying begins. |
Definition at line 107 of file ContourSet.cs.
| IEnumerator<Contour> SharpNav.ContourSet.GetEnumerator | ( | ) |
Returns an enumerator that iterates through the entire ContourSet.
Definition at line 116 of file ContourSet.cs.
|
get |
Gets the world-space bounding box of the set.
Definition at line 54 of file ContourSet.cs.
|
get |
Gets the number of Contours in the set.
Definition at line 43 of file ContourSet.cs.
|
get |
Gets the height of the set, not including the border size specified in CompactHeightfield.
Definition at line 76 of file ContourSet.cs.
|
get |
Gets the width of the set, not including the border size specified in CompactHeightfield.
Definition at line 65 of file ContourSet.cs.