Skip to content

Commit

Permalink
Renamed coordinate type template argument failing compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhivkob authored and artem-ogre committed Oct 27, 2021
1 parent 6ceafa5 commit 1b356db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CDT/include/LocatorKDTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ class LocatorKDTree
{
public:
/// Add point to R-tree
void addPoint(const VertInd i, const std::vector<V2d<T> >& points)
void addPoint(const VertInd i, const std::vector<V2d<TCoordType> >& points)
{
m_kdTree.insert(i, points);
}
/// Find nearest point using R-tree
VertInd
nearPoint(const V2d<T>& pos, const std::vector<V2d<T> >& points) const
nearPoint(const V2d<TCoordType>& pos, const std::vector<V2d<TCoordType> >& points) const
{
return m_kdTree.nearest(pos, points).second;
}

private:
KDTree::KDTree<T, NumVerticesInLeaf, InitialStackDepth, StackDepthIncrement> m_kdTree;
KDTree::KDTree<TCoordType, NumVerticesInLeaf, InitialStackDepth, StackDepthIncrement> m_kdTree;
};

} // namespace CDT
Expand Down

0 comments on commit 1b356db

Please sign in to comment.