Wildmeshing Toolkit
to_points.hpp
Go to the documentation of this file.
1
#pragma once
2
3
4
#include <
wmtk/Mesh.hpp
>
5
6
namespace
wmtk::components
{
7
8
class
ToPtsOptions
9
{
10
public
:
11
bool
add_box
;
12
double
box_scale
;
13
bool
add_grid
;
14
double
grid_spacing
;
15
double
min_dist
;
16
bool
remove_duplicates
;
17
};
18
19
std::shared_ptr<PointMesh>
to_points
(
20
const
Mesh
& mesh,
21
const
attribute::MeshAttributeHandle
& pts_attr,
22
const
ToPtsOptions
& options,
23
const
std::string& output_pos_attr_name =
"vertices"
);
24
25
}
// namespace wmtk::components
Mesh.hpp
wmtk::Mesh
Definition:
Mesh.hpp:107
wmtk::attribute::MeshAttributeHandle
Definition:
MeshAttributeHandle.hpp:28
wmtk::components::ToPtsOptions
Definition:
to_points.hpp:9
wmtk::components::ToPtsOptions::grid_spacing
double grid_spacing
Definition:
to_points.hpp:14
wmtk::components::ToPtsOptions::remove_duplicates
bool remove_duplicates
Definition:
to_points.hpp:16
wmtk::components::ToPtsOptions::add_grid
bool add_grid
Definition:
to_points.hpp:13
wmtk::components::ToPtsOptions::box_scale
double box_scale
Definition:
to_points.hpp:12
wmtk::components::ToPtsOptions::add_box
bool add_box
Definition:
to_points.hpp:11
wmtk::components::ToPtsOptions::min_dist
double min_dist
Definition:
to_points.hpp:15
wmtk::components
Definition:
Tuple.hpp:14
wmtk::components::to_points
std::shared_ptr< PointMesh > to_points(const Mesh &mesh, const attribute::MeshAttributeHandle &pts_attr, const ToPtsOptions &options, const std::string &output_pos_attr_name)
Definition:
to_points.cpp:16
components
to_points
wmtk
components
to_points
to_points.hpp
Generated by
1.9.1