Skip to content

Commit 49f7245

Browse files
committed
fix(add_point): renaming addPoint() to add_point()
1 parent 8c2b414 commit 49f7245

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/geode/geometry/dynamic_nn_search.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace geode
5858
std::vector< index_t > radius_neighbors(
5959
const Point< dimension >& point, double threshold_distance ) const;
6060

61-
void addPoint( const Point< dimension >& point );
61+
void add_point( const Point< dimension >& point );
6262

6363
private:
6464
IMPLEMENTATION_MEMBER( impl_ );

src/geode/geometry/dynamic_nn_search.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace geode
7575
return indices;
7676
}
7777

78-
void addPoint( const Point< dimension >& point )
78+
void add_point( const Point< dimension >& point )
7979
{
8080
const auto nb_points = cloud_.kdtree_get_point_count();
8181
cloud_.points.emplace_back( point );
@@ -165,10 +165,10 @@ namespace geode
165165
}
166166

167167
template < index_t dimension >
168-
void DynamicNNSearch< dimension >::addPoint(
168+
void DynamicNNSearch< dimension >::add_point(
169169
const Point< dimension >& point )
170170
{
171-
return impl_->addPoint( point );
171+
return impl_->add_point( point );
172172
}
173173

174174
template class opengeode_geometry_api DynamicNNSearch< 2 >;

tests/geometry/test-dynamic-nnsearch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void test()
101101
// test with the add point method
102102
// with pt1(0.1,0.1)
103103
geode::Point2D pt1{ { 0.1, 0.1 } };
104-
search.addPoint( pt1 );
104+
search.add_point( pt1 );
105105
const auto result5 =
106106
search.radius_neighbors( geode::Point2D{ { 0, 0 } }, radius4 );
107107
OPENGEODE_EXCEPTION( search.nb_points() == 5,
@@ -126,7 +126,7 @@ void test()
126126

127127
// with pt2(10,10)
128128
geode::Point2D pt2{ { 10, 10 } };
129-
search.addPoint( pt2 );
129+
search.add_point( pt2 );
130130
const auto result6 =
131131
search.radius_neighbors( geode::Point2D{ { 0, 0 } }, radius4 );
132132
OPENGEODE_EXCEPTION( search.nb_points() == 6,

0 commit comments

Comments
 (0)