24[[deprecated(
"Use fix( mesh, params )" )]]
37[[deprecated(
"Use fix( mesh, params )" )]]
89[[deprecated(
"Use find( mesh, params)" )]]
92[[deprecated(
"Use find( mesh, params )" )]]
97[[deprecated(
"Use find( mesh, params, metric )" )]]
#define MRVOXELS_API
Definition MRVoxels/MRVoxelsFwd.h:13
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:663
MRVOXELS_API double scoreUndercuts(const Mesh &mesh, const Vector3f &upDirection, const Vector2i &resolution)
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 > fixUndercuts(Mesh &mesh, const Vector3f &upDirection, float voxelSize=0.0f, float bottomExtension=0.0f)
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:80
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:25
Definition MRFixUndercuts.h:124
Vector2i distanceMapResolution
Definition MRFixUndercuts.h:126
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 parameters.
Definition MRFixUndercuts.h:55
float bottomExtension
minimum extension of bottom part of the mesh
Definition MRFixUndercuts.h:63
ProgressCallback cb
Definition MRFixUndercuts.h:71
float voxelSize
voxel size for internal computations: lower size - better precision but more system resources require...
Definition MRFixUndercuts.h:60
bool smooth
if true applies one iterations of gaussian filtering for voxels, useful if thin walls expected
Definition MRFixUndercuts.h:69
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:112
float maxBaseAngle
Definition MRFixUndercuts.h:118
Vector3f hintDirection
Definition MRFixUndercuts.h:114
float polarAngleStep
Definition MRFixUndercuts.h:120
float baseAngleStep
Definition MRFixUndercuts.h:116
Definition MRMesh/MRMesh.h:22