21 const auto origin = box.
min - expansion;
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8
Definition MRCameraOrientationPlugin.h:8
Vector3< int > Vector3i
Definition MRDotNet/MRMeshFwd.h:9
OriginAndDimensions calcOriginAndDimensions(const Box3f &box, float voxelSize)
computes origin and dimensions of voxel-grid to cover given 3D box with given spacing (voxelSize)
Definition MRCalcDims.h:18
V max
Definition MRMesh/MRBox.h:31
V min
Definition MRMesh/MRBox.h:31
shift of zero voxel in 3D space and dimensions of voxel-grid
Definition MRCalcDims.h:12
Vector3f origin
Definition MRCalcDims.h:13
Vector3i dimensions
Definition MRCalcDims.h:14
static constexpr Vector3 diagonal(float a) noexcept
Definition MRMesh/MRVector3.h:32