37#ifndef _msh3DirPDTreeNode_h
38#define _msh3DirPDTreeNode_h
105 vct3 &closestPoint,
vct3 &closestPointNorm,
107 unsigned int &numNodesVisited,
108 unsigned int &numNodesSearched);
123 assert(i >= 0 && i <
NData);
129 assert(i >= 0 && i <
NData);
147 for (
int i = 0; i <
NData; i++)
Definition msh3DirPDTreeBase.h:55
vctFrm3 ComputeCovFrame(int i0, int i1)
vct3 Navg
Definition msh3DirPDTreeNode.h:74
bool NodeContainsDatum(int datum)
Definition msh3DirPDTreeNode.h:145
int NumData() const
Definition msh3DirPDTreeNode.h:110
int FindTerminalNode(int datum, msh3DirPDTreeNode **termNode)
int NData
Definition msh3DirPDTreeNode.h:68
int myDepth
Definition msh3DirPDTreeNode.h:69
msh3DirPDTreeNode * pMore
Definition msh3DirPDTreeNode.h:65
int FindClosestDatum(const vct3 &v, const vct3 &n, vct3 &closestPoint, vct3 &closestPointNorm, double &ErrorBound, unsigned int &numNodesVisited, unsigned int &numNodesSearched)
msh3DirPDTreeBase * pMyTree
Definition msh3DirPDTreeNode.h:63
msh3DirPDTreeNode * GetChildSplitNode(const vct3 &datumPos)
int * pDataIndices
Definition msh3DirPDTreeNode.h:67
msh3DirPDTreeNode * pParent
Definition msh3DirPDTreeNode.h:64
vct3 ComputeOrientationParams()
void PrintTerminalNodes(std::ofstream &fs)
int & Datum(int i)
Definition msh3DirPDTreeNode.h:127
void AccumulateVariances(int datum, const vct3 &mean, vctDouble3x3 &C) const
void AccumulateCentroid(int datum, vct3 &sum) const
msh3DirPDTreeNode(double)
Definition msh3DirPDTreeNode.h:86
msh3DirPDTreeNode(int *pDataIndexArray, int numIndexes, msh3DirPDTreeBase *pTree, msh3DirPDTreeNode *pParent)
int ConstructSubtree(int CountThresh, double DiagThresh)
msh3BoundingBox Bounds
Definition msh3DirPDTreeNode.h:72
int IsTerminalNode() const
Definition msh3DirPDTreeNode.h:111
vctFrm3 F
Definition msh3DirPDTreeNode.h:71
int Datum(int i) const
Definition msh3DirPDTreeNode.h:121
msh3DirPDTreeNode * pLEq
Definition msh3DirPDTreeNode.h:65
double dThetaMax
Definition msh3DirPDTreeNode.h:75
#define CISST_EXPORT
Definition cmnExportMacros.h:50
vctBoundingBox3 msh3BoundingBox
Definition msh3BoundingBox.h:42
Macros to export the symbols of cisstMesh (in a Dll).
Forward declarations and #define for cisstMesh.
vctFixedSizeMatrix< double, 3, 3 > vctDouble3x3
Definition vctFixedSizeMatrixTypes.h:58
Typedef for fixed size vectors.
vctFixedSizeVector< double, 3 > vct3
Definition vctFixedSizeVectorTypes.h:46