Explicit Mesh Conversion Functions

The following functions are available to apply explicit conversions of object types.

  • ConvertPatchToMesh() - Converts a patch mesh to a mesh.
  • ConvertMeshToPatch() - Converts a mesh to a patch mesh.
  • ConvertPolyToPatch() - Converts a poly object to a patch mesh.
  • ConvertPatchToPoly() - Converts a patch object to a poly object.

Both conversion functions use the following 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 non-selected ones.
  • CONVERT_PATCH_USEQUADS - When converting to a Patch model, create quad patches for any quads in the input mesh or poly mesh. (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.

See Also