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

Applies the area to the all spans within the specified convex polygon.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool MarkConvexPolyArea(
	BuildContext context,
	Vector3[] verts,
	float yMin,
	float yMax,
	byte area
)
Public Function MarkConvexPolyArea ( _
	context As BuildContext, _
	verts As Vector3(), _
	yMin As Single, _
	yMax As Single, _
	area As Byte _
) As Boolean
public:
bool MarkConvexPolyArea(
	BuildContext^ context, 
	array<Vector3>^ verts, 
	float yMin, 
	float yMax, 
	unsigned char area
)

Parameters

context
BuildContext
The context to use duing the operation.
verts
array<Vector3>[]()[][]
The vertices of the polygon [Length: vertCount]
yMin
Single
The height of the base of the polygon.
yMax
Single
The height of the top of the polygon.
area
Byte
The area to apply.

Return Value

True if the operation completed successfully.

Remarks

The y-values of the polygon vertices are ignored. So the polygon is effectively projected onto the xz-plane at yMin, then extruded to yMax.

The method will return false if the polygon is completely outside of the heightfield.

See Also