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

Class to store "face sets" on GT mesh primitives. More...

#include <GT_FaceSet.h>

+ Inheritance diagram for GT_FaceSet:

Classes

class  SetType
 

Public Member Functions

 GT_FaceSet ()
 
 GT_FaceSet (const GT_DataArrayHandle &members)
 
 ~GT_FaceSet ()
 
bool contains (GT_Offset face_index) const
 Test whether a face is in the set. More...
 
void addFace (GT_Offset face_index)
 Add a face to the set. More...
 
void removeFace (GT_Offset face_index)
 Remove a face from the set. More...
 
bool anyIntersect (const UT_Set< int > &faces) const
 
GT_FaceSetPtr deleteFaces (const UT_Set< int > &faces, const GT_Int32Array &mapping) const
 
GT_DataArrayHandle extractMembers () const
 Extract the member list as a sorted array of integers. More...
 
bool save (UT_JSONWriter &w) const
 Save sets to a JSON stream. More...
 
SetType::const_iterator begin () const
 
SetType::const_iterator end () const
 
GT_Size entries () const
 
GT_Size size () const
 
void addFaces (const int32 *indices, exint count)
 
void addFaces (const int64 *indices, exint count)
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< GT_FaceSet >
SYS_FORCE_INLINE UT_IntrusiveRefCounter ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_FaceSet >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 
- Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable
 UT_NonCopyable ()=default
 
 ~UT_NonCopyable ()=default
 
 UT_NonCopyable (const UT_NonCopyable &)=delete
 
UT_NonCopyableoperator= (const UT_NonCopyable &)=delete
 

Detailed Description

Class to store "face sets" on GT mesh primitives.

Definition at line 28 of file GT_FaceSet.h.

Constructor & Destructor Documentation

GT_FaceSet::GT_FaceSet ( )
GT_FaceSet::GT_FaceSet ( const GT_DataArrayHandle members)
GT_FaceSet::~GT_FaceSet ( )

Member Function Documentation

void GT_FaceSet::addFace ( GT_Offset  face_index)

Add a face to the set.

void GT_FaceSet::addFaces ( const int32 indices,
exint  count 
)

Add a list of faces

void GT_FaceSet::addFaces ( const int64 indices,
exint  count 
)

Add a list of faces

bool GT_FaceSet::anyIntersect ( const UT_Set< int > &  faces) const

Check whether any of the faces in this set are in the list of faces to be deleted.

SetType::const_iterator GT_FaceSet::begin ( void  ) const
inline

Definition at line 179 of file GT_FaceSet.h.

bool GT_FaceSet::contains ( GT_Offset  face_index) const
inline

Test whether a face is in the set.

Definition at line 147 of file GT_FaceSet.h.

GT_FaceSetPtr GT_FaceSet::deleteFaces ( const UT_Set< int > &  faces,
const GT_Int32Array mapping 
) const

Delete polygons from the face set. The second argument is an array mapping the old face numbers to the new face numbers. For example, deleting polygon 2 from a set of [0,1,2,3] would expect a remapping array of [0,1,x,2] (the value of 2 doesn't actually matter)

SetType::const_iterator GT_FaceSet::end ( void  ) const
inline

Definition at line 180 of file GT_FaceSet.h.

GT_Size GT_FaceSet::entries ( void  ) const
inline

Number of faces in the face set

Definition at line 142 of file GT_FaceSet.h.

GT_DataArrayHandle GT_FaceSet::extractMembers ( ) const

Extract the member list as a sorted array of integers.

void GT_FaceSet::removeFace ( GT_Offset  face_index)

Remove a face from the set.

bool GT_FaceSet::save ( UT_JSONWriter w) const

Save sets to a JSON stream.

GT_Size GT_FaceSet::size ( void  ) const
inline

Number of faces in the face set

Definition at line 143 of file GT_FaceSet.h.


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