MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::FixUndercuts Namespace Reference

Classes

struct  DistMapImproveDirectionParameters
struct  FindParams
 Parameters that is used to find undercuts. More...
struct  FixParams
 Fix undercuts function parameters. More...
struct  ImproveDirectionParameters

Typedefs

using UndercutMetric = std::function<double( const FaceBitSet&, const FindParams& params )>

Functions

MR_BIND_IGNORE Expected< void > fixUndercuts (Mesh &mesh, const Vector3f &upDirection, float voxelSize=0.0f, float bottomExtension=0.0f)
MR_BIND_IGNORE Expected< void > fixUndercuts (Mesh &mesh, const FaceBitSet &selectedArea, const Vector3f &upDirection, float voxelSize=0.0f, float bottomExtension=0.0f)
Expected< void > fix (Mesh &mesh, const FixParams &params)
UndercutMetric getUndercutAreaMetric (const Mesh &mesh)
 returns the metric that computes total area of undercut faces
UndercutMetric getUndercutAreaProjectionMetric (const Mesh &mesh)
 returns the metric that computes summed absolute projected area of undercut
MR_BIND_IGNORE void findUndercuts (const Mesh &mesh, const Vector3f &upDirection, FaceBitSet &outUndercuts)
 Adds to.
MR_BIND_IGNORE void findUndercuts (const Mesh &mesh, const Vector3f &upDirection, VertBitSet &outUndercuts)
 Adds to.
MR_BIND_IGNORE double findUndercuts (const Mesh &mesh, const Vector3f &upDirection, FaceBitSet &outUndercuts, const UndercutMetric &metric)
double find (const Mesh &mesh, const FindParams &params, FaceBitSet &outUndercuts, const UndercutMetric &metric={})
void find (const Mesh &mesh, const FindParams &params, VertBitSet &outUndercuts)
 Adds undercuts to.
double scoreUndercuts (const Mesh &mesh, const Vector3f &upDirection, const Vector2i &resolution)
Vector3f improveDirection (const Mesh &mesh, const ImproveDirectionParameters &params, const UndercutMetric &metric)
Vector3f distMapImproveDirection (const Mesh &mesh, const DistMapImproveDirectionParameters &params)