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];
137 const int excluded_vertex
164 for(
int id = 0;
id != 3; ++
id )
189 for(
int id = 0;
id != 3; ++
id )
205 return adjacent_tetrahedra[prim_index];
210 return tetrahedra_connections_with_more_than_two_tetrahedra;
213 const std::vector<GU_AdjacentTetrahedra> &
raw()
const
215 return adjacent_tetrahedra;
219 std::vector< GU_AdjacentTetrahedra > adjacent_tetrahedra;
220 int tetrahedra_connections_with_more_than_two_tetrahedra;
239 bool keepprimitives=
false,
240 bool keeppoints=
false,
242 bool buildpolysoup=
false
bool isBoundaryTet() const
bool GUhaveSameFacet(const GU_TetrahedronFacet &a, const GU_TetrahedronFacet &b)
GLboolean GLboolean GLboolean GLboolean a
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)
const std::vector< GU_AdjacentTetrahedra > & raw() const
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