Skip to content

Commit

Permalink
Fix incomplete VoxelGrid creation from triangles intersecting multipl…
Browse files Browse the repository at this point in the history
…e voxels.

Since the triangle can span across multiple voxels, we should not break when we find the first relevant voxel.
  • Loading branch information
Sharon Berezalsky committed Aug 28, 2023
1 parent 59792c2 commit 70bcc97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cpp/open3d/geometry/VoxelGridFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ std::shared_ptr<VoxelGrid> VoxelGrid::CreateFromTriangleMeshWithinBounds(
box_center, box_half_size, v0, v1, v2)) {
Eigen::Vector3i grid_index(widx, hidx, didx);
output->AddVoxel(geometry::Voxel(grid_index));
break;
}
}
}
Expand Down

0 comments on commit 70bcc97

Please sign in to comment.