Explicit Conversion Functions
See Also: Class Mesh, Class PatchMesh, Class MNMesh , Class ObjectConverter
The following functions are available to apply explicit conversions of object types.
Function:
void ConvertMeshToPatch (Mesh &m, PatchMesh &pm, DWORD flags=0);
Remarks:
This method is available in release 4.0 and later only.
This function converts a mesh to a patch mesh.
Parameters:
Mesh &m
The mesh to convert.
PatchMesh &pm
The patchmesh to convert into.
DWORD flags=0
The conversion flags;
CONVERT_KEEPSEL
Translate subobject selections, so selected vertices, edges, or surface areas (faces or patches) in the input model is still selected in the output.
CONVERT_USESOFTSEL
Translate soft selections. Also, in the case of patches turning into meshes with more vertices, soft selections are used to interpolate between selected patch corners and nonselected ones.
CONVERT_PATCH_USEQUADS
When converting to a Patch model, create quad patches for any quads in the input mesh or polymesh. (Otherwise, turns everything into triangle patches).
CONVERT_NO_RELAX
Indicates in patch-to-mesh conversions that the Relax parameters in the patch should be ignored.
Function:
void ConvertPatchToMesh (PatchMesh &pm, Mesh &m, DWORD flags=0);
Remarks:
This method is available in release 4.0 and later only.
This function converts a patchmesh to a mesh.
Parameters:
PatchMesh &pm
The patchmesh to convert.
Mesh &m
The mesh to convert into..
DWORD flags=0
The conversion flags;
CONVERT_KEEPSEL
Translate subobject selections, so selected vertices, edges, or surface areas (faces or patches) in the input model is still selected in the output.
CONVERT_USESOFTSEL
Translate soft selections. Also, in the case of patches turning into meshes with more vertices, soft selections are used to interpolate between selected patch corners and nonselected ones.
CONVERT_PATCH_USEQUADS
When converting to a Patch model, create quad patches for any quads in the input mesh or polymesh. (Otherwise, turns everything into triangle patches).
CONVERT_NO_RELAX
Indicates in patch-to-mesh conversions that the Relax parameters in the patch should be ignored.
Function:
void ConvertPolyToPatch (MNMesh & from, PatchMesh & to, DWORD flags=0);
Remarks:
This method is available in release 4.0 and later only.
This function converts a poly object to a patch mesh.
Parameters:
MNMesh & from
The poly mesh to convert.
PatchMesh & to
The patchmesh to convert into.
DWORD flags=0
The conversion flags;
CONVERT_KEEPSEL
Translate subobject selections, so selected vertices, edges, or surface areas (faces or patches) in the input model is still selected in the output.
CONVERT_USESOFTSEL
Translate soft selections. Also, in the case of patches turning into meshes with more vertices, soft selections are used to interpolate between selected patch corners and nonselected ones.
CONVERT_PATCH_USEQUADS
When converting to a Patch model, create quad patches for any quads in the input mesh or polymesh. (Otherwise, turns everything into triangle patches).
CONVERT_NO_RELAX
Indicates in patch-to-mesh conversions that the Relax parameters in the patch should be ignored.
Function:
void ConvertPatchToPoly (PatchMesh & from, MNMesh & to, DWORD flags=0);
Remarks:
This method is available in release 4.0 and later only.
This function converts a patch mesh to a poly object.
Parameters:
PatchMesh & to
The patchmesh to convert into.
MNMesh & from
The poly mesh to convert.
DWORD flags=0
The conversion flags;
CONVERT_KEEPSEL
Translate subobject selections, so selected vertices, edges, or surface areas (faces or patches) in the input model is still selected in the output.
CONVERT_USESOFTSEL
Translate soft selections. Also, in the case of patches turning into meshes with more vertices, soft selections are used to interpolate between selected patch corners and nonselected ones.
CONVERT_PATCH_USEQUADS
When converting to a Patch model, create quad patches for any quads in the input mesh or polymesh. (Otherwise, turns everything into triangle patches).
CONVERT_NO_RELAX
Indicates in patch-to-mesh conversions that the Relax parameters in the patch should be ignored.