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

Classes

struct  PtrRange
 
class  Triangulation
 
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 AngleConstraint = ConstraintSet::AngleInfo
 
using AngleConstraintArray = UT_Array< AngleConstraint >
 

Enumerations

enum  Status {
  SUCCESS = 0, INTERRUPTED, BAD_PARMS, NO_BOUNDARY,
  NUMERICAL_ERROR
}
 
enum  Method { SCP, LSCM, LINEAR_ABF, PROJECT }
 

Functions

GU_API Status flattenIsland (Method method, const Island &island, const ConstraintSet &constraints, RWHandleV3R uvh)
 
GU_API void calcAnglesAndAreas (const Island &island, UT_FprealArray &opposite_angle_cotan, UT_FprealArray &tri_area)
 
GU_API Status flattenSpectral (const Island &island, const ConstraintSet &constraints, RWHandleV3R uvh)
 
GU_API Status flattenSpectral (const Island &island, const ConstraintSet &constraints, const UT_FprealArray &opposite_angle_cotan, const UT_FprealArray &tri_area, RWHandleV3R uvh)
 
GU_API Status flattenLeastSquares (const Island &island, const ConstraintSet &constraints, RWHandleV3R uvh)
 
GU_API Status flattenLeastSquares (const Island &island, const ConstraintSet &constraints, const UT_FprealArray &opposite_angle_cotan, const UT_FprealArray &tri_area, RWHandleV3R uvh)
 
GU_API Status flattenProjection (const Island &island, const ConstraintSet &constraints, RWHandleV3R uvh)
 
GU_API Status flattenAngleBased (const Island &island, const ConstraintSet &constraints, RWHandleV3R uvh)
 
GU_API void findIslandOuterBoundary (const Island &island, UT_IntArray &outer_bd_tri_hedgefs)
 
GU_API void repositionIsland (const Island &island, const ConstraintSet &constraints, ROHandleV3R &orig_uvh, RWHandleV3R &uvh, bool use_custom_pins=false)
 
GU_API void balanceIsland (const Island &island, RWHandleV3R uvh)
 
GU_API void generateStraighLoopConstraints (const Island &island, const ConstraintSet &constraints, AngleConstraintArray &angle_constraints)
 
GU_API void generateQuadLayoutConstraints (const Island &island, bool straighten_arcs, bool straighten_grids, bool rectify_patches, ConstraintSet &constraints)
 

Typedef Documentation

Definition at line 1199 of file GU_UVFlatten.h.

Definition at line 1200 of file GU_UVFlatten.h.

Definition at line 30 of file GU_UVFlatten.h.

Definition at line 32 of file GU_UVFlatten.h.

Definition at line 31 of file GU_UVFlatten.h.

Definition at line 33 of file GU_UVFlatten.h.

Enumeration Type Documentation

Enumerator
SCP 
LSCM 
LINEAR_ABF 
PROJECT 

Definition at line 44 of file GU_UVFlatten.h.

Enumerator
SUCCESS 
INTERRUPTED 
BAD_PARMS 
NO_BOUNDARY 
NUMERICAL_ERROR 

Definition at line 35 of file GU_UVFlatten.h.

Function Documentation

GU_API void GU_UVFlatten::balanceIsland ( const Island &  island,
RWHandleV3R  uvh 
)
GU_API void GU_UVFlatten::calcAnglesAndAreas ( const Island &  island,
UT_FprealArray opposite_angle_cotan,
UT_FprealArray tri_area 
)
GU_API void GU_UVFlatten::findIslandOuterBoundary ( const Island &  island,
UT_IntArray outer_bd_tri_hedgefs 
)
GU_API Status GU_UVFlatten::flattenAngleBased ( const Island &  island,
const ConstraintSet &  constraints,
RWHandleV3R  uvh 
)
GU_API Status GU_UVFlatten::flattenIsland ( Method  method,
const Island &  island,
const ConstraintSet &  constraints,
RWHandleV3R  uvh 
)
GU_API Status GU_UVFlatten::flattenLeastSquares ( const Island &  island,
const ConstraintSet &  constraints,
RWHandleV3R  uvh 
)
GU_API Status GU_UVFlatten::flattenLeastSquares ( const Island &  island,
const ConstraintSet &  constraints,
const UT_FprealArray opposite_angle_cotan,
const UT_FprealArray tri_area,
RWHandleV3R  uvh 
)
GU_API Status GU_UVFlatten::flattenProjection ( const Island &  island,
const ConstraintSet &  constraints,
RWHandleV3R  uvh 
)
GU_API Status GU_UVFlatten::flattenSpectral ( const Island &  island,
const ConstraintSet &  constraints,
RWHandleV3R  uvh 
)
GU_API Status GU_UVFlatten::flattenSpectral ( const Island &  island,
const ConstraintSet &  constraints,
const UT_FprealArray opposite_angle_cotan,
const UT_FprealArray tri_area,
RWHandleV3R  uvh 
)
GU_API void GU_UVFlatten::generateQuadLayoutConstraints ( const Island &  island,
bool  straighten_arcs,
bool  straighten_grids,
bool  rectify_patches,
ConstraintSet &  constraints 
)
GU_API void GU_UVFlatten::generateStraighLoopConstraints ( const Island &  island,
const ConstraintSet &  constraints,
AngleConstraintArray &  angle_constraints 
)
GU_API void GU_UVFlatten::repositionIsland ( const Island &  island,
const ConstraintSet &  constraints,
ROHandleV3R &  orig_uvh,
RWHandleV3R &  uvh,
bool  use_custom_pins = false 
)