Rhino C++ API  7.24
Public Types | Public Member Functions | List of all members
RhinoMeshUnwrapper Class Reference

#include <rhinoSdkMeshUtilities.h>

Public Types

enum  UnwrapMethod : int { UnwrapMethod::LSCM = 0 }
 Unwrapping method used More...
 

Public Member Functions

 RhinoMeshUnwrapper (const ON_SimpleArray< ON_Mesh * > &meshes)
 Creates an unwrapper object for an array of meshes More...
 
 RhinoMeshUnwrapper (ON_Mesh &mesh)
 Creates an unwrapper object for a single mesh. More...
 
virtual ~RhinoMeshUnwrapper ()
 
virtual void * EVF (const wchar_t *, void *)
 Emergency virtual function More...
 
void SetSymmetryTip (const ON_Plane &symmetryTip)
 Sets symmetry tip plane. Unwrapper tries to keep unwrap result symmetric to that plane. More...
 
bool Unwrap (UnwrapMethod method)
 Unwraps the meshes and stores the results to the m_T arrays. More...
 

Detailed Description

Class for unwrapping meshes Unwraps and packs the meshes and stores the result to m_T array.

Member Enumeration Documentation

◆ UnwrapMethod

Unwrapping method used

Enumerator
LSCM 

Least squares conformal map, Rhino 7 standard method

Constructor & Destructor Documentation

◆ RhinoMeshUnwrapper() [1/2]

RhinoMeshUnwrapper::RhinoMeshUnwrapper ( ON_Mesh mesh)

Creates an unwrapper object for a single mesh.

Parameters
meshMesh to unwrap

◆ RhinoMeshUnwrapper() [2/2]

RhinoMeshUnwrapper::RhinoMeshUnwrapper ( const ON_SimpleArray< ON_Mesh * > &  meshes)

Creates an unwrapper object for an array of meshes

Parameters
meshesMeshes to be uwrapped

◆ ~RhinoMeshUnwrapper()

virtual RhinoMeshUnwrapper::~RhinoMeshUnwrapper ( )
virtual

Member Function Documentation

◆ EVF()

virtual void* RhinoMeshUnwrapper::EVF ( const wchar_t *  ,
void *   
)
inlinevirtual

Emergency virtual function

Returns

◆ SetSymmetryTip()

void RhinoMeshUnwrapper::SetSymmetryTip ( const ON_Plane symmetryTip)

Sets symmetry tip plane. Unwrapper tries to keep unwrap result symmetric to that plane.

Parameters
symmetryTipSymmetry tip plane

◆ Unwrap()

bool RhinoMeshUnwrapper::Unwrap ( UnwrapMethod  method)

Unwraps the meshes and stores the results to the m_T arrays.

Parameters
methodUnwrap method to be used
Returns
True on success