Go to the source code of this file.
|
MRMESHC_API MROffsetParameters | mrOffsetParametersNew (void) |
| initializes a default instance
|
|
MRMESHC_API float | mrSuggestVoxelSize (MRMeshPart mp, float approxNumVoxels) |
| computes size of a cubical voxel to get approximately given number of voxels during rasterization
|
|
MRMESHC_API MRMesh * | mrOffsetMesh (MRMeshPart mp, float offset, const MROffsetParameters *params, MRString **errorString) |
|
MRMESHC_API MRMesh * | mrDoubleOffsetMesh (MRMeshPart mp, float offsetA, float offsetB, const MROffsetParameters *params, MRString **errorString) |
|
MRMESHC_API MRMesh * | mrMcOffsetMesh (MRMeshPart mp, float offset, const MROffsetParameters *params, MRString **errorString) |
|
MRMESHC_API MRMesh * | mrMcShellMeshRegion (const MRMesh *mesh, const MRFaceBitSet *region, float offset, const MROffsetParameters *params, MRString **errorString) |
|
MRMESHC_API MRGeneralOffsetParameters | mrGeneralOffsetParametersNew (void) |
| initializes a default instance
|
|
MRMESHC_API MRMesh * | mrSharpOffsetMesh (MRMeshPart mp, float offset, const MROffsetParameters *params, const MRGeneralOffsetParameters *generalParams, MRString **errorString) |
|
MRMESHC_API MRMesh * | mrGeneralOffsetMesh (MRMeshPart mp, float offset, const MROffsetParameters *params, const MRGeneralOffsetParameters *generalParams, MRString **errorString) |
|
MRMESHC_API MRMesh * | mrThickenMesh (const MRMesh *mesh, float offset, const MROffsetParameters *params, const MRGeneralOffsetParameters *generalParams, MRString **errorString) |
|
◆ MRGeneralOffsetParameters
typedef struct MRGeneralOffsetParameters MRGeneralOffsetParameters |
◆ MRGeneralOffsetParametersMode
allows the user to select in the parameters which offset algorithm to call
◆ MROffsetParameters
◆ MRGeneralOffsetParametersMode
allows the user to select in the parameters which offset algorithm to call
Enumerator |
---|
MRGeneralOffsetParametersModeSmooth | create mesh using dual marching cubes from OpenVDB library
|
MRGeneralOffsetParametersModeStandard | create mesh using standard marching cubes implemented in MeshLib
|
MRGeneralOffsetParametersModeSharpening | create mesh using standard marching cubes with additional sharpening implemented in MeshLib
|
◆ mrDoubleOffsetMesh()
Offsets mesh by converting it to voxels and back two times only closed meshes allowed (only Offset mode) typically offsetA and offsetB have distinct signs if an error has occurred and errorString is not NULL, returns NULL and allocates an error message to errorStr
◆ mrGeneralOffsetMesh()
Offsets mesh by converting it to voxels and back using one of three modes specified in the parameters if an error has occurred and errorString is not NULL, returns NULL and allocates an error message to errorStr
◆ mrGeneralOffsetParametersNew()
initializes a default instance
◆ mrMcOffsetMesh()
Offsets mesh by converting it to distance field in voxels (using OpenVDB library if SignDetectionMode::OpenVDB or our implementation otherwise) and back using standard Marching Cubes, as opposed to Dual Marching Cubes in offsetMesh(...) if an error has occurred and errorString is not NULL, returns NULL and allocates an error message to errorStr
◆ mrMcShellMeshRegion()
Constructs a shell around selected mesh region with the properties that every point on the shall must
- be located not further than given distance from selected mesh part,
- be located not closer to not-selected mesh part than to selected mesh part. if an error has occurred and errorString is not NULL, returns NULL and allocates an error message to errorStr
◆ mrOffsetMesh()
Offsets mesh by converting it to distance field in voxels using OpenVDB library, signDetectionMode = Unsigned(from OpenVDB) | OpenVDB | HoleWindingRule, and then converts back using OpenVDB library (dual marching cubes), so result mesh is always closed if an error has occurred and errorString is not NULL, returns NULL and allocates an error message to errorStr
◆ mrOffsetParametersNew()
initializes a default instance
◆ mrSharpOffsetMesh()
Offsets mesh by converting it to voxels and back post process result using reference mesh to sharpen features if an error has occurred and errorString is not NULL, returns NULL and allocates an error message to errorStr
◆ mrSuggestVoxelSize()
computes size of a cubical voxel to get approximately given number of voxels during rasterization
◆ mrThickenMesh()
in case of positive offset, returns the mesh consisting of offset mesh merged with inversed original mesh (thickening mode); in case of negative offset, returns the mesh consisting of inversed offset mesh merged with original mesh (hollowing mode); if your input mesh is open then please specify params.signDetectionMode = SignDetectionMode::Unsigned, and you will get open mesh (with several components) on output if your input mesh is closed then please specify another sign detection mode, and you will get closed mesh (with several components) on output; if an error has occurred and errorString is not NULL, returns NULL and allocates an error message to errorStr