[This is preliminary documentation and is subject to change.]
Assembly: cai-nmgen (in cai-nmgen.dll) Version: 0.4.0.0 (0.4.0.0)
|C#||Visual Basic||Visual C++|
XNA Framework Only
.NET Compact Framework Only
|Build(BuildContext, PolyMesh, CompactHeightfield, Single, Single)|
Builds a detail mesh from the provided polygon mesh.
Constructs a detail mesh from the data generated by the GetSerializedData(Boolean) method.
|Create(Int32, Int32, Int32)|
Constructs an object with all buffers allocated and ready to load with data. (See: Load(PolyMeshDetailData))
Gets the data from the mesh buffers.
Loads the data from the mesh buffers into the data object.
Gets serialization data for the object.
Gets a serialized version of the mesh that can be used to recreate it later.
True if the object has been disposed and should no longer be used.
Loads the data into the mesh buffers, overwriting existing content.
The maximum number of sub-meshes the mesh buffers can hold.
The maximum number of triangls the triangle buffers can hold.
The maximum number of vertices the vertex buffer can hold.
The number of sub-meshes in the detail mesh.
Frees all resources and marks the object as disposed.
The type of unmanaged resources within the object.
The total number of triangles in the detail mesh.
The total number of vertices in the detail mesh.
Warning: The serializable attribute and interface will be removed in v0.5. Use GetSerializedData(Boolean) instead.
The detail mesh is made up of triangle sub-meshes which provide extra height detail for each polygon in its assoicated polygon mesh.
This class is moslty opaque. The PolyMeshDetailData class provides the ability to inspect and update the content.
This class is not compatible with Unity serialization. The GetSerializedData(Boolean) method can be used for manual serialization within Unity.
Behavior is undefined if used after disposal.