14#ifndef PHYSXMESHHASH_H
15#define PHYSXMESHHASH_H
33 void set_grid_spacing(
float spacing);
34 INLINE NxF32 get_grid_spacing()
const;
36 void add(
const NxBounds3 &bounds,
int itemIndex);
37 void add(
const NxVec3 &pos,
int itemIndex);
39 void query(
const NxBounds3 &bounds,
pvector<int> &itemIndices,
int maxIndices=-1);
40 void query_unique(
const NxBounds3 &bounds,
pvector<int> &itemIndices,
int maxIndices=-1);
42 void query(
const NxVec3 &pos,
pvector<int> &itemIndices,
int maxIndices=-1);
43 void query_unique(
const NxVec3 &pos,
pvector<int> &itemIndices,
int maxIndices=-1);
51 struct MeshHashEntry {
60 static const int _hashIndexSize = 17011;
61 MeshHashRoot _hashIndex[_hashIndexSize];
65 INLINE
int hash_function(
int xi,
int yi,
int zi)
const;
66 INLINE
void cell_coord_of(
const NxVec3 &v,
int &xi,
int &yi,
int &zi)
const;
69 void quick_sort(
pvector<int> &itemIndices,
int l,
int r);
Utility class used in building links between a tetrahedron mesh (soft body) and a triangle mesh used ...
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.