Jelle Feringa wrote: >> When I get a cabinet model with slabs and slots and drill holes, >> I want to export to .OBJ format > > Better yet; STL. Surely blender supports it. > There's also a VRML export, but this format is so '90-ies. > Have a look at OCC/Utils/DataExchange/*
the want for .OBJ is rather strong -- it allows use of SweetHome3D, which has a web interface version that helps you sell product (customers can arrange furniture in 3D). So getting .OBJ output will become another of my pythonOCC goals. .OBJ is a brep format. From OCC/Utils/DataExchange/utils.py elif format == 'brep': from OCC import TopoDS, BRep, BRepTools #shape = TopoDS.TopoDS_Shape() builder = BRep.BRep_Builder() BRepTools.BRepTools().Write(shape, _file) Are there any other formats in OCC's BRepTools? John _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users