RavEngine
Loading...
Searching...
No Matches
physx::Gu::Adjacencies Class Reference
Inheritance diagram for physx::Gu::Adjacencies:
[legend]
Collaboration diagram for physx::Gu::Adjacencies:
[legend]

Public Member Functions

bool Load (PxInputStream &stream)
 
PX_INLINE const AdjTriangle * GetAdjacentFace (const AdjTriangle &current_tri, SharedEdgeIndex edge_nb) const
 
PxU32 ComputeNbBoundaryEdges () const
 
bool GetBoundaryVertices (PxU32 nb_verts, bool *bound_status, const IndexedTriangle32 *faces) const
 
bool MakeLastRef (AdjTriangle &cur_tri, PxU32 vref, IndexedTriangle32 *cur_topo)
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Public Attributes

PxU32 mNbFaces
 Number of faces involved in the computation.
 
AdjTriangle * mFaces
 A list of AdjTriangles (one/face)
 

Member Function Documentation

◆ ComputeNbBoundaryEdges()

PxU32 Adjacencies::ComputeNbBoundaryEdges ( ) const

Computes the number of boundary edges.

Returns
the number of boundary edges.

◆ GetBoundaryVertices()

bool Adjacencies::GetBoundaryVertices ( PxU32  nb_verts,
bool *  bound_status,
const IndexedTriangle32 *  faces 
) const

Computes the boundary vertices. A boundary vertex is defined as a vertex shared by at least one boundary edge.

Parameters
nb_verts[in] the number of vertices
bound_status[out] a user-provided array of bool
Returns
true if success. The user-array is filled with true or false (boundary vertex / not boundary vertex)

◆ MakeLastRef()

bool Adjacencies::MakeLastRef ( AdjTriangle &  cur_tri,
PxU32  vref,
IndexedTriangle32 *  cur_topo 
)

Modifies the existing database so that reference 'vref' of triangle 'curtri' becomes the last one. Provided reference must already exist in provided triangle.

Parameters
cur_tri[in] the triangle
vref[in] the reference
Returns
true if success.

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