Mesh: add unit tests
This commit is contained in:
@@ -108,7 +108,7 @@ MeshKDTree::~MeshKDTree()
|
||||
delete d;
|
||||
}
|
||||
|
||||
void MeshKDTree::AddPoint(Base::Vector3f& point)
|
||||
void MeshKDTree::AddPoint(const Base::Vector3f& point)
|
||||
{
|
||||
PointIndex index=d->kd_tree.size();
|
||||
d->kd_tree.insert(Point3d(point, index));
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
explicit MeshKDTree(const MeshPointArray& points);
|
||||
~MeshKDTree();
|
||||
|
||||
void AddPoint(Base::Vector3f& point);
|
||||
void AddPoint(const Base::Vector3f& point);
|
||||
void AddPoints(const std::vector<Base::Vector3f>& points);
|
||||
void AddPoints(const MeshPointArray& points);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user