Skip to content

Commit 8b2d807

Browse files
authored
Merge pull request #163 from Geode-solutions/fix/improve_ray_tracing_aabb
fix(ray_tracing): Update code using ray tracing
2 parents 3eebf0f + c33d245 commit 8b2d807

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/geode/inspector/topology/brep_blocks_topology.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ namespace
260260
absl::Span< const geode::uuid > not_boundary_surfaces )
261261
{
262262
std::vector< geode::uuid > dangling_surfaces;
263+
geode::BRepRayTracing ray_tracing{ brep };
263264
for( const auto& surface_id : not_boundary_surfaces )
264265
{
265266
const auto& surface_mesh = brep.surface( surface_id ).mesh();
@@ -272,8 +273,8 @@ namespace
272273
bool is_dangling{ true };
273274
for( const auto& block : brep.blocks() )
274275
{
275-
if( geode::is_point_inside_block(
276-
brep, block, polygon_barycenter ) )
276+
if( ray_tracing.is_point_inside_block(
277+
polygon_barycenter, block ) )
277278
{
278279
is_dangling = false;
279280
break;

0 commit comments

Comments
 (0)