Wildmeshing Toolkit
Loading...
Searching...
No Matches
EmbedSegments.hpp
1#pragma once
2
3#include <wmtk/Types.hpp>
4#include <wmtk/io/read_edge_mesh.hpp>
5
6namespace wmtk::io {
7class ComponentIO;
8}
9
10namespace wmtk::utils {
11
57void embed_segments(
58 const MatrixXd& V,
59 const MatrixXi& E,
60 MatrixXd& V_out,
61 std::vector<Vector2r>& V_rational,
62 MatrixXi& F_out,
63 MatrixXi& E_out,
64 std::vector<std::vector<int>>* E_out_sources = nullptr,
65 std::vector<int>* E_out_orientation = nullptr,
66 std::vector<int>* point_map = nullptr,
67 const std::vector<int>* E_input = nullptr);
68
91void read_input_curves(
92 const std::vector<std::string>& input_paths,
93 double remove_duplicate_eps,
94 MatrixXd& V_all,
95 MatrixXi& E_all,
96 std::vector<MatrixXd>& Vs_out,
97 std::vector<MatrixXi>& Es_out,
98 const io::ComponentIO* component_io = nullptr,
99 io::ReadProvenance* provenance = nullptr);
100
101} // namespace wmtk::utils