Lagrange
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
mesh_from_oriented_points.h
1/*
2 * Copyright 2024 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/SurfaceMesh.h>
15#include <lagrange/poisson/CommonOptions.h>
16
17#include <string_view>
18
19namespace lagrange::poisson {
20
25{
27 std::string_view input_normals;
28
31
34
37
40
45};
46
58template <typename Scalar, typename Index>
59SurfaceMesh<Scalar, Index> mesh_from_oriented_points(
60 const SurfaceMesh<Scalar, Index>& points,
61 const ReconstructionOptions& options = {});
62
64
65} // namespace lagrange::poisson
Shared options for Poisson surface reconstruction.
Definition: CommonOptions.h:24
Option struct for Poisson surface reconstruction.
Definition: mesh_from_oriented_points.h:25
bool use_dirichlet_boundary
Use dirichlet boundary conditions.
Definition: mesh_from_oriented_points.h:36
bool use_normal_length_as_confidence
Use normal length as confidence.
Definition: mesh_from_oriented_points.h:33
std::string_view output_vertex_depth_attribute_name
Output density attribute name.
Definition: mesh_from_oriented_points.h:44
std::string_view input_normals
Input normal attribute name. If empty, uses the first attribute with usage Normal.
Definition: mesh_from_oriented_points.h:27
float interpolation_weight
Point interpolation weight (lambda)
Definition: mesh_from_oriented_points.h:30
std::string_view interpolated_attribute_name
Attribute name of data to be interpolated at the vertices.
Definition: mesh_from_oriented_points.h:39