MeshConvexDecompositionSettings
Parameters to be used with a Mesh convex decomposition operation.
Parameters to be used with a Mesh convex decomposition operation.
Parameters to be used with a Mesh convex decomposition operation.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
MeshConvexDecompositionSettingsConstructor
public MeshConvexDecompositionSettings();Properties13
ConvexHullApproximationProperty
public bool ConvexHullApproximation { get; set; }If true, uses approximation for computing convex hulls.
ConvexHullDownsamplingProperty
public uint ConvexHullDownsampling { get; set; }Controls the precision of the convex-hull generation process during the clipping plane selection stage. Ranges from 1 to 16.
MaxConcavityProperty
public float MaxConcavity { get; set; }Maximum concavity. Ranges from 0.0 to 1.0.
MaxConvexHullsProperty
public uint MaxConvexHulls { get; set; }The maximum number of convex hulls to produce from the merge operation.
MaxNumVerticesPerConvexHullProperty
public uint MaxNumVerticesPerConvexHull { get; set; }Controls the maximum number of triangles per convex-hull. Ranges from 4 to 1024.
MinVolumePerConvexHullProperty
public float MinVolumePerConvexHull { get; set; }Controls the adaptive sampling of the generated convex-hulls. Ranges from 0.0 to 0.01.
ModeProperty
public MeshConvexDecompositionSettings.ModeEnum Mode { get; set; }Mode for the approximate convex decomposition.
NormalizeMeshProperty
public bool NormalizeMesh { get; set; }If true, normalizes the mesh before applying the convex decomposition.
PlaneDownsamplingProperty
public uint PlaneDownsampling { get; set; }Controls the granularity of the search for the "best" clipping plane. Ranges from 1 to 16.
ProjectHullVerticesProperty
public bool ProjectHullVertices { get; set; }If true, projects output convex hull vertices onto the original source mesh to increase floating-point accuracy of the results.
ResolutionProperty
public uint Resolution { get; set; }Maximum number of voxels generated during the voxelization stage.
RevolutionAxesClippingBiasProperty
public float RevolutionAxesClippingBias { get; set; }Controls the bias toward clipping along revolution axes. Ranges from 0.0 to 1.0.
SymmetryPlanesClippingBiasProperty
public float SymmetryPlanesClippingBias { get; set; }Controls the bias toward clipping along symmetry planes. Ranges from 0.0 to 1.0.
Methods26
GetConvexHullApproximationbool
public bool GetConvexHullApproximation();boolGetConvexHullDownsamplinguint
public uint GetConvexHullDownsampling();uintGetMaxConcavityfloat
public float GetMaxConcavity();floatGetMaxConvexHullsuint
public uint GetMaxConvexHulls();uintGetMaxNumVerticesPerConvexHulluint
public uint GetMaxNumVerticesPerConvexHull();uintGetMinVolumePerConvexHullfloat
public float GetMinVolumePerConvexHull();floatGetModeMeshConvexDecompositionSettings.ModeEnum
public MeshConvexDecompositionSettings.ModeEnum GetMode();MeshConvexDecompositionSettings.ModeEnumGetNormalizeMeshbool
public bool GetNormalizeMesh();boolGetPlaneDownsamplinguint
public uint GetPlaneDownsampling();uintGetProjectHullVerticesbool
public bool GetProjectHullVertices();boolGetResolutionuint
public uint GetResolution();uintGetRevolutionAxesClippingBiasfloat
public float GetRevolutionAxesClippingBias();floatGetSymmetryPlanesClippingBiasfloat
public float GetSymmetryPlanesClippingBias();floatSetConvexHullApproximationvoid
public void SetConvexHullApproximation(bool convexHullApproximation);| Name | Type | Default |
|---|---|---|
convexHullApproximation | bool | — |
SetConvexHullDownsamplingvoid
public void SetConvexHullDownsampling(uint convexHullDownsampling);| Name | Type | Default |
|---|---|---|
convexHullDownsampling | uint | — |
SetMaxConcavityvoid
public void SetMaxConcavity(float maxConcavity);| Name | Type | Default |
|---|---|---|
maxConcavity | float | — |
SetMaxConvexHullsvoid
public void SetMaxConvexHulls(uint maxConvexHulls);| Name | Type | Default |
|---|---|---|
maxConvexHulls | uint | — |
SetMaxNumVerticesPerConvexHullvoid
public void SetMaxNumVerticesPerConvexHull(uint maxNumVerticesPerConvexHull);| Name | Type | Default |
|---|---|---|
maxNumVerticesPerConvexHull | uint | — |
SetMinVolumePerConvexHullvoid
public void SetMinVolumePerConvexHull(float minVolumePerConvexHull);| Name | Type | Default |
|---|---|---|
minVolumePerConvexHull | float | — |
SetModevoid
public void SetMode(MeshConvexDecompositionSettings.ModeEnum mode);| Name | Type | Default |
|---|---|---|
mode | MeshConvexDecompositionSettings.ModeEnum | — |
SetNormalizeMeshvoid
public void SetNormalizeMesh(bool normalizeMesh);| Name | Type | Default |
|---|---|---|
normalizeMesh | bool | — |
SetPlaneDownsamplingvoid
public void SetPlaneDownsampling(uint planeDownsampling);| Name | Type | Default |
|---|---|---|
planeDownsampling | uint | — |
SetProjectHullVerticesvoid
public void SetProjectHullVertices(bool projectHullVertices);| Name | Type | Default |
|---|---|---|
projectHullVertices | bool | — |
SetResolutionvoid
public void SetResolution(uint minVolumePerConvexHull);| Name | Type | Default |
|---|---|---|
minVolumePerConvexHull | uint | — |
SetRevolutionAxesClippingBiasvoid
public void SetRevolutionAxesClippingBias(float revolutionAxesClippingBias);| Name | Type | Default |
|---|---|---|
revolutionAxesClippingBias | float | — |
SetSymmetryPlanesClippingBiasvoid
public void SetSymmetryPlanesClippingBias(float symmetryPlanesClippingBias);| Name | Type | Default |
|---|---|---|
symmetryPlanesClippingBias | float | — |
MeshConvexDecompositionSettings.ModeEnum
| Value | Description |
|---|---|
Tetrahedron = 1 | Constant for tetrahedron-based approximate convex decomposition. |
Voxel = 0 | Constant for voxel-based approximate convex decomposition. |