HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Flatten2 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 1203 of file GU_Flatten2.h.

Definition at line 1204 of file GU_Flatten2.h.

Definition at line 31 of file GU_Flatten2.h.

Definition at line 33 of file GU_Flatten2.h.

Definition at line 32 of file GU_Flatten2.h.

Definition at line 34 of file GU_Flatten2.h.

Enumeration Type Documentation

Enumerator
SCP 
LSCM 
LINEAR_ABF 
PROJECT 

Definition at line 45 of file GU_Flatten2.h.

Enumerator
SUCCESS 
INTERRUPTED 
BAD_PARMS 
NO_BOUNDARY 
NUMERICAL_ERROR 

Definition at line 36 of file GU_Flatten2.h.

Function Documentation

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