148#if MOCHI_LANGUAGE_CPP20
GridSdfResolutionMode
The maximum voxel size for an SDF will be determined by one of these measurements scaled by GridSdfPa...
@ MeanAxis
Use the average of all three AABB dimensions as reference.
@ LargestAxis
Use the largest dimension of the mesh's axis-aligned bounding box (AABB) as reference.
@ LargestEdge
Use the largest edge length in the mesh as reference.
@ MeanEdge
Use the average edge length in the mesh as reference.
@ Explicit
Use GridSdfParams::resolutionDelta to set the maximum voxel size in meters (no scaling based on the f...
@ SmallestEdge
Use the smallest edge length in the mesh as reference.
@ SmallestAxis
Use the smallest dimension of the mesh's AABB as reference.
static constexpr real kGridSdfDefaultBoundaryPadding
Default value for GridSdfParams::boundaryPaddingDist [m].
@ Count
Number of actor type enum values.
#define MOCHI_ENUM_COUNT(name)
#define MOCHI_STRUCT_END()
#define MOCHI_ENUM_BEGIN(name)
#define MOCHI_FIELD(name)
#define MOCHI_STRUCT_BEGIN(name)
#define MOCHI_ATTRIBUTE(...)
#define MOCHI_ENUM_ITEM(name)
Parameters controlling the resolution of grid-based Signed Distance Fields (SDF).
bool operator==(GridSdfParams const &) const =default
Real3 resolutionDelta
The maximum voxel size will be resolutionDelta times the reference measurement computed using resolut...
real boundaryPaddingDist
Additional distance (in meters) to expand the mesh's axis-aligned bounding box (AABB) when determinin...
GridSdfResolutionMode resolutionMode
Defines the mesh feature used as reference measurement for computing the voxel size.
Int3 minGridResolution
The minimum grid resolution measured in number of voxels per axis.