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

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