diff --git a/src/scenic/core/regions.py b/src/scenic/core/regions.py index d758e386f..a6d3fa02d 100644 --- a/src/scenic/core/regions.py +++ b/src/scenic/core/regions.py @@ -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