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

Method get_attribute_names

src/IO/NodeParser.cpp:188–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188NodeParser::AttrNames NodeParser::get_attribute_names() const {
189 AttrNames names;
190 for (size_t i=0; i<m_num_node_attributes; i++) {
191 std::stringstream name;
192 name << "node_attribute_" << i;
193 names.push_back(name.str());
194 }
195 if (!m_boundary_node_markers.empty()) {
196 names.push_back("node_boundary_marker");
197 }
198 if (!m_boundary_face_markers.empty()) {
199 names.push_back("face_boundary_marker");
200 }
201 if (!m_region_attributes.empty()) {
202 names.push_back("region");
203 }
204 return names;
205}
206
207size_t NodeParser::get_attribute_size(const std::string& name) const {
208 if (name.substr(0, 4) == "node") {

Callers

nothing calls this directly

Calls 2

strMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected