|
Lagrange
|
Computes surface geodesics using the edge-flip method. More...
#include <lagrange/geodesic/GeodesicEngineFlip.h>
Classes | |
| struct | Impl |
| struct | Options |
| Options for the flip geodesic engine. More... | |
Public Types | |
| using | Super = GeodesicEngine<Scalar, Index> |
| Parent class type. | |
| using | Mesh = typename Super::Mesh |
| The mesh type. | |
Public Types inherited from GeodesicEngine< Scalar, Index > | |
| using | Mesh = SurfaceMesh<Scalar, Index> |
| The mesh type. | |
Public Member Functions | |
| GeodesicEngineFlip (Mesh &mesh, const Options &options={}) | |
| Precompute any data required for repeated geodesic path computation. | |
| GeodesicEngineFlip (GeodesicEngineFlip &&) | |
| GeodesicEngineFlip & | operator= (GeodesicEngineFlip &&) |
| GeodesicEngineFlip (const GeodesicEngineFlip &)=delete | |
| GeodesicEngineFlip & | operator= (const GeodesicEngineFlip &)=delete |
| SingleSourceGeodesicResult | single_source_geodesic (const SingleSourceGeodesicOptions &options) override |
| Scalar | point_to_point_geodesic (const PointToPointGeodesicOptions &options) override |
| Compute the geodesic distance between two points using the edge-flip method. | |
| GeodesicPathResult< Scalar, Index > | point_to_point_geodesic_path (const PointToPointGeodesicPathOptions &options) override |
| Compute the geodesic path between two points using the edge-flip method. | |
Public Member Functions inherited from GeodesicEngine< Scalar, Index > | |
| GeodesicEngine (Mesh &mesh) | |
| Base class constructor. | |
| virtual | ~GeodesicEngine ()=default |
| Base class destructor. | |
Protected Attributes | |
| lagrange::value_ptr< Impl > | m_impl |
Additional Inherited Members | |
Protected Member Functions inherited from GeodesicEngine< Scalar, Index > | |
| const Mesh & | mesh () const |
| Mesh & | mesh () |
Computes surface geodesics using the edge-flip method.
This method finds geodesic paths by iteratively flipping edges to straighten an initial Dijkstra path, producing high-quality approximate geodesics efficiently.
| Scalar | Mesh scalar type. |
| Index | Mesh index type. |
Based on the following paper:
Sharp, Nicholas, and Keenan Crane. "You can find geodesic paths in triangle meshes by just flipping edges." ACM Transactions on Graphics (SIGGRAPH Asia 2020).
|
explicit |
Precompute any data required for repeated geodesic path computation.
| mesh | Reference to the input mesh. |
| options | Options for the flip geodesic engine. |
|
overridevirtual |
| lagrange::Error | always. |
Implements GeodesicEngine< Scalar, Index >.
|
overridevirtual |
Compute the geodesic distance between two points using the edge-flip method.
| options | The options for the computation. |
Reimplemented from GeodesicEngine< Scalar, Index >.
|
overridevirtual |
Compute the geodesic path between two points using the edge-flip method.
This function finds a geodesic path by first computing a Dijkstra path between the two closest mesh vertices, then iteratively shortening it via edge flips until the path is locally shortest.
| options | The options for the path computation. |
Reimplemented from GeodesicEngine< Scalar, Index >.