MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty Class Reference
Inheritance diagram for mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty:

Classes

class  ConstReachedVert
class  ReachedVert

Public Member Functions

 __init__ (self, *args, **kwargs)
bool done (self)
float doneDistance (self)
std_vector_Id_EdgeTag getPathBack (self, ConstVertId backpathStart)
ConstVertPathInfo getVertInfo (self, ConstVertId v)
VertId trackPathBack (self, ConstVertId v, std_vector_Id_EdgeTag res=None)
Const_phmap_flat_hash_map_Id_VertTag_VertPathInfo_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_VertPathInfo vertPathInfoMap (self)

Detailed Description

Generated from:  MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>
Aliases:  EdgePathsBuilder

the class is responsible for finding smallest metric edge paths on a mesh

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty, topology: meshlib.mrmeshpy.ConstMeshTopology, metric: meshlib.mrmeshpy.Const_func_float_from_Id_EdgeTag) -> None

2. __init__(self: meshlib.mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty, topology: meshlib.mrmeshpy.ConstMeshTopology) -> None

3. __init__(self: meshlib.mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty, arg0: meshlib.mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty, : meshlib.mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty) -> None

Member Function Documentation

◆ done()

bool mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty.done ( self)
returns true if further edge forest growth is impossible

◆ doneDistance()

float mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty.doneDistance ( self)
returns path length till the next candidate vertex or maximum float value if all vertices have been reached

◆ getPathBack()

std_vector_Id_EdgeTag mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty.getPathBack ( self,
ConstVertId backpathStart )
returns the path in the forest from given vertex to one of start vertices

◆ getVertInfo()

ConstVertPathInfo mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty.getVertInfo ( self,
ConstVertId v )
returns one element from the map (or nullptr if the element is missing)

◆ trackPathBack()

VertId mrmeshpy.ConstEdgePathsBuilderT_TrivialMetricToPenalty.trackPathBack ( self,
ConstVertId v,
std_vector_Id_EdgeTag res = None )
tracks back path in the forest from the given vertex to one of start vertices, which is returned;
optionally appends tracked path (res)

◆ vertPathInfoMap()

gives read access to the map from vertex to path to it

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