Lagrange
Loading...
Searching...
No Matches
GeodesicEngineMMP.h
1/*
2 * Copyright 2025 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12#pragma once
13
14#include <lagrange/geodesic/GeodesicEngine.h>
15
16namespace lagrange::geodesic {
17
28template <typename Scalar, typename Index>
29class GeodesicEngineMMP : public GeodesicEngine<Scalar, Index>
30{
31public:
33 using Mesh = typename Super::Mesh;
34
35public:
41 explicit GeodesicEngineMMP(Mesh& mesh);
42
43 virtual ~GeodesicEngineMMP();
46 GeodesicEngineMMP(const GeodesicEngineMMP&) = delete;
47 GeodesicEngineMMP& operator=(const GeodesicEngineMMP&) = delete;
48
63 const SingleSourceGeodesicOptions& options) override;
64
76 const PointToPointGeodesicPathOptions& options) override;
77
78protected:
79 struct Impl;
81};
82
93template <typename Scalar, typename Index>
95{
97}
98
99} // namespace lagrange::geodesic
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
GeodesicEngine(Mesh &mesh)
Base class constructor.
Definition GeodesicEngine.cpp:21
SurfaceMesh< Scalar, Index > Mesh
The mesh type.
Definition GeodesicEngine.h:150
Computes surface geodesics using the [MMP] algorithm.
Definition GeodesicEngineMMP.h:30
typename Super::Mesh Mesh
The mesh type.
Definition GeodesicEngineMMP.h:33
GeodesicEngineMMP(Mesh &mesh)
Precompute any data required for repeated geodesic distance computation.
Definition GeodesicEngineMMP.cpp:47
SingleSourceGeodesicResult single_source_geodesic(const SingleSourceGeodesicOptions &options) override
Compute single source geodesic distances using the MMP algorithm.
Definition GeodesicEngineMMP.cpp:66
GeodesicPathResult< Scalar, Index > point_to_point_geodesic_path(const PointToPointGeodesicPathOptions &options) override
Compute the exact geodesic path between two points using the MMP algorithm.
Definition GeodesicEngineMMP.cpp:98
GeodesicEngine< Scalar, Index > Super
Parent class type.
Definition GeodesicEngineMMP.h:32
Smart pointer with value semantics.
Definition value_ptr.h:134
Definition GeodesicEngineMMP.cpp:40
Result of a point-to-point geodesic path computation.
Definition GeodesicEngine.h:128
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