Mesh: [skip ci] use new API of InventorBuilder

This commit is contained in:
wmayer
2022-12-07 15:17:14 +01:00
parent 302d3f5b95
commit ae0ee09a09

View File

@@ -2687,14 +2687,16 @@ bool MeshOutput::SaveInventor (std::ostream &rstrOut) const
// Header info
Base::InventorBuilder builder(rstrOut);
builder.beginSeparator();
builder.addInfo("Created by FreeCAD <http://www.freecadweb.org>");
Base::InfoItem info{"Created by FreeCAD <http://www.freecadweb.org>"};
builder.addNode(info);
std::stringstream str;
str << "Triangle mesh contains "
<< _rclMesh.CountPoints()
<< " vertices and "
<< _rclMesh.CountFacets()
<< " faces";
builder.addLabel(str.str().c_str());
Base::LabelItem label{str.str().c_str()};
builder.addNode(label);
// write out the normals of the facets
builder.beginNormal();