MeshLib Rust Docs
Loading...
Searching...
No Matches
MRSurroundingContour.rs File Reference

Namespaces

namespace  meshlib

Functions

auto meshlib::surrounding_contour_std_vector_mr_edge_id (mesh:&meshlib::Mesh, includeEdges:&meshlib::std_vector_MR_EdgeId, edgeMetric:&meshlib::std_function_float_from_MR_EdgeId, dir:&meshlib::Vector3f) -> meshlib::Owned< meshlib::expected_std_vector_MR_EdgeId_std_string >
 Find the best closed edge loop passing through given edges, which minimizes the sum of given edge metric. The algorithm assumes that input edges can be projected on the plane orthogonal to given direction, then the center point of all input edges is found, and each segment of the searched loop is within infinite pie sector with this center and the borders passing via two sorted input edges.
auto meshlib::surrounding_contour_std_vector_mr_vert_id (mesh:&meshlib::Mesh, keyVertices:&meshlib::std_vector_MR_VertId, edgeMetric:&meshlib::std_function_float_from_MR_EdgeId, dir:&meshlib::Vector3f) -> meshlib::Owned< meshlib::expected_std_vector_MR_EdgeId_std_string >
 Find the best closed edge loop passing through given vertices, which minimizes the sum of given edge metric. The algorithm assumes that input vertices can be projected on the plane orthogonal to given direction, then the center point of all input vertices is found, and each segment of the searched loop is within infinite pie sector with this center and the borders passing via two sorted input vertices.