The class of Poly mesh.
More...
|
| static bool | IsBoundaryEdge (int flag) |
| | Determines if it is a boundary edge with the specified flag. More...
|
| |
| static bool | IsInteriorEdge (int flag) |
| | Determines if it is an interior edge with the specified flag. More...
|
| |
| static bool | HasDiagonalFlag (int index) |
| | Determines if it is a diagonal flag on the specified index. More...
|
| |
| static bool | Diagonal (int i, int j, PolyVertex[] verts, int[] indices) |
| | True if and only if (v[i], v[j]) is a proper internal diagonal of polygon. More...
|
| |
| static bool | InCone (int i, int j, PolyVertex[] verts, int[] indices) |
| | True if and only if diagonal (i, j) is strictly internal to polygon in neighborhood of i endpoint. More...
|
| |
| static bool | Diagonalie (int i, int j, PolyVertex[] verts, int[] indices) |
| | True if and only if (v[i], v[j]) is internal or external diagonal ignoring edges incident to v[i] or v[j]. More...
|
| |
The class of Poly mesh.
Definition at line 22 of file PolyMesh.cs.
◆ PolyMesh() [1/2]
Initializes a new instance of the PolyMesh class.
- Parameters
-
| contSet | The ContourSet to generate polygons from. |
| settings | The settings to build with. |
Definition at line 47 of file PolyMesh.cs.
◆ PolyMesh() [2/2]
| SharpNav.PolyMesh.PolyMesh |
( |
ContourSet |
contSet, |
|
|
float |
cellSize, |
|
|
float |
cellHeight, |
|
|
int |
borderSize, |
|
|
int |
numVertsPerPoly |
|
) |
| |
Initializes a new instance of the PolyMesh class by creating polygons from contours.
- Parameters
-
| contSet | The ContourSet to generate polygons from. |
| cellSize | The size of one voxel/cell. |
| cellHeight | The height of one voxel/cell. |
| borderSize | The size of the border around the mesh. |
| numVertsPerPoly | The maximum number of vertices per polygon. |
Definition at line 60 of file PolyMesh.cs.
◆ Diagonal()
| static bool SharpNav.PolyMesh.Diagonal |
( |
int |
i, |
|
|
int |
j, |
|
|
PolyVertex[] |
verts, |
|
|
int[] |
indices |
|
) |
| |
|
static |
True if and only if (v[i], v[j]) is a proper internal diagonal of polygon.
- Parameters
-
| i | Vertex index i |
| j | Vertex index j |
| verts | Contour vertices |
| indices | PolyMesh indices |
- Returns
- True, if internal diagonal. False, if otherwise.
Definition at line 415 of file PolyMesh.cs.
◆ Diagonalie()
| static bool SharpNav.PolyMesh.Diagonalie |
( |
int |
i, |
|
|
int |
j, |
|
|
PolyVertex[] |
verts, |
|
|
int[] |
indices |
|
) |
| |
|
static |
True if and only if (v[i], v[j]) is internal or external diagonal ignoring edges incident to v[i] or v[j].
- Parameters
-
| i | Vertex index i |
| j | Vertex index j |
| verts | Contour vertices |
| indices | PolyMesh indices |
- Returns
- True, if internal or external diagonal. False, if otherwise.
Definition at line 453 of file PolyMesh.cs.
◆ HasDiagonalFlag()
| static bool SharpNav.PolyMesh.HasDiagonalFlag |
( |
int |
index | ) |
|
|
static |
Determines if it is a diagonal flag on the specified index.
- Parameters
-
- Returns
true if it is a diagonal flag on the specified index; otherwise, false.
Definition at line 402 of file PolyMesh.cs.
◆ InCone()
| static bool SharpNav.PolyMesh.InCone |
( |
int |
i, |
|
|
int |
j, |
|
|
PolyVertex[] |
verts, |
|
|
int[] |
indices |
|
) |
| |
|
static |
True if and only if diagonal (i, j) is strictly internal to polygon in neighborhood of i endpoint.
- Parameters
-
| i | Vertex index i |
| j | Vertex index j |
| verts | Contour vertices |
| indices | PolyMesh indices |
- Returns
- True, if internal. False, if otherwise.
Definition at line 429 of file PolyMesh.cs.
◆ IsBoundaryEdge()
| static bool SharpNav.PolyMesh.IsBoundaryEdge |
( |
int |
flag | ) |
|
|
static |
Determines if it is a boundary edge with the specified flag.
- Returns
true if is boundary edge the specified flag; otherwise, false.
- Parameters
-
Definition at line 382 of file PolyMesh.cs.
◆ IsInteriorEdge()
| static bool SharpNav.PolyMesh.IsInteriorEdge |
( |
int |
flag | ) |
|
|
static |
Determines if it is an interior edge with the specified flag.
- Returns
true if is interior edge the specified flag; otherwise, false.
- Parameters
-
Definition at line 392 of file PolyMesh.cs.
◆ BorderSize
| int SharpNav.PolyMesh.BorderSize |
|
get |
◆ Bounds
| BBox3 SharpNav.PolyMesh.Bounds |
|
get |
Gets the bounds.
The bounds.
Definition at line 336 of file PolyMesh.cs.
◆ CellHeight
| float SharpNav.PolyMesh.CellHeight |
|
get |
◆ CellSize
| float SharpNav.PolyMesh.CellSize |
|
get |
◆ NumVertsPerPoly
| int SharpNav.PolyMesh.NumVertsPerPoly |
|
get |
Gets the number of vertices per polygon
Definition at line 302 of file PolyMesh.cs.
◆ PolyCount
| int SharpNav.PolyMesh.PolyCount |
|
get |
Gets the number of polygons
Definition at line 291 of file PolyMesh.cs.
◆ Polys
◆ VertCount
| int SharpNav.PolyMesh.VertCount |
|
get |
Gets the number of vertices
Definition at line 280 of file PolyMesh.cs.
◆ Verts
The documentation for this class was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/PolyMesh.cs