MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.fixundercuts.Functions Class Reference

Static Public Member Functions

static void fix (meshlib.Mesh mesh, meshlib.fixundercuts.FixParams params)
static meshlib.std_function_double_from_const_MR_FaceBitSet_ref_const_MR_FixUndercuts_FindParams_ref getUndercutAreaMetric (meshlib.Mesh mesh)
static meshlib.std_function_double_from_const_MR_FaceBitSet_ref_const_MR_FixUndercuts_FindParams_ref getUndercutAreaProjectionMetric (meshlib.Mesh mesh)
static double find (meshlib.Mesh mesh, meshlib.fixundercuts.FindParams params, meshlib.FaceBitSet outUndercuts, meshlib.std_function_double_from_const_MR_FaceBitSet_ref_const_MR_FixUndercuts_FindParams_ref metric)
static void find (meshlib.Mesh mesh, meshlib.fixundercuts.FindParams params, meshlib.VertBitSet outUndercuts)
static double scoreUndercuts (meshlib.Mesh mesh, meshlib.Vector3f upDirection, meshlib.Vector2i resolution)
static meshlib.Vector3f improveDirection (meshlib.Mesh mesh, meshlib.fixundercuts.ImproveDirectionParameters params, meshlib.std_function_double_from_const_MR_FaceBitSet_ref_const_MR_FixUndercuts_FindParams_ref metric)
static meshlib.Vector3f distMapImproveDirection (meshlib.Mesh mesh, meshlib.fixundercuts.DistMapImproveDirectionParameters params)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ distMapImproveDirection()

meshlib.Vector3f meshlib.fixundercuts.Functions.distMapImproveDirection ( meshlib.Mesh mesh,
meshlib.fixundercuts.DistMapImproveDirectionParameters params )
static

Score candidates with distance maps, lower resolution -> faster score

Note
does not support wallAngle yet Generated from function MR::FixUndercuts::distMapImproveDirection.

Calls MR_FixUndercuts_distMapImproveDirection().

◆ find() [1/2]

Adds undercuts to

Parameters
outUndercutsif metric is set returns metric of found undercuts, otherwise returns DBL_MAX Generated from function MR::FixUndercuts::find.

Calls MR_FixUndercuts_find_4().

◆ find() [2/2]

void meshlib.fixundercuts.Functions.find ( meshlib.Mesh mesh,
meshlib.fixundercuts.FindParams params,
meshlib.VertBitSet outUndercuts )
static

Adds undercuts to

Parameters
outUndercutsGenerated from function MR::FixUndercuts::find.

Calls MR_FixUndercuts_find_3().

◆ fix()

void meshlib.fixundercuts.Functions.fix ( meshlib.Mesh mesh,
meshlib.fixundercuts.FixParams params )
static

Fixes undercut areas by building vertical walls under it, algorithm is performed in voxel space, so the mesh is completely rebuilt after this operation Generated from function MR::FixUndercuts::fix.

Calls MR_FixUndercuts_fix(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getUndercutAreaMetric()

meshlib.std_function_double_from_const_MR_FaceBitSet_ref_const_MR_FixUndercuts_FindParams_ref meshlib.fixundercuts.Functions.getUndercutAreaMetric ( meshlib.Mesh mesh)
static

returns the metric that computes total area of undercut faces Generated from function MR::FixUndercuts::getUndercutAreaMetric.

Calls MR_FixUndercuts_getUndercutAreaMetric().

◆ getUndercutAreaProjectionMetric()

meshlib.std_function_double_from_const_MR_FaceBitSet_ref_const_MR_FixUndercuts_FindParams_ref meshlib.fixundercuts.Functions.getUndercutAreaProjectionMetric ( meshlib.Mesh mesh)
static

returns the metric that computes summed absolute projected area of undercut Generated from function MR::FixUndercuts::getUndercutAreaProjectionMetric.

Calls MR_FixUndercuts_getUndercutAreaProjectionMetric().

◆ improveDirection()

Parallel finds best of several directions defined by ImproveDirectionParameters struct

Note
does not support wallAngle yet
Top view: / __/ -----> maximum radial line Side view: | / _/ / / \/ \ \ | / _/ - maxBaseAngle |–|---—|–| | / _/ difference between two angles is baseAngleStep \ _/_/ / | / _/ __/____/ |/_/ This picture shows polarAngle = 60 deg Generated from function MR::FixUndercuts::improveDirection.

Calls MR_FixUndercuts_improveDirection().

◆ scoreUndercuts()

double meshlib.fixundercuts.Functions.scoreUndercuts ( meshlib.Mesh mesh,
meshlib.Vector3f upDirection,
meshlib.Vector2i resolution )
static

Fast score undercuts projected area via distance map with given resolution lower resolution means lower precision, but faster work

Note
does not support wallAngle yet Generated from function MR::FixUndercuts::scoreUndercuts.

Calls MR_FixUndercuts_scoreUndercuts().


The documentation for this class was generated from the following file: