Lagrange
Loading...
Searching...
No Matches
GeodesicEngineDGPC.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
26template <typename Scalar, typename Index>
27class GeodesicEngineDGPC : public GeodesicEngine<Scalar, Index>
28{
29public:
31 using Mesh = typename Super::Mesh;
32
33public:
39 explicit GeodesicEngineDGPC(Mesh& mesh);
40
44 virtual ~GeodesicEngineDGPC() = default;
45
68 const SingleSourceGeodesicOptions& options) override;
69
70protected:
72};
73
84template <typename Scalar, typename Index>
86{
88}
89
90} // namespace lagrange::geodesic
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
Computes surface geodesics using the Discrete Geodesic Polar Coordinates (DGPC) method.
Definition GeodesicEngineDGPC.h:28
GeodesicEngineDGPC(Mesh &mesh)
Precompute any data required for repeated geodesic distance computation.
Definition GeodesicEngineDGPC.cpp:39
typename Super::Mesh Mesh
The mesh type.
Definition GeodesicEngineDGPC.h:31
AttributeId m_facet_normal_attr_id
Facet normal attribute id.
Definition GeodesicEngineDGPC.h:71
virtual ~GeodesicEngineDGPC()=default
Destructor.
SingleSourceGeodesicResult single_source_geodesic(const SingleSourceGeodesicOptions &options) override
Compute discrete geodesic polar coordinates for each vertex within the local neighborhood of seed poi...
Definition GeodesicEngineDGPC.cpp:53
GeodesicEngine< Scalar, Index > Super
Parent class type.
Definition GeodesicEngineDGPC.h:30
GeodesicEngine(Mesh &mesh)
Base class constructor.
Definition GeodesicEngine.cpp:20
SurfaceMesh< Scalar, Index > Mesh
The mesh type.
Definition GeodesicEngine.h:106
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
constexpr AttributeId invalid_attribute_id()
Invalid attribute id.
Definition AttributeFwd.h:76
General options for one-to-many geodesic computations.
Definition GeodesicEngine.h:25
Result of a single source geodesic computation.
Definition GeodesicEngine.h:65