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 )" )]]
116 float baseAngleStep{5.0f*PI_F / 180.0f};
118 float maxBaseAngle{30.0f*PI_F / 180.0f};
120 float polarAngleStep{20.0f*PI_F / 180.0f};
123struct DistMapImproveDirectionParameters : ImproveDirectionParameters
126 Vector2i distanceMapResolution{100,100};
#define MRVOXELS_API
Definition MRVoxelsFwd.h:14
Definition MRFixUndercuts.h:124
Definition MRFixUndercuts.h:42
new unsafe ref float wallAngle
new unsafe ref MR.Vector3f upDirection
Definition MRFixUndercuts.h:55
new unsafe MR.? Const_FaceBitSet region
new unsafe ref float voxelSize
new unsafe ref bool smooth
new unsafe ref float bottomExtension
new unsafe MR.FixUndercuts.FindParams findParameters
Definition MRFixUndercuts.h:112
Definition MRMesh/MRMesh.h:23
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 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
MRVOXELS_API MR_BIND_IGNORE void findUndercuts(const Mesh &mesh, const Vector3f &upDirection, FaceBitSet &outUndercuts)
Adds to.
MRVOXELS_API MR_BIND_IGNORE Expected< void > fixUndercuts(Mesh &mesh, const Vector3f &upDirection, float voxelSize=0.0f, float bottomExtension=0.0f)
Definition MRCameraOrientationPlugin.h:8