ConvexDecomposition Class |
Namespace: DigitalRune.Geometry.Meshes
The ConvexDecomposition type exposes the following members.
Name | Description | |
---|---|---|
ConvexDecomposition |
Initializes a new instance of the ConvexDecomposition class.
|
Name | Description | |
---|---|---|
CancelAsync |
Cancels the current asynchronous decomposition process.
| |
Decompose |
Decomposes the specified mesh.
| |
DecomposeAsync |
Decomposes the specified mesh (asynchronously).
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AllowedConcavity |
Gets or sets the allowed concavity.
| |
Decomposition |
Gets the convex decomposition of the mesh.
| |
EnableMultithreading |
Gets or sets a value indicating whether multithreading is enabled. (Experimental!)
| |
IntermediateVertexLimit |
Gets or sets the maximal of number vertices per convex part during the decomposition
process.
| |
IsBusy |
Gets or sets a value indicating whether an asynchronous decomposition is in progress.
| |
SampleTriangleCenters |
Gets or sets a value indicating whether triangle centers are used for concavity computation.
| |
SampleTriangleVertices |
Gets or sets a value indicating whether triangle vertices are used for concavity
computation.
| |
SkinWidth |
Gets or sets the width of the skin of each convex part.
| |
SmallIslandBoost |
Gets or sets the small island boost factor.
| |
VertexLimit |
Gets or sets the maximal number of vertices per convex part in the final result.
|
Name | Description | |
---|---|---|
Completed |
Occurs when an asynchronous decomposition (see DecomposeAsync(ITriangleMesh)) has completed.
| |
ProgressChanged |
Occurs when a property value changes.
|
An approximate convex decomposition takes a mesh and computes a composite shape of convex polyhedra (see Decomposition) that resembles the original mesh.
To use this process: Create an instance of this class. Set decomposition parameters (like AllowedConcavity, VertexLimit, etc.). Then start the process with Decompose(ITriangleMesh) or DecomposeAsync(ITriangleMesh). After the decomposition has finished the result is available in the property Decomposition.
This class is not available in the Silverlight and the Xbox 360 compatible build of DigitalRune.Geometry.dll.