Wildmeshing Toolkit
Loading...
Searching...
No Matches
components
simwild
wmtk
components
simwild
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
10
namespace
wmtk::components::simwild {
11
12
struct
InputData
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
55
void
tags_from_label_images(
MeshData
& mesh,
const
std::string& what);
56
InputData
read_image_msh(
const
std::string& path);
57
InputData
read_mesh_data(
const
MeshData
& mesh,
const
MeshData
* envelope =
nullptr
);
58
64
InputData
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
76
InputData
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
93
int
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
wmtk::io::ComponentIO
Definition
ComponentIO.hpp:15
wmtk::MeshData
Definition
MeshData.hpp:48
wmtk::components::simwild::InputData
Definition
read_image_msh.hpp:13
wmtk::components::simwild::InputData::corr_input_vid
std::vector< int64_t > corr_input_vid
Definition
read_image_msh.hpp:38
wmtk::components::simwild::InputData::envelope_name
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
wmtk::components::simwild::InputData::F_tagged
MatrixXi F_tagged
Definition
read_image_msh.hpp:22
wmtk::components::simwild::InputData::F_envelope_labels
std::vector< uint64_t > F_envelope_labels
Definition
read_image_msh.hpp:30
wmtk::components::simwild::InputData::has_input_history
bool has_input_history
Definition
read_image_msh.hpp:43
wmtk::history::History
A complex and the edits it went through, in commit order.
Definition
History.hpp:101
Generated by
1.9.8