HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GU_AutoSeam Class Reference

#include <GU_AutoSeam.h>

Classes

struct  Region
 

Public Types

typedef UT_Array< Region * > RegionArray
 

Public Member Functions

 GU_AutoSeam (GU_Detail *gdp, int eigen, fpreal planarity, bool area_weight, GA_EdgeGroup *seams)
 
 ~GU_AutoSeam ()
 
GA_EdgeGroupspectralSegment ()
 
void addRegionToOrderedRegions (Region *region)
 
void popRegion ()
 
void indexDualVertices (UT_Array< exint > &dual_vert_index, GA_OffsetArray &prims)
 
void tripletsOfLaplacian (UT_Array< UT_SparseMatrixCSRD::Triplet > &lap_entries, UT_Array< exint > &dual_vert_index, GA_OffsetArray &prims)
 
void graphCut (GA_OffsetArray &prims)
 
bool checkConnected (GA_OffsetArray &prims)
 
void checkConnectedHelp (GA_Offset prim, UT_BitArray &mark, UT_BitArray &seen, UT_Array< exint > &index)
 
void addCuts (UT_VectorD &v, UT_Array< exint > &dual_vert_index, GA_OffsetArray &prims)
 
fpreal cutLength (UT_VectorD &v, GA_OffsetArray &seams, UT_Array< exint > &dual_vert_index, GA_OffsetArray &prims)
 
void partitionPrims (UT_VectorD &v, UT_Array< exint > &dual_vert_index, GA_OffsetArray &prims, GA_OffsetArray &region1, GA_OffsetArray &region2, int &reg1_ind, int &reg2_ind, bool assign_region=true)
 
void partitionPrims (UT_VectorD &v, UT_Array< exint > &dual_vert_index, GA_OffsetArray &prims, GA_OffsetArray &region1, GA_OffsetArray &region2, bool assign_region=true)
 
void displayRegions (UT_VectorD &v, UT_Array< exint > &dual_vert_index, GA_OffsetArray &prims)
 
void displayRegions (UT_Array< exint > &dual_vert_index)
 
void displayRegions ()
 
bool isBoundary (GEO_Hedge h)
 
GEO_DetachedHedgeInterfacegetInputHedgeInterface ()
 

Public Attributes

GEO_DetachedHedgeInterfacemyHI
 
UT_Array< intmyRegionNumbers
 
UT_BitArray myIsCutSrc
 
GU_DetailmyGdp
 
RegionArray myOrderedRegions
 
int myNumRegions
 
int myEigenNumber
 
fpreal myPlanarity
 
bool myAreaWeighted
 
int myLengthPow
 
bool myOnlyFiedler
 
bool myRecurse
 
int myNumRecurse
 
bool myNormLap
 
bool myDontPD
 
bool myUseMedian
 
int myNumRound
 
GA_EdgeGroupmySeams
 
GA_VertexGroupmySeamHedgeSrcs = nullptr
 
UT_ExintArray myVirtualPtNum
 

Detailed Description

Definition at line 27 of file GU_AutoSeam.h.

Member Typedef Documentation

Definition at line 67 of file GU_AutoSeam.h.

Constructor & Destructor Documentation

GU_AutoSeam::GU_AutoSeam ( GU_Detail gdp,
int  eigen,
fpreal  planarity,
bool  area_weight,
GA_EdgeGroup seams 
)
GU_AutoSeam::~GU_AutoSeam ( )
inline

Definition at line 33 of file GU_AutoSeam.h.

Member Function Documentation

void GU_AutoSeam::addCuts ( UT_VectorD v,
UT_Array< exint > &  dual_vert_index,
GA_OffsetArray prims 
)
void GU_AutoSeam::addRegionToOrderedRegions ( Region region)
inline

Definition at line 69 of file GU_AutoSeam.h.

