+ make API of InventorBuilder more flexible and add new methods

This commit is contained in:
wmayer
2015-11-26 15:27:40 +01:00
parent e0f3bb00b8
commit 898e0fb359
5 changed files with 214 additions and 115 deletions

View File

@@ -228,7 +228,13 @@ PyObject* MeshPy::writeInventor(PyObject *args)
std::stringstream result;
Base::InventorBuilder builder(result);
builder.addIndexedFaceSet(coords, indices, creaseangle);
builder.beginSeparator();
builder.addShapeHints(creaseangle);
builder.beginPoints();
builder.addPoints(coords);
builder.endPoints();
builder.addIndexedFaceSet(indices);
builder.endSeparator();
builder.close();
return Py::new_reference_to(Py::String(result.str()));