MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty Struct Reference
Inheritance diagram for meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty:

Public Member Functions

void reset (metric:&meshlib::std_function_float_from_MR_EdgeId)
auto add_start (startVert:meshlib::VertId, startMetric:f32) -> bool
auto reach_next () -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty_ReachedVert >
auto add_org_ring_steps (rv:&meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty_ReachedVert) -> bool
auto grow_one_edge () -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty_ReachedVert >
auto done () const -> bool
auto done_distance () const -> f32
auto vert_path_info_map () const -> &meshlib::phmap::phmap_flat_hash_map_MR_VertId_MR_VertPathInfo_phmap_Hash_MR_VertId_phmap_EqualTo_MR_VertId_MR_Allocator_std_pair_const_MR_VertId_MR_VertPathInfo
auto get_vert_info (v:meshlib::VertId) const -> Option<&meshlib::VertPathInfo >
auto get_path_back (backpathStart:meshlib::VertId) const -> meshlib::Owned< meshlib::std_vector_MR_EdgeId >
auto track_path_back (v:meshlib::VertId, res:Option<&mut meshlib::std_vector_MR_EdgeId >) const -> meshlib::VertId

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty >
static auto construct_2 (topology:&meshlib::MeshTopology, metric:&meshlib::std_function_float_from_MR_EdgeId) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty >
static auto construct_1 (topology:&meshlib::MeshTopology) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

the class is responsible for finding smallest metric edge paths on a mesh Generated from class MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>.

Generated from class MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>. Heap-allocated instances are held in Owned<EdgePathsBuilderT_MR_TrivialMetricToPenalty>.

Member Function Documentation

◆ add_org_ring_steps()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::add_org_ring_steps ( rv:&meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty_ReachedVert ) -> bool

adds steps for all origin ring edges of the reached vertex; returns true if at least one step was added Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::addOrgRingSteps.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_addOrgRingSteps().

◆ add_start()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::add_start ( startVert:meshlib::VertId ,
startMetric:f32  ) -> bool

compares proposed metric with best value known for startVert; if proposed metric is smaller then adds it in the queue and returns true Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::addStart.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_addStart().

◆ construct_1()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::construct_1 ( topology:&meshlib::MeshTopology ) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty >
static

Generated from constructor MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::EdgePathsBuilderT.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_Construct_1(). The reference to the parameter topology might be preserved in the constructed object.

◆ construct_2()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::construct_2 ( topology:&meshlib::MeshTopology ,
metric:&meshlib::std_function_float_from_MR_EdgeId  ) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty >
static

Generated from constructor MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::EdgePathsBuilderT.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_Construct_2(). The reference to the parameter topology might be preserved in the constructed object. The reference to the parameter metric might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::construct_from_another ( _other:&meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty ) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty >
static

Generated from constructor MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::EdgePathsBuilderT.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ done()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::done ( ) const -> bool

returns true if further edge forest growth is impossible Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::done.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_done().

◆ done_distance()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::done_distance ( ) const -> f32

returns path length till the next candidate vertex or maximum float value if all vertices have been reached Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::doneDistance.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_doneDistance().

◆ get_path_back()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::get_path_back ( backpathStart:meshlib::VertId ) const -> meshlib::Owned< meshlib::std_vector_MR_EdgeId >

returns the path in the forest from given vertex to one of start vertices Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::getPathBack.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_getPathBack().

◆ get_vert_info()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::get_vert_info ( v:meshlib::VertId ) const -> Option<&meshlib::VertPathInfo >

returns one element from the map (or nullptr if the element is missing) Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::getVertInfo.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_getVertInfo().

◆ grow_one_edge()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::grow_one_edge ( ) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty_ReachedVert >

the same as reachNext() + addOrgRingSteps() Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::growOneEdge.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_growOneEdge().

◆ reach_next()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::reach_next ( ) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty_ReachedVert >

include one more vertex in the final forest, returning vertex-info for the newly reached vertex; returns invalid VertId in v-field if no more vertices left Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::reachNext.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_reachNext().

◆ reset()

void meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::reset ( metric:&meshlib::std_function_float_from_MR_EdgeId )

clears everything without freeing memory, and sets new metric Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::reset.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_reset().

◆ track_path_back()

auto meshlib::EdgePathsBuilderT_MR_TrivialMetricToPenalty::track_path_back ( v:meshlib::VertId ,
res:Option<&mut meshlib::std_vector_MR_EdgeId >  ) const -> meshlib::VertId

tracks back path in the forest from the given vertex to one of start vertices, which is returned; optionally appends tracked path (res) Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::trackPathBack.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_trackPathBack().

◆ vert_path_info_map()

gives read access to the map from vertex to path to it Generated from method MR::EdgePathsBuilderT<MR::TrivialMetricToPenalty>::vertPathInfoMap.

Calls MR_EdgePathsBuilderT_MR_TrivialMetricToPenalty_vertPathInfoMap().


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