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

Represents a simple, non-overlapping contour in voxel space.

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 sealed class Contour : IManagedObject
Public NotInheritable Class Contour _
	Implements IManagedObject
public ref class Contour sealed : IManagedObject

Members

            
 All Members  Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Area
The area associated with the contour.
GetRawVerts(array<Int32>[]()[][])
Loads the vertices and connection data for the raw contour into the specified buffer.
GetVerts(array<Int32>[]()[][])
Loads the vertices and connection data for the simplified contour into the specified buffer.
IsDisposed
True if the object has been disposed and should no longer be used.
RawVertCount
The number of vertices in the raw contour.
Region
The region id associated with the contour.
RegionMask
The mask to apply to the forth element of the vertices data in order to extract region ids. (Removes flags from the element.)
RequestDisposal()()()()
Has no effect on the object. (The object owner will handle disposal.)
ResourceType
The type of unmanaged resources within the object.
VertCount
The number of vertices in the simplified contour.

Remarks

While the height of the border will vary, the contour will always form a simple polygon when projected onto the xz-plane.

Minimum bounds and cell size information is needed in order to translate vertex coordinates into world space.

CopyC#
worldX = boundsMin[0] + vertX * xzCellSize
worldY = boundsMin[1] + vertY * yCellSize
worldZ = boundsMin[2] + vertZ * xzCellSize

A contour only exists within the context of a ContourSet.

Behavior is undefined if used after disposal.

Inheritance Hierarchy

System..::..Object
  org.critterai.nmgen..::..Contour

See Also