MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / convert_to_vertex_attribute_from_name

Method convert_to_vertex_attribute_from_name

tools/MeshUtils/AttributeUtils.cpp:187–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187VectorF AttributeUtils::convert_to_vertex_attribute_from_name(Mesh& mesh,
188 const std::string& attribute_name) {
189 const VectorF& attr = mesh.get_attribute(attribute_name);
190 return convert_to_vertex_attribute(mesh, attr);
191}
192
193VectorF AttributeUtils::convert_to_face_attribute(Mesh& mesh, const VectorF& attribute) {
194 const size_t dim = mesh.get_dim();

Callers 1

Calls 2

get_attributeMethod · 0.45

Tested by

no test coverage detected