Wildmeshing Toolkit
get_attribute.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <nlohmann/json.hpp>
4 
5 namespace wmtk {
6 class Mesh;
7 namespace components::multimesh {
8 class MeshCollection;
9 }
10 } // namespace wmtk
11 
13 //
14 // desires json that has
15 // * name (str for attribute name)
16 // * mesh (mesh path, mesh only only overload does not use this)
17 // * type (str double/int/char/rational
18 // * simplex (int, dimension attribute belongs to
19 // if type and simplex are missing code will search in lexicographical of (primitive_type, type)
20 // where double < int < char < rational for type
21 
25  const nlohmann::json& js);
26 } // namespace wmtk::components::multimesh::utils
wmtk::attribute::MeshAttributeHandle get_attribute(const Mesh &mesh, const nlohmann::json &js)
std::pair< std::shared_ptr< Mesh >, std::shared_ptr< Mesh > > multimesh(const MultiMeshType &type, Mesh &parent, std::shared_ptr< Mesh > child, const attribute::MeshAttributeHandle parent_position_handle, const std::string &tag_name, const int64_t tag_value, const int64_t primitive)
Definition: multimesh.cpp:15
Definition: Accessor.hpp:6
nlohmann::json json
Definition: input.cpp:9