Ejemplo n.º 1
0
 def remove_voxels(self, points : Optional[List[float]],
                   options: int = 0) -> None:
     """Remove voxels from the octree.
     
     :param points: A list of x,y,z numbers, or None to clear the octree.
     :param options: Voxel removal options.
     """
     if points is not None:
         if not isinstance(points, list):
             raise ValueError(
                 'Octree.insert_voxels: points parameter is not a list.')
         if len(points) % 3 is not 0:
             raise ValueError(
                 'Octree.insert_voxels: points parameter length '
                 'not a multiple of 3.')
     sim.simRemoveVoxelsFromOctree(self._handle, options, points)
Ejemplo n.º 2
0
 def clear_voxels(self) -> None:
     """Clears all voxels from the octree.
     """
     sim.simRemoveVoxelsFromOctree(self._handle, 0, None)