Skip to content

Commit

Permalink
remove _get_voxel_for_point
Browse files Browse the repository at this point in the history
  • Loading branch information
true-real-michael committed Nov 12, 2023
1 parent 5194c9c commit a080b43
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions octreelib/grid/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,3 @@ def n_nodes(self, pose_number: int) -> int:
(either themselves, or through their child nodes).
"""
return sum([octree.n_nodes(pose_number) for octree in self.__octrees.values()])

def __get_voxel_for_point(self, point: Point) -> Point:
"""
Method to get coordinates of a voxel where the given point would be stored.
:param point: Point.
:return: Corner of the voxel in the grid, where an appropriate octree for the point resides.
"""
point = point[:3]
grid_voxel_edge_length = self._grid_config.grid_voxel_edge_length
return point // grid_voxel_edge_length * grid_voxel_edge_length

0 comments on commit a080b43

Please sign in to comment.