12 #ifndef __GU_TetConnectivity_h__
13 #define __GU_TetConnectivity_h__
39 for(
int excluded_vertex = 0; excluded_vertex != 4; ++excluded_vertex)
49 myPrimitiveIndex = primitive_index;
56 const int excluded_vertex,
60 UT_ASSERT( (0 <= excluded_vertex) && (excluded_vertex < 4) );
62 UT_ASSERT( neighbor != myPrimitiveIndex );
64 myNeighborForExcludedVertex[excluded_vertex] = neighbor;
69 UT_ASSERT( (0 <= excluded_vertex) && (excluded_vertex < 4) );
75 return myPrimitiveIndex;
83 UT_ASSERT( (0 <= excluded_vertex) && (excluded_vertex < 4) );
85 return myNeighborForExcludedVertex[excluded_vertex];
92 for(
int excluded_vertex = 0; excluded_vertex != 4; ++excluded_vertex)
111 GA_Index myNeighborForExcludedVertex[4];
139 const int excluded_vertex
146 myPrimitiveIndex = primitive_index;
147 myExcludedVertex = excluded_vertex;
152 GU_TetrahedronFacet();
165 for(
int id = 0;
id != 3; ++
id )
190 for(
int id = 0;
id != 3; ++
id )
206 return myAdjacentTetrahedra[prim_index];
211 return myNumConnsWithMoreThanTwoTets;
216 return myAdjacentTetrahedra;
221 int myNumConnsWithMoreThanTwoTets;
240 bool keepprimitives=
false,
241 bool keeppoints=
false,
243 bool buildpolysoup=
false
bool isBoundaryTet() const
bool GUhaveSameFacet(const GU_TetrahedronFacet &a, const GU_TetrahedronFacet &b)
GLboolean GLboolean GLboolean GLboolean a
SYS_DECLARE_IS_POD(GU_TetrahedronFacet)
SYS_FORCE_INLINE bool GAisValid(GA_Size v)
const GU_AdjacentTetrahedra & getAdjacentTetrahedraForPrimitive(GA_Index prim_index) const
GU_TetrahedronFacet(const GA_Index pids[3], const GA_Index primitive_index, const int excluded_vertex)
bool operator<(const GU_TetrahedronFacet &a, const GU_TetrahedronFacet &b)
void setPrimitiveIndex(const GA_Index primitive_index)
void removeNeighbor(const int excluded_vertex)
GLboolean GLboolean GLboolean b
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
GU_API bool GUgetTetSurface(GU_Detail &gdp, const GU_Detail &src_gdp, bool keepprimitives=false, bool keeppoints=false, bool buildpolysoup=false)
int myNumTetConnectionsWithMoreThanTwoTets() const
GA_Index myPrimitiveIndex
GA_Index neighbor(const int excluded_vertex) const
void setNeighbor(const int excluded_vertex, const GA_Index neighbor)
GA_Index getPrimitiveIndex() const
const UT_Array< GU_AdjacentTetrahedra > & raw() const