Skip to content

Commit

Permalink
Removed voxel caching workaround code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Vin committed Jan 13, 2024
1 parent ac0fea9 commit a32ebb4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/scenic/core/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2049,9 +2049,7 @@ def __init__(self, voxelGrid, orientation=None, name=None, lazy=False):
raise ValueError("Tried to create an empty VoxelRegion.")

# Store voxel grid and extract points and scale
self.voxelGrid = trimesh.voxel.VoxelGrid(
voxelGrid.encoding, transform=voxelGrid.transform.copy()
)
self.voxelGrid = voxelGrid
self.voxel_points = self.voxelGrid.points
self.scale = self.voxelGrid.scale

Expand Down

0 comments on commit a32ebb4

Please sign in to comment.