10 #include <boost/dynamic_bitset.hpp> 32 static BSHP<GmTriSearch>
New();
37 virtual void TrisToSearch(
BSHP<std::vector<Pt3d>> a_pts,
BSHP<std::vector<int>> a_tris) = 0;
38 virtual void SetPtActivity(
DynBitset& a_activity) = 0;
40 virtual void SetTriActivity(
DynBitset& a_activity) = 0;
41 virtual DynBitset GetPtActivity()
const = 0;
42 virtual DynBitset GetTriActivity()
const = 0;
44 virtual int TriContainingPt(
const Pt3d& a_pt) = 0;
45 virtual void TriEnvelopsContainingPt(
const Pt3d& a_pt, std::vector<int>& a_tris) = 0;
46 virtual void TriEnvelopesOverlap(
const Pt3d& a_pMin,
48 std::vector<int>& a_tris) = 0;
50 virtual bool InterpWeights(
const Pt3d& a_pt,
51 std::vector<int>& a_idxs,
52 std::vector<double>& a_wts) = 0;
53 virtual bool InterpWeightsTriangleIdx(
const Pt3d& a_pt,
55 std::vector<int>& a_idxs,
56 std::vector<double>& a_wts) = 0;
57 virtual const BSHP<VecPt3d> GetPoints()
const = 0;
58 virtual const BSHP<VecInt> GetTriangles()
const = 0;
60 virtual std::string ToString()
const = 0;
static BSHP< GmTriSearch > New()
Creates an TriSearch class.
Spatial index for searching triangles.
boost::dynamic_bitset< size_t > DynBitset
#define XM_DISALLOW_COPY_AND_ASSIGN(TypeName)
GmTriSearch()
Constructor.
virtual ~GmTriSearch()
Destructor.