the class is responsible for finding shortest edge paths on a mesh in Euclidean metric using A* heuristics Generated from class MR::EdgePathsAStarBuilder. Base classes: Direct: (non-virtual) MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>
Generated from class MR::EdgePathsAStarBuilder. Heap-allocated instances are held in Owned<EdgePathsAStarBuilder>.
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::addOrgRingSteps.
Calls MR_EdgePathsAStarBuilder_addOrgRingSteps().
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::addStart.
Calls MR_EdgePathsAStarBuilder_addStart().
|
static |
Generated from constructor MR::EdgePathsAStarBuilder::EdgePathsAStarBuilder.
Calls MR_EdgePathsAStarBuilder_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
|
static |
Generated from constructor MR::EdgePathsAStarBuilder::EdgePathsAStarBuilder.
Calls MR_EdgePathsAStarBuilder_Construct_MR_MeshTriPoint(). The reference to the parameter mesh might be preserved in the constructed object. The reference to the parameter target might be preserved in the constructed object. The reference to the parameter start might be preserved in the constructed object.
|
static |
Generated from constructor MR::EdgePathsAStarBuilder::EdgePathsAStarBuilder.
Calls MR_EdgePathsAStarBuilder_Construct_MR_VertId(). The reference to the parameter mesh might be preserved in the constructed object. The reference to the parameter target might be preserved in the constructed object. The reference to the parameter start might be preserved in the constructed object.
| auto meshlib::EdgePathsAStarBuilder::done | ( | ) | const -> bool |
returns true if further edge forest growth is impossible Generated from method MR::EdgePathsAStarBuilder::done.
Calls MR_EdgePathsAStarBuilder_done().
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::doneDistance.
Calls MR_EdgePathsAStarBuilder_doneDistance().
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::getPathBack.
Calls MR_EdgePathsAStarBuilder_getPathBack().
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::getVertInfo.
Calls MR_EdgePathsAStarBuilder_getVertInfo().
| auto meshlib::EdgePathsAStarBuilder::grow_one_edge | ( | ) | -> meshlib::Owned< meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty_ReachedVert > |
the same as reachNext() + addOrgRingSteps() Generated from method MR::EdgePathsAStarBuilder::growOneEdge.
Calls MR_EdgePathsAStarBuilder_growOneEdge().
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::reachNext.
Calls MR_EdgePathsAStarBuilder_reachNext().
| void meshlib::EdgePathsAStarBuilder::reset | ( | metric:&meshlib::std_function_float_from_MR_EdgeId | ) |
clears everything without freeing memory, and sets new metric Generated from method MR::EdgePathsAStarBuilder::reset.
Calls MR_EdgePathsAStarBuilder_reset().
|
static |
Static downcast from the base class MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>.
Calls MR_EdgePathsAStarBuilder_StaticDowncastFrom_MR_EdgePathsBuilderT_MR_MetricToAStarPenalty(). Undefined behavior if the object isn't actually a EdgePathsAStarBuilder.
|
static |
Static downcast from the base class MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>.
Calls MR_EdgePathsAStarBuilder_MutableStaticDowncastFrom_MR_EdgePathsBuilderT_MR_MetricToAStarPenalty(). Undefined behavior if the object isn't actually a EdgePathsAStarBuilder.
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::trackPathBack.
Calls MR_EdgePathsAStarBuilder_trackPathBack().
| auto meshlib::EdgePathsAStarBuilder::upcast_to_edge_paths_builder_t_mr_metric_to_a_star_penalty | ( | ) | const -> &meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty |
Upcasts to the base class MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>.
Calls MR_EdgePathsAStarBuilder_UpcastTo_MR_EdgePathsBuilderT_MR_MetricToAStarPenalty().
| auto meshlib::EdgePathsAStarBuilder::upcast_to_edge_paths_builder_t_mr_metric_to_a_star_penalty_mut | ( | ) | -> &mut meshlib::EdgePathsBuilderT_MR_MetricToAStarPenalty |
Upcasts to the base class MR::EdgePathsBuilderT<MR::MetricToAStarPenalty>.
Calls MR_EdgePathsAStarBuilder_MutableUpcastTo_MR_EdgePathsBuilderT_MR_MetricToAStarPenalty().
| auto meshlib::EdgePathsAStarBuilder::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::EdgePathsAStarBuilder::vertPathInfoMap.
Calls MR_EdgePathsAStarBuilder_vertPathInfoMap().