HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_UVFlatten Namespace Reference

Classes

struct  PtrRange
 
class  PolySurfaceTriMesh
 
class  Island
 
class  IslandBundle
 
class  ElementConstraintList
 
struct  GroupConstraintList
 
class  ConstraintSet
 
class  ConstraintBundle
 

Typedefs

using ROHandleV2R = GA_ROHandleT< UT_Vector2R >
 
using RWHandleV2R = GA_RWHandleT< UT_Vector2R >
 
using ROHandleV3R = GA_ROHandleT< UT_Vector3R >
 
using RWHandleV3R = GA_RWHandleT< UT_Vector3R >
 
using TriMesh = UT_TriangleMesh
 
using AngleConstraint = ConstraintSet::AngleInfo
 
using AngleConstraintArray = UT_Array< AngleConstraint >
 

Enumerations

enum  Status {
  SUCCESS = 0, INTERRUPTED, BAD_PARMS, BAD_BOUNDARY,
  NUMERICAL_ERROR
}
 
enum  Method { SCP, LSCM, LINEAR_ABF, PROJECT }
 
enum  Tessellation { TRIANGULATE_ALL = 0, SPLIT_CONVEX_QUADS }
 

Functions

GU_API Status flattenProjection (const TriMesh &mesh, const GetFunctor< UT_Vector3R > &get_pt_pos, const SetFunctor< UT_Vector2R > &set_pt_uv)
 
GU_API Status flattenLSCM (const TriMesh &mesh, const ConstraintSet &constraints, const GetFunctor< UT_Vector3R > &get_pt_pos, int outer_boundary_comp, const SetFunctor< UT_Vector2R > &set_pt_uv)
 
GU_API Status flattenLSCM (const TriMesh &mesh, const ConstraintSet &constraints, const GetFunctor< fpreal > &hedge_apx_cotan, const GetFunctor< fpreal > &hedge_tri_area, int pin0_pt, int pin1_pt, const SetFunctor< UT_Vector2R > &set_pt_uv)
 
GU_API Status flattenSCP (const TriMesh &mesh, const ConstraintSet &constraints, const GetFunctor< UT_Vector3R > &get_pt_pos, int outer_boundary_comp, const SetFunctor< UT_Vector2R > &set_pt_uv)
 
GU_API Status flattenSCP (const TriMesh &mesh, const ConstraintSet &constraints, const GetFunctor< fpreal > &hedge_apx_cotan, const GetFunctor< fpreal > &hedge_tri_area, int outer_boundary_comp, const SetFunctor< UT_Vector2R > &set_pt_uv)
 
GU_API Status flattenLinearABF (const TriMesh &mesh, const ConstraintSet &constraints, const GetFunctor< UT_Vector3R > &get_pt_pos, int outer_boundary_comp, const SetFunctor< fpreal > &set_vtx_angle)
 
GU_API void generateStraighLoopConstraints (const TriMesh &mesh, const ConstraintSet &constraints, AngleConstraintArray &angle_constraints)
 
GU_API void calcConformalEnergyData (const TriMesh &mesh, const GetFunctor< UT_Vector3R > &get_pt_pos, UT_FprealArray &hedge_apx_cotan, UT_FprealArray &hedge_tri_area)
 
GU_API int longestBoundaryComponent (const TriMesh &mesh, const GetFunctor< UT_Vector3R > &get_pt_pos)
 
GU_API void pickLSCMDefaultPins (const TriMesh &mesh, const GetFunctor< UT_Vector3R > &get_pt_pos, int outer_boundary_comp, int &pin0_pt, int &pin1_pt)
 

Typedef Documentation

Definition at line 891 of file GU_UVFlatten.h.

Definition at line 892 of file GU_UVFlatten.h.

Definition at line 34 of file GU_UVFlatten.h.

Definition at line 36 of file GU_UVFlatten.h.

Definition at line 35 of file GU_UVFlatten.h.

Definition at line 37 of file GU_UVFlatten.h.

Definition at line 47 of file GU_UVFlatten.h.

Enumeration Type Documentation

Enumerator
SCP 
LSCM 
LINEAR_ABF 
PROJECT 

Definition at line 59 of file GU_UVFlatten.h.

Enumerator
SUCCESS 
INTERRUPTED 
BAD_PARMS 
BAD_BOUNDARY 
NUMERICAL_ERROR 

Definition at line 49 of file GU_UVFlatten.h.

Enumerator
TRIANGULATE_ALL 
SPLIT_CONVEX_QUADS 

Definition at line 68 of file GU_UVFlatten.h.

Function Documentation

GU_API void GU_UVFlatten::calcConformalEnergyData ( const TriMesh &  mesh,
const GetFunctor< UT_Vector3R > &  get_pt_pos,
UT_FprealArray hedge_apx_cotan,
UT_FprealArray hedge_tri_area 
)
GU_API Status GU_UVFlatten::flattenLinearABF ( const TriMesh &  mesh,
const ConstraintSet &  constraints,
const GetFunctor< UT_Vector3R > &  get_pt_pos,
int  outer_boundary_comp,
const SetFunctor< fpreal > &  set_vtx_angle 
)
GU_API Status GU_UVFlatten::flattenLSCM ( const TriMesh &  mesh,
const ConstraintSet &  constraints,
const GetFunctor< UT_Vector3R > &  get_pt_pos,
int  outer_boundary_comp,
const SetFunctor< UT_Vector2R > &  set_pt_uv 
)
GU_API Status GU_UVFlatten::flattenLSCM ( const TriMesh &  mesh,
const ConstraintSet &  constraints,
const GetFunctor< fpreal > &  hedge_apx_cotan,
const GetFunctor< fpreal > &  hedge_tri_area,
int  pin0_pt,
int  pin1_pt,
const SetFunctor< UT_Vector2R > &  set_pt_uv 
)
GU_API Status GU_UVFlatten::flattenProjection ( const TriMesh &  mesh,
const GetFunctor< UT_Vector3R > &  get_pt_pos,
const SetFunctor< UT_Vector2R > &  set_pt_uv 
)
GU_API Status GU_UVFlatten::flattenSCP ( const TriMesh &  mesh,
const ConstraintSet &  constraints,
const GetFunctor< UT_Vector3R > &  get_pt_pos,
int  outer_boundary_comp,
const SetFunctor< UT_Vector2R > &  set_pt_uv 
)
GU_API Status GU_UVFlatten::flattenSCP ( const TriMesh &  mesh,
const ConstraintSet &  constraints,
const GetFunctor< fpreal > &  hedge_apx_cotan,
const GetFunctor< fpreal > &  hedge_tri_area,
int  outer_boundary_comp,
const SetFunctor< UT_Vector2R > &  set_pt_uv 
)
GU_API void GU_UVFlatten::generateStraighLoopConstraints ( const TriMesh &  mesh,
const ConstraintSet &  constraints,
AngleConstraintArray &  angle_constraints 
)
GU_API int GU_UVFlatten::longestBoundaryComponent ( const TriMesh &  mesh,
const GetFunctor< UT_Vector3R > &  get_pt_pos 
)
GU_API void GU_UVFlatten::pickLSCMDefaultPins ( const TriMesh &  mesh,
const GetFunctor< UT_Vector3R > &  get_pt_pos,
int  outer_boundary_comp,
int pin0_pt,
int pin1_pt 
)