Wildmeshing Toolkit
Loading...
Searching...
No Matches
read_image_msh.hpp
1#pragma once
2
3#include <wmtk/io/ComponentIO.hpp>
4
5#include <nlohmann/json.hpp>
6#include <string>
7#include <wmtk/Types.hpp>
8#include <wmtk/history/History.hpp>
9
10namespace wmtk::components::simwild {
11
13{
14 MatrixXd V_input;
15 MatrixXr V_input_r;
16 MatrixXi T_input;
17 MatrixSi T_input_tag;
18 std::vector<std::string> tag_names;
19
22 MatrixXi F_tagged;
23 MatrixSi F_tags;
24 std::vector<std::string> face_tag_names;
25
26 MatrixXd V_envelope;
27 MatrixXi F_envelope;
30 std::vector<uint64_t> F_envelope_labels;
32 std::string envelope_name;
33
38 std::vector<int64_t> corr_input_vid;
39
43 bool has_input_history = false;
44 history::SurfaceHistory input_history;
45 std::vector<std::pair<std::array<std::array<double, 3>, 3>, std::vector<uint32_t>>>
46 facet_sources;
47};
48
55void tags_from_label_images(MeshData& mesh, const std::string& what);
56InputData read_image_msh(const std::string& path);
57InputData read_mesh_data(const MeshData& mesh, const MeshData* envelope = nullptr);
58
64InputData read_mesh(
65 const std::vector<std::string>& input_paths,
66 const std::string& output_filename,
67 const nlohmann::json& json_params,
68 const io::ComponentIO* component_io = nullptr);
69
76InputData read_curves(
77 const std::vector<std::string>& input_paths,
78 const std::string& output_filename,
79 const nlohmann::json& json_params,
80 const io::ComponentIO* component_io = nullptr);
81
93int resolve_input_dimension(
94 const std::vector<std::string>& input_paths,
95 const nlohmann::json& json_params,
96 const io::ComponentIO* component_io = nullptr);
97
98} // namespace wmtk::components::simwild
Definition ComponentIO.hpp:15
Definition MeshData.hpp:48
Definition read_image_msh.hpp:13
std::vector< int64_t > corr_input_vid
Definition read_image_msh.hpp:38
std::string envelope_name
Name of the physical group the envelope curves came from; empty when there was none.
Definition read_image_msh.hpp:32
MatrixXi F_tagged
Definition read_image_msh.hpp:22
std::vector< uint64_t > F_envelope_labels
Definition read_image_msh.hpp:30
bool has_input_history
Definition read_image_msh.hpp:43
A complex and the edits it went through, in commit order.
Definition History.hpp:101