shapesmith.deprecated
shapesmith.deprecated copied to clipboard
Export & Import as BREP and STEP
Would be useful for thingiverse integration.
STEP yes. Do you mean OpenCASCADE BREP format? Does FreeCAD use this?
Yes and yes. pythonocc, Cadmium and openshapefactory allow export in OpenCASCADE Brep File format as well.
Ok, that shouldn't be too hard. Assuming it's the format already used to serialize brep
The limitation is basicly that a brep file contains only one shape. So maybe one has to build a Compound first.
# include <BRepTools.hxx>
BRepTools::Write (const TopoDS_Shape& sh, const Standard_CString file)
STEP (or IGES) would be more complicated, depending how much information you want to support and if you use OCAF.
Thanks, yes. That's what is used to serialise to disk. Shapesmith doesn't use OCAF.