24[[deprecated(
"Use fix( mesh, params )" )]]
37[[deprecated(
"Use fix( mesh, params )" )]]
38MRVOXELS_API void fixUndercuts(
Mesh& mesh,
const FaceBitSet& selectedArea,
const Vector3f& upDirection,
float voxelSize = 0.0f,
float bottomExtension = 0.0f );
86[[deprecated(
"Use find( mesh, params)" )]]
89[[deprecated(
"Use find( mesh, params )" )]]
94[[deprecated(
"Use find( mesh, params, metric )" )]]
#define MRVOXELS_API
Definition MRVoxels/MRVoxelsFwd.h:13
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:641
MRVOXELS_API double scoreUndercuts(const Mesh &mesh, const Vector3f &upDirection, const Vector2i &resolution)
MRVOXELS_API void fixUndercuts(Mesh &mesh, const Vector3f &upDirection, float voxelSize=0.0f, float bottomExtension=0.0f)
MRVOXELS_API Vector3f distMapImproveDirection(const Mesh &mesh, const DistMapImproveDirectionParameters ¶ms)
MRVOXELS_API void findUndercuts(const Mesh &mesh, const Vector3f &upDirection, FaceBitSet &outUndercuts)
Adds to.
MRVOXELS_API UndercutMetric getUndercutAreaMetric(const Mesh &mesh)
returns the metric that computes total area of undercut faces
MRVOXELS_API Vector3f improveDirection(const Mesh &mesh, const ImproveDirectionParameters ¶ms, const UndercutMetric &metric)
MRVOXELS_API Expected< void > fix(Mesh &mesh, const FixParams ¶ms)
MRVOXELS_API double find(const Mesh &mesh, const FindParams ¶ms, FaceBitSet &outUndercuts, const UndercutMetric &metric={})
MRVOXELS_API UndercutMetric getUndercutAreaProjectionMetric(const Mesh &mesh)
returns the metric that computes summed absolute projected area of undercut
std::function< double(const FaceBitSet &, const FindParams ¶ms)> UndercutMetric
Definition MRFixUndercuts.h:77
tl::expected< T, E > Expected
Definition MRExpected.h:59
Definition MRFixUndercuts.h:121
Vector2i distanceMapResolution
Definition MRFixUndercuts.h:123
Parameters that is used to find undercuts.
Definition MRFixUndercuts.h:42
float wallAngle
Definition MRFixUndercuts.h:50
Vector3f upDirection
Primitives that are not visible from up direction are considered as undercuts (fix undercuts is perfo...
Definition MRFixUndercuts.h:44
Fix undercuts function paramters.
Definition MRFixUndercuts.h:55
float bottomExtension
minimum extension of bottom part of the mesh
Definition MRFixUndercuts.h:63
ProgressCallback cb
Definition MRFixUndercuts.h:68
float voxelSize
voxel size for internal computations: lower size - better precision but more system resources require...
Definition MRFixUndercuts.h:60
FindParams findParameters
parameters of what is considered as undercut
Definition MRFixUndercuts.h:57
const FaceBitSet * region
if set - only this region will be fixed (but still all mesh will be rebuild)
Definition MRFixUndercuts.h:66
Definition MRFixUndercuts.h:109
float maxBaseAngle
Definition MRFixUndercuts.h:115
Vector3f hintDirection
Definition MRFixUndercuts.h:111
float polarAngleStep
Definition MRFixUndercuts.h:117
float baseAngleStep
Definition MRFixUndercuts.h:113
Definition MRMesh/MRMesh.h:22