Static Public Member Functions | |
| static auto | construct_from_another (_other:&meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty > |
| static auto | construct_2 (topology:&meshlib::MeshTopology, metric:&meshlib::std_function_float_from_MR_EdgeId) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty > |
| static auto | construct_1 (topology:&meshlib::MeshTopology) -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty > |
| 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 |
the class is responsible for finding smallest metric edge paths on a mesh Generated from class MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>. Derived classes: Direct: (non-virtual) MR::EdgePathsAStarBuilder
Generated from class MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>. Heap-allocated instances are held in Owned<EdgePathsBuilderT_MR_MetricToAStarPenalty>.
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::add_org_ring_steps | ( | rv:&meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty_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::MetricToAStarPenalty>::addOrgRingSteps.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_addOrgRingSteps().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::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::MetricToAStarPenalty>::addStart.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_addStart().
|
static |
Generated from constructor MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>::EdgePathsBuilderT.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_Construct_1(). The reference to the parameter topology might be preserved in the constructed object.
|
static |
Generated from constructor MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>::EdgePathsBuilderT.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_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.
|
static |
Generated from constructor MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>::EdgePathsBuilderT.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::done | ( | ) | const -> bool |
returns true if further edge forest growth is impossible Generated from method MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>::done.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_done().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::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::MetricToAStarPenalty>::doneDistance.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_doneDistance().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::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::MetricToAStarPenalty>::getPathBack.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_getPathBack().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::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::MetricToAStarPenalty>::getVertInfo.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_getVertInfo().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::grow_one_edge | ( | ) | -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty_ReachedVert > |
the same as reachNext() + addOrgRingSteps() Generated from method MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>::growOneEdge.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_growOneEdge().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::reach_next | ( | ) | -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty_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::MetricToAStarPenalty>::reachNext.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_reachNext().
| void meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::reset | ( | metric:&meshlib::std_function_float_from_MR_EdgeId | ) |
clears everything without freeing memory, and sets new metric Generated from method MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>::reset.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_reset().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::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::MetricToAStarPenalty>::trackPathBack.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_trackPathBack().
| auto meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty::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 |
gives read access to the map from vertex to path to it Generated from method MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>::vertPathInfoMap.
Calls MR_EdgePathsBuilderT_MR_MetricToAStarPenalty_vertPathInfoMap().