MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.FixUndercuts Class Reference

Classes

class  ConstDistMapImproveDirectionParameters
class  ConstFindParams
class  ConstFixParams
class  ConstImproveDirectionParameters
class  DistMapImproveDirectionParameters
class  FindParams
class  FixParams
class  ImproveDirectionParameters

Static Public Member Functions

Vector3f distMapImproveDirection (ConstMesh mesh, FixUndercuts.ConstDistMapImproveDirectionParameters params)
float find (ConstMesh mesh, FixUndercuts.ConstFindParams params, FaceBitSet outUndercuts, Const_func_double_from_TypedBitSet_Id_FaceTag_FixUndercuts_FindParams metric='{}')
None find (ConstMesh mesh, FixUndercuts.ConstFindParams params, VertBitSet outUndercuts)
None fix (Mesh mesh, FixUndercuts.ConstFixParams params)
func_double_from_TypedBitSet_Id_FaceTag_FixUndercuts_FindParams getUndercutAreaMetric (ConstMesh mesh)
func_double_from_TypedBitSet_Id_FaceTag_FixUndercuts_FindParams getUndercutAreaProjectionMetric (ConstMesh mesh)
Vector3f improveDirection (ConstMesh mesh, FixUndercuts.ConstImproveDirectionParameters params, Const_func_double_from_TypedBitSet_Id_FaceTag_FixUndercuts_FindParams metric)
float scoreUndercuts (ConstMesh mesh, ConstVector3f upDirection, ConstVector2i resolution)

Detailed Description

This is a namespace.

Member Function Documentation

◆ distMapImproveDirection()

Vector3f mrmeshpy.FixUndercuts.distMapImproveDirection ( ConstMesh mesh,
FixUndercuts.ConstDistMapImproveDirectionParameters params )
static
Score candidates with distance maps, lower resolution -> faster score
\\note does not support wallAngle yet

◆ find() [1/2]

float mrmeshpy.FixUndercuts.find ( ConstMesh mesh,
FixUndercuts.ConstFindParams params,
FaceBitSet outUndercuts,
Const_func_double_from_TypedBitSet_Id_FaceTag_FixUndercuts_FindParams metric = '{}' )
static
Adds undercuts to \\param outUndercuts
if metric is set returns metric of found undercuts, otherwise returns DBL_MAX

◆ find() [2/2]

None mrmeshpy.FixUndercuts.find ( ConstMesh mesh,
FixUndercuts.ConstFindParams params,
VertBitSet outUndercuts )
static
Adds undercuts to \\param outUndercuts

◆ fix()

None mrmeshpy.FixUndercuts.fix ( Mesh mesh,
FixUndercuts.ConstFixParams 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

◆ getUndercutAreaMetric()

func_double_from_TypedBitSet_Id_FaceTag_FixUndercuts_FindParams mrmeshpy.FixUndercuts.getUndercutAreaMetric ( ConstMesh mesh)
static
returns the metric that computes total area of undercut faces

◆ getUndercutAreaProjectionMetric()

func_double_from_TypedBitSet_Id_FaceTag_FixUndercuts_FindParams mrmeshpy.FixUndercuts.getUndercutAreaProjectionMetric ( ConstMesh mesh)
static
returns the metric that computes summed absolute projected area of undercut

◆ 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

◆ scoreUndercuts()

float mrmeshpy.FixUndercuts.scoreUndercuts ( ConstMesh mesh,
ConstVector3f upDirection,
ConstVector2i 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

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