0000764: Serialize Shape to python String

This commit is contained in:
wmayer
2012-06-28 18:29:48 +02:00
parent bbafe9cb00
commit 013b5f0dce
4 changed files with 70 additions and 0 deletions

View File

@@ -726,6 +726,11 @@ void TopoShape::exportBrep(const char *filename) const
throw Base::Exception("Writing of BREP failed");
}
void TopoShape::exportBrep(std::ostream& out)
{
BRepTools::Write(this->_Shape, out);
}
void TopoShape::exportStl(const char *filename) const
{
StlAPI_Writer writer;