darsia.make_voxel#
- make_voxel(pts, matrix_indexing=True)[source]#
Quick-access constructor for Voxel or VoxelArray.
- Parameters:
- pts
Union[list,np.ndarray] List of points or array of points.
- matrix_indexingbool,
optional Whether to use matrix indexing (first index corresponds to row, second to column, third to depth). Defaults to True.
- pts
- Returns:
Union[Voxel,VoxelArray]Voxel or VoxelArray variant of point (type depends on input), i.e. if a single point is provided, a Voxel is returned, if a list of points is provided, a VoxelArray is returned.