GetVoxelContentInBoundingBox Fast
Summary
public MyTuple<float, float> GetVoxelContentInBoundingBox_Fast(BoundingBoxD localAabb, MatrixD worldMatrix, bool stopIfFindAtLeastOneContent, float threshold)
Calculates amount of volume of a bounding box in voxels.
Returns
Pair of floats where 1st value is Volume amount and 2nd value is ratio of Volume amount to Whole volume.
Parameters
- BoundingBoxD localAabb
- MatrixD worldMatrix
- bool stopIfFindAtLeastOneContent
- float threshold