Wildmeshing Toolkit
Loading...
Searching...
No Matches
get_attributes.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <wmtk/Mesh.hpp>
4
5#include <nlohmann/json.hpp>
6
8
17attribute::MeshAttributeHandle get_attribute(const Mesh& m, const std::string& name);
18
19attribute::MeshAttributeHandle get_attribute(const Mesh& m, const nlohmann::json& attribute);
20
21std::vector<attribute::MeshAttributeHandle> get_attributes(
22 const Mesh& m,
23 const nlohmann::json& attribute_names);
24
25} // namespace wmtk::components::utils
wmtk::attribute::MeshAttributeHandle get_attribute(const Mesh &mesh, const std::string_view &name, PrimitiveType pt)
std::vector< attribute::MeshAttributeHandle > get_attributes(const Mesh &m, const nlohmann::json &attribute_names)