Hi,
I continue my tests on the C4D API with the VoxelizationInterface, and I'm already stucked at the first method :(
MAXON_METHOD Result<Bool> Init (PolygonObject* polyObject, Int32 voxelResolution, Int32 minResolution, BaseArray< Range< Vector >> & polyRanges,
const Vector * pointOverride = nullptr, Boolprecise = false )
// Initializes the voxelization with a polygon object.
Parameters
[in] polyObject Pointer to the polygon object to be added to the voxelization.
[in] voxelResolution The voxel resolution of the largest dimension.
[in] minResolution The minimal resolution of either dimension.
[out] polyRanges Calculated bounding boxes for every polygon.
[in] pointOverride Override option for the polygon points. If not nullptr, these points will be used for the polygon vertices.
[in] precise If true, only the voxels touching a polygon will hold the specific polygon index. If false, all voxels touching the polygon AABB will hold the polygon index.
Returns
True if the voxelization was properly initialized, false otherwise.
Even after reading the description, I can't figure out what are exactly voxelResolution and minResolution, and how to interpret the maxon::range values (i.e min and max values) in an AABB context ?
Can somebody help me to understand this please ?
Thank you !!