From ae0ee09a09907b579d2c8495f11e268263472a68 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 7 Dec 2022 15:17:14 +0100 Subject: [PATCH] Mesh: [skip ci] use new API of InventorBuilder --- src/Mod/Mesh/App/Core/MeshIO.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Mesh/App/Core/MeshIO.cpp b/src/Mod/Mesh/App/Core/MeshIO.cpp index 531e47dccb..402bdcb04a 100644 --- a/src/Mod/Mesh/App/Core/MeshIO.cpp +++ b/src/Mod/Mesh/App/Core/MeshIO.cpp @@ -2687,14 +2687,16 @@ bool MeshOutput::SaveInventor (std::ostream &rstrOut) const // Header info Base::InventorBuilder builder(rstrOut); builder.beginSeparator(); - builder.addInfo("Created by FreeCAD "); + Base::InfoItem info{"Created by FreeCAD "}; + 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();