A contour is formed from a region.
More...
|
ContourVertex[] | Vertices [get] |
| Gets the simplified vertices of the contour. More...
|
|
bool | IsNull [get] |
| Gets a value indicating whether the contour is "null" (has less than 3 vertices). More...
|
|
Area | Area [get] |
| Gets the area ID of the contour. More...
|
|
RegionId | RegionId [get] |
| Gets the region ID of the contour. More...
|
|
int | Area2D [get] |
| Gets the 2D area of the contour. A positive area means the contour is going forwards, a negative area maens it is going backwards. More...
|
|
A contour is formed from a region.
Definition at line 13 of file Contour.cs.
◆ Contour()
Initializes a new instance of the Contour class.
- Parameters
-
verts | The raw vertices of the contour. |
region | The region ID of the contour. |
area | The area ID of the contour. |
borderSize | The size of the border. |
Definition at line 27 of file Contour.cs.
◆ MergeWith()
void SharpNav.Contour.MergeWith |
( |
Contour |
contour | ) |
|
Merges another contour into this instance.
- Parameters
-
contour | The contour to merge. |
Definition at line 115 of file Contour.cs.
◆ RemoveDegenerateSegments()
static void SharpNav.Contour.RemoveDegenerateSegments |
( |
List< ContourVertex > |
simplified | ) |
|
|
static |
Removes degenerate segments from a simplified contour.
- Parameters
-
simplified | The simplified contour. |
Definition at line 412 of file Contour.cs.
◆ Simplify()
Simplify the contours by reducing the number of edges
- Parameters
-
rawVerts | Initial vertices |
simplified | New and simplified vertices |
maxError | Maximum error allowed |
maxEdgeLen | The maximum edge length allowed |
buildFlags | Flags determines how to split the long edges |
Definition at line 192 of file Contour.cs.
◆ Area
Area SharpNav.Contour.Area |
|
get |
Gets the area ID of the contour.
Definition at line 73 of file Contour.cs.
◆ Area2D
int SharpNav.Contour.Area2D |
|
get |
Gets the 2D area of the contour. A positive area means the contour is going forwards, a negative area maens it is going backwards.
Definition at line 96 of file Contour.cs.
◆ IsNull
bool SharpNav.Contour.IsNull |
|
get |
Gets a value indicating whether the contour is "null" (has less than 3 vertices).
Definition at line 58 of file Contour.cs.
◆ RegionId
Gets the region ID of the contour.
Definition at line 84 of file Contour.cs.
◆ Vertices
Gets the simplified vertices of the contour.
Definition at line 47 of file Contour.cs.
The documentation for this class was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/Contour.cs