Lagrange
Loading...
Searching...
No Matches
GeodesicEngineFlip< Scalar, Index >::Impl< Scalar, Index > Struct Template Reference
Inheritance diagram for GeodesicEngineFlip< Scalar, Index >::Impl< Scalar, Index >:
GeodesicEngine< Scalar, Index >

Public Types

using Super
 Parent class type.
 
using 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 (const GeodesicEngineFlip &)=delete
 
GeodesicEngineFlip & operator= (GeodesicEngineFlip &&)
 
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.
 

Public Attributes

std::unique_ptr< gcManifoldMesh > m_gc_mesh
 
std::unique_ptr< gcGeometry > m_gc_geom
 
Options m_options
 

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 ()
 

Member Function Documentation

◆ GeodesicEngineFlip()

GeodesicEngineFlip ( Mesh & mesh,
const Options & options = {} )
explicit

Precompute any data required for repeated geodesic path computation.

Parameters
meshReference to the input mesh.
optionsOptions for the flip geodesic engine.

◆ single_source_geodesic()

SingleSourceGeodesicResult single_source_geodesic ( const SingleSourceGeodesicOptions & options)
overridevirtual
Note
Single source geodesic is not supported by this engine. Use GeodesicEngineHeat or GeodesicEngineMMP instead.
Exceptions
lagrange::Erroralways.

Implements GeodesicEngine< Scalar, Index >.

◆ point_to_point_geodesic()

Scalar point_to_point_geodesic ( const PointToPointGeodesicOptions & options)
overridevirtual

Compute the geodesic distance between two points using the edge-flip method.

Note
The source and target points are snapped to the nearest mesh vertex before computing the geodesic. This is a limitation of the flip-based algorithm.
Parameters
optionsThe options for the computation.
Returns
The geodesic distance between the source and target points.

Reimplemented from GeodesicEngine< Scalar, Index >.

◆ point_to_point_geodesic_path()

GeodesicPathResult< Scalar, Index > point_to_point_geodesic_path ( const PointToPointGeodesicPathOptions & options)
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.

Note
The source and target points are snapped to the nearest mesh vertex before computing the geodesic. This is a limitation of the flip-based algorithm.
Parameters
optionsThe options for the path computation.
Returns
A GeodesicPathResult containing the ordered path points and segment facet indices. Returns an empty result if no path exists.

Reimplemented from GeodesicEngine< Scalar, Index >.


The documentation for this struct was generated from the following file: