Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PhysxMeshHash Class Reference

Utility class used in building links between a tetrahedron mesh (soft body) and a triangle mesh used for rendering the soft body. More...

#include "physxMeshHash.h"

Public Member Functions

void add (const NxBounds3 &bounds, int itemIndex)
 
void add (const NxVec3 &pos, int itemIndex)
 
NxF32 get_grid_spacing () const
 
void query (const NxBounds3 &bounds, pvector< int > &itemIndices, int maxIndices=-1)
 
void query (const NxVec3 &pos, pvector< int > &itemIndices, int maxIndices=-1)
 
void query_unique (const NxBounds3 &bounds, pvector< int > &itemIndices, int maxIndices=-1)
 
void query_unique (const NxVec3 &pos, pvector< int > &itemIndices, int maxIndices=-1)
 
void reset ()
 
void set_grid_spacing (float spacing)
 

Detailed Description

Utility class used in building links between a tetrahedron mesh (soft body) and a triangle mesh used for rendering the soft body.

Definition at line 25 of file physxMeshHash.h.

Constructor & Destructor Documentation

◆ PhysxMeshHash()

PhysxMeshHash::PhysxMeshHash ( )
inline

Definition at line 17 of file physxMeshHash.I.

◆ ~PhysxMeshHash()

PhysxMeshHash::~PhysxMeshHash ( )
inline

Definition at line 37 of file physxMeshHash.I.

Member Function Documentation

◆ add() [1/2]

void PhysxMeshHash::add ( const NxBounds3 & bounds,
int itemIndex )

Definition at line 99 of file physxMeshHash.cxx.

◆ add() [2/2]

void PhysxMeshHash::add ( const NxVec3 & pos,
int itemIndex )

Definition at line 137 of file physxMeshHash.cxx.

◆ get_grid_spacing()

NxF32 PhysxMeshHash::get_grid_spacing ( ) const
inline

Definition at line 66 of file physxMeshHash.I.

◆ query() [1/2]

void PhysxMeshHash::query ( const NxBounds3 & bounds,
pvector< int > & itemIndices,
int maxIndices = -1 )

Definition at line 165 of file physxMeshHash.cxx.

◆ query() [2/2]

void PhysxMeshHash::query ( const NxVec3 & pos,
pvector< int > & itemIndices,
int maxIndices = -1 )

Definition at line 211 of file physxMeshHash.cxx.

◆ query_unique() [1/2]

void PhysxMeshHash::query_unique ( const NxBounds3 & bounds,
pvector< int > & itemIndices,
int maxIndices = -1 )

Definition at line 201 of file physxMeshHash.cxx.

◆ query_unique() [2/2]

void PhysxMeshHash::query_unique ( const NxVec3 & pos,
pvector< int > & itemIndices,
int maxIndices = -1 )

Definition at line 236 of file physxMeshHash.cxx.

◆ reset()

void PhysxMeshHash::reset ( )

Definition at line 89 of file physxMeshHash.cxx.

◆ set_grid_spacing()

void PhysxMeshHash::set_grid_spacing ( float spacing)

Definition at line 77 of file physxMeshHash.cxx.


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