Lagrange
Loading...
Searching...
No Matches
GeodesicEngineHeat.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#ifndef LAGRANGE_GEODESIC_WITH_GEOMETRYCENTRAL
15 #error "GeodesicEngineHeat requires the lagrange::geodesic::geometrycentral component"
16#endif
17
18#include <lagrange/geodesic/GeodesicEngine.h>
19
20namespace lagrange::geodesic {
21
30template <typename Scalar, typename Index>
31class GeodesicEngineHeat : public GeodesicEngine<Scalar, Index>
32{
33public:
35 using Mesh = typename Super::Mesh;
36
37public:
43 explicit GeodesicEngineHeat(Mesh& mesh);
44
45 virtual ~GeodesicEngineHeat();
49 GeodesicEngineHeat& operator=(const GeodesicEngineHeat&) = delete;
50
66 const SingleSourceGeodesicOptions& options) override;
67
68protected:
69 struct Impl;
71};
72
83template <typename Scalar, typename Index>
85{
87}
88
89} // namespace lagrange::geodesic
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
Computes surface geodesics using the heat method.
Definition GeodesicEngineHeat.h:32
typename Super::Mesh Mesh
The mesh type.
Definition GeodesicEngineHeat.h:35
SingleSourceGeodesicResult single_source_geodesic(const SingleSourceGeodesicOptions &options) override
Compute single source geodesic distances using the heat method.
Definition GeodesicEngineHeat.cpp:67
GeodesicEngineHeat(Mesh &mesh)
Precompute any data required for repeated geodesic distance computation.
Definition GeodesicEngineHeat.cpp:45
GeodesicEngine< Scalar, Index > Super
Parent class type.
Definition GeodesicEngineHeat.h:34
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
Definition GeodesicEngineHeat.cpp:38
General options for one-to-many geodesic computations.
Definition GeodesicEngine.h:27
Result of a single source geodesic computation.
Definition GeodesicEngine.h:67