Mesh: add unit tests

This commit is contained in:
wmayer
2023-08-27 17:59:40 +02:00
committed by wwmayer
parent cdd5248721
commit 0ae4ef2d2f
8 changed files with 139 additions and 2 deletions

View File

@@ -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));

View File

@@ -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);