Lagrange
Loading...
Searching...
No Matches
mesh_convert.h
1/*
2 * Copyright 2022 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#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15
16 #include <lagrange/Mesh.h>
17 #include <lagrange/SurfaceMesh.h>
18
19namespace lagrange {
27
39template <typename Scalar, typename Index, typename MeshType>
40SurfaceMesh<Scalar, Index> to_surface_mesh_copy(const MeshType& mesh);
41
54template <typename Scalar, typename Index, typename MeshType>
55SurfaceMesh<Scalar, Index> to_surface_mesh_wrap(MeshType&& mesh);
56
68template <typename MeshType, typename Scalar, typename Index>
69std::unique_ptr<MeshType> to_legacy_mesh(const SurfaceMesh<Scalar, Index>& mesh);
70
72} // namespace lagrange
73
74 #include <lagrange/mesh_convert.impl.h>
75
76#endif // LAGRANGE_ENABLE_LEGACY_FUNCTIONS
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
Main namespace for Lagrange.