Skip to content

Commit e692519

Browse files
adjust api
1 parent 0f88070 commit e692519

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

bindings/python/src/model/helpers/ray_tracing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace geode
3535
module
3636
.def( "find_intersections_with_boundaries",
3737
&find_intersections_with_boundaries )
38-
.def( "test_point_inside_block", &test_point_inside_block )
38+
.def( "is_point_inside_block", &is_point_inside_block )
3939
.def( "block_containing_point", &block_containing_point );
4040
}
4141
} // namespace geode

include/geode/model/helpers/ray_tracing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace geode
4747
const BRep& brep,
4848
const Block3D& block );
4949

50-
bool opengeode_model_api test_point_inside_block(
50+
bool opengeode_model_api is_point_inside_block(
5151
const BRep& brep, const Block3D& block, const Point3D& point );
5252

5353
absl::optional< uuid > opengeode_model_api block_containing_point(

src/geode/model/helpers/ray_tracing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ namespace geode
100100
return result;
101101
}
102102

103-
bool test_point_inside_block(
103+
bool is_point_inside_block(
104104
const BRep& brep, const Block3D& block, const Point3D& point )
105105
{
106106
std::array< Vector3D, 12 > directions = { { { { 0., 0., 1. } },
@@ -131,7 +131,7 @@ namespace geode
131131
{
132132
for( const auto& block : brep.blocks() )
133133
{
134-
if( test_point_inside_block( brep, block, point ) )
134+
if( is_point_inside_block( brep, block, point ) )
135135
{
136136
return block.id();
137137
}

tests/model/test-ray-tracing-helpers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ void test()
4949
// test point iside the block
5050
geode::Point3D inside( { 0.00001, 0.00001, 0.00001 } );
5151
geode::Point3D outside( { -0.00001, 0.00001, 0.00001 } );
52-
OPENGEODE_EXCEPTION( geode::test_point_inside_block(
52+
OPENGEODE_EXCEPTION( geode::is_point_inside_block(
5353
brep, brep.block( block_id.value() ), inside ),
5454
"[Test] the point named inside should be inside the block." );
5555

56-
OPENGEODE_EXCEPTION( !geode::test_point_inside_block(
56+
OPENGEODE_EXCEPTION( !geode::is_point_inside_block(
5757
brep, brep.block( block_id.value() ), outside ),
5858
"[Test] the point named outside should be outside the block." );
5959
}

0 commit comments

Comments
 (0)