bool GU_AutoSeam::checkConnected ( GA_OffsetArray prims)
void GU_AutoSeam::checkConnectedHelp ( GA_Offset  prim,
UT_BitArray mark,
UT_BitArray seen,
UT_Array< exint > &  index 
)
fpreal GU_AutoSeam::cutLength ( UT_VectorD v,
GA_OffsetArray seams,
UT_Array< exint > &  dual_vert_index,
GA_OffsetArray prims 
)
void GU_AutoSeam::displayRegions ( UT_VectorD v,
UT_Array< exint > &  dual_vert_index,
GA_OffsetArray prims 
)
void GU_AutoSeam::displayRegions ( UT_Array< exint > &  dual_vert_index)
void GU_AutoSeam::displayRegions ( )
GEO_DetachedHedgeInterface* GU_AutoSeam::getInputHedgeInterface ( )
void GU_AutoSeam::graphCut ( GA_OffsetArray prims)
void GU_AutoSeam::indexDualVertices ( UT_Array< exint > &  dual_vert_index,
GA_OffsetArray prims 
)
bool GU_AutoSeam::isBoundary ( GEO_Hedge  h)
void GU_AutoSeam::partitionPrims ( UT_VectorD v,
UT_Array< exint > &  dual_vert_index,
GA_OffsetArray prims,
GA_OffsetArray region1,
GA_OffsetArray region2,
int reg1_ind,
int reg2_ind,
bool  assign_region = true 
)
void GU_AutoSeam::partitionPrims ( UT_VectorD v,
UT_Array< exint > &  dual_vert_index,
GA_OffsetArray prims,
GA_OffsetArray region1,
GA_OffsetArray region2,
bool  assign_region = true 
)
void GU_AutoSeam::popRegion ( )
inline

Definition at line 80 of file GU_AutoSeam.h.

GA_EdgeGroup* GU_AutoSeam::spectralSegment ( )
void GU_AutoSeam::tripletsOfLaplacian ( UT_Array< UT_SparseMatrixCSRD::Triplet > &  lap_entries,
UT_Array< exint > &  dual_vert_index,
GA_OffsetArray prims 
)

Member Data Documentation

bool GU_AutoSeam::myAreaWeighted

Definition at line 131 of file GU_AutoSeam.h.

bool GU_AutoSeam::myDontPD

Definition at line 137 of file GU_AutoSeam.h.

int GU_AutoSeam::myEigenNumber

Definition at line 129 of file GU_AutoSeam.h.

GU_Detail* GU_AutoSeam::myGdp

Definition at line 126 of file GU_AutoSeam.h.

GEO_DetachedHedgeInterface* GU_AutoSeam::myHI

Definition at line 123 of file GU_AutoSeam.h.

UT_BitArray GU_AutoSeam::myIsCutSrc

Definition at line 125 of file GU_AutoSeam.h.

int GU_AutoSeam::myLengthPow

Definition at line 132 of file GU_AutoSeam.h.

bool GU_AutoSeam::myNormLap

Definition at line 136 of file GU_AutoSeam.h.

int GU_AutoSeam::myNumRecurse

Definition at line 135 of file GU_AutoSeam.h.

int GU_AutoSeam::myNumRegions

Definition at line 128 of file GU_AutoSeam.h.

int GU_AutoSeam::myNumRound

Definition at line 139 of file GU_AutoSeam.h.

bool GU_AutoSeam::myOnlyFiedler

Definition at line 133 of file GU_AutoSeam.h.

RegionArray GU_AutoSeam::myOrderedRegions

Definition at line 127 of file GU_AutoSeam.h.

fpreal GU_AutoSeam::myPlanarity

Definition at line 130 of file GU_AutoSeam.h.

bool GU_AutoSeam::myRecurse

Definition at line 134 of file GU_AutoSeam.h.

UT_Array<int> GU_AutoSeam::myRegionNumbers

Definition at line 124 of file GU_AutoSeam.h.

GA_VertexGroup* GU_AutoSeam::mySeamHedgeSrcs = nullptr

Definition at line 142 of file GU_AutoSeam.h.

GA_EdgeGroup* GU_AutoSeam::mySeams

Definition at line 140 of file GU_AutoSeam.h.

bool GU_AutoSeam::myUseMedian

Definition at line 138 of file GU_AutoSeam.h.

UT_ExintArray GU_AutoSeam::myVirtualPtNum

Definition at line 150 of file GU_AutoSeam.h.


The documentation for this class was generated from the following file: