Mod: use new API of InventorBuilder

This commit is contained in:
wmayer
2022-12-12 20:50:32 +01:00
parent 787a37be82
commit cfc97b80b1
4 changed files with 27 additions and 22 deletions

View File

@@ -554,10 +554,8 @@ void MeshObject::writeInventor(std::ostream& str, float creaseangle) const
builder.addTransformation(getTransform());
Base::ShapeHintsItem shapeHints{creaseangle};
builder.addNode(shapeHints);
builder.beginPoints();
builder.addPoints(coords);
builder.endPoints();
builder.addIndexedFaceSet(indices);
builder.addNode(Base::Coordinate3Item{coords});
builder.addNode(Base::IndexedFaceSetItem{indices});
builder.endSeparator();
}