kaolin.rep.VoxelGrid¶
-
class
VoxelGrid
(voxels: Optional[torch.Tensor] = None, copy: Optional[bool] = False)[source]¶ Base class to hold (regular) voxel grids.
-
__init__
(voxels: Optional[torch.Tensor] = None, copy: Optional[bool] = False)[source]¶ Initialize a voxel grid, given a tensor of voxel features.
- Parameters
voxels (torch.Tensor, optional) – Tensor containing voxel features (shape: Any shape that has >= 3 dims).
copy (bool, optional) – Whether or not to create a deep copy of the Tensor(s) used to initialize class member(s).
Note
By default, the created VoxelGrid object stores a reference to the input voxels tensor. To create a deep copy of the voxels, set the copy argument to True.
-