14#ifndef LAGRANGE_GEODESIC_WITH_GEOMETRYCENTRAL
15 #error "GeodesicEngineFlip requires the lagrange::geodesic::geometrycentral component"
18#include <lagrange/geodesic/GeodesicEngine.h>
20namespace lagrange::geodesic {
35template <
typename Scalar,
typename Index>
124template <
typename Scalar,
typename Index>
125GeodesicEngineFlip<Scalar, Index> make_flip_engine(
127 const typename GeodesicEngineFlip<Scalar, Index>::Options& options = {})
129 return GeodesicEngineFlip<Scalar, Index>(mesh, options);
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
Computes surface geodesics using the edge-flip method.
Definition GeodesicEngineFlip.h:37
GeodesicEngineFlip(Mesh &mesh, const Options &options={})
Precompute any data required for repeated geodesic path computation.
Definition GeodesicEngineFlip.cpp:45
typename Super::Mesh Mesh
The mesh type.
Definition GeodesicEngineFlip.h:40
Scalar point_to_point_geodesic(const PointToPointGeodesicOptions &options) override
Compute the geodesic distance between two points using the edge-flip method.
Definition GeodesicEngineFlip.cpp:90
SingleSourceGeodesicResult single_source_geodesic(const SingleSourceGeodesicOptions &options) override
Definition GeodesicEngineFlip.cpp:67
GeodesicPathResult< Scalar, Index > point_to_point_geodesic_path(const PointToPointGeodesicPathOptions &options) override
Compute the geodesic path between two points using the edge-flip method.
Definition GeodesicEngineFlip.cpp:119
GeodesicEngine< Scalar, Index > Super
Parent class type.
Definition GeodesicEngineFlip.h:39
GeodesicEngine(Mesh &mesh)
Base class constructor.
Definition GeodesicEngine.cpp:21
SurfaceMesh< Scalar, Index > Mesh
The mesh type.
Definition GeodesicEngine.h:150
Smart pointer with value semantics.
Definition value_ptr.h:133
@ Scalar
Mesh attribute must have exactly 1 channel.
Definition AttributeFwd.h:56
Options for the flip geodesic engine.
Definition GeodesicEngineFlip.h:44
double max_relative_length_decrease
Fraction of the initial path length below which shortening stops.
Definition GeodesicEngineFlip.h:51
size_t max_iterations
Maximum number of iterations for the iterative shortening procedure.
Definition GeodesicEngineFlip.h:47
Result of a point-to-point geodesic path computation.
Definition GeodesicEngine.h:128
General options for point-to-point geodesic computations.
Definition GeodesicEngine.h:79
Options for point-to-point geodesic path computation.
Definition GeodesicEngine.h:101
General options for one-to-many geodesic computations.
Definition GeodesicEngine.h:27
Result of a single source geodesic computation.
Definition GeodesicEngine.h:67