[This is preliminary documentation and is subject to change.]

Returns the 3D centroids of the provided navigation mesh polygons.

Namespace: org.critterai.nav.u3d
Assembly: cai-nav-u3d (in cai-nav-u3d.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static int GetCentroids(
	Navmesh mesh,
	uint[] polyRefs,
	int polyCount,
	Vector3[] centroids
)
Public Shared Function GetCentroids ( _
	mesh As Navmesh, _
	polyRefs As UInteger(), _
	polyCount As Integer, _
	centroids As Vector3() _
) As Integer
public:
static int GetCentroids(
	Navmesh^ mesh, 
	array<unsigned int>^ polyRefs, 
	int polyCount, 
	array<Vector3>^ centroids
)

Parameters

mesh
Navmesh
The navigation mesh containing the polygons.
polyRefs
array<UInt32>[]()[][]
The references of the polygons.
polyCount
Int32
The number of polygons.
centroids
array<Vector3>[]()[][]
The centroids for the polygons. [Length: >= polyCount] (Out)

Return Value

The actual number of polygons found within the mesh.

Remarks

If a polygon does not exist within the mesh, its associated centroid will not be altered. So some centroid data will be invalid if polyCount is not equal to the result count.

See Also