MeshLib C++ Docs
Loading...
Searching...
No Matches
MRFixUndercuts.h File Reference
#include "MRVoxelsFwd.h"
#include "MRMesh/MRVector3.h"
#include "MRMesh/MRVector2.h"
#include "MRMesh/MRConstants.h"
#include "MRMesh/MRExpected.h"
#include <functional>

Go to the source code of this file.

Classes

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

Namespaces

namespace  MR
 only for bindings generation
namespace  MR::FixUndercuts

Typedefs

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

Functions

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