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

Represents data for a PolyMeshDetail object.

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++ 
[SerializableAttribute]
public sealed class PolyMeshDetailData
<SerializableAttribute> _
Public NotInheritable Class PolyMeshDetailData
[SerializableAttribute]
public ref class PolyMeshDetailData sealed

Members

            
 All Members  Constructors   Fields   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
PolyMeshDetailData(Int32, Int32, Int32)
Constructor.
CanFit(Int32, Int32, Int32)
Checks the size of the buffers to see if they are large enough to hold the specified data.
meshCount
The sub-mesh count. [Limit: > 0]
meshes
The sub-mesh data. [(baseVertIndex, vertCount, baseTriIndex, triCount) * meshCount] [Size: >= 4 * meshCount]
Reset(Int32, Int32, Int32)
Clears all object data and resizes the buffers.
triCount
The triangle count. [Limit > 0]
tris
The mesh triangles. [vertIndexA, vertIndexB, vertIndexC, flag) * triCount] [Size: >= 4 * triCount]
vertCount
The vertex count. [Limit: >= 3]
verts
The mesh vertices. [Length: >= vertCount]

Remarks

Warning: The serializable attributewill be removed in v0.5. Use GetSerializedData(Boolean) instead of serializing this object.

The detail mesh is made up of triangle sub-meshes which provide extra height detail for each polygon in its assoicated polygon mesh.

See the individual field definitions for details related to the structure of the mesh.

Implemented as a class with public fields in order to support Unity serialization. Care must be taken not to set the fields to invalid values.

Inheritance Hierarchy

System..::..Object
  org.critterai.nmgen..::..PolyMeshDetailData

See Also