BSpyConvert.exporter

def export_iges(fileName, object):

Export a BSpy object or list into an IGES file.

Parameters
  • fileName (str): The path to the IGES file, including extension.
  • object (BSpy.Solid, BSpy.Boundary, or BSpy.Manifold (or list of these)): The object to export, or a list of objects. A TopoDS_Shape will also be accepted.
def export_step(fileName, object):

Export a BSpy object or list into a STEP file.

Parameters
  • fileName (str): The path to the STEP file, including extension.
  • object (BSpy.Solid, BSpy.Boundary, or BSpy.Manifold (or list of these)): The object to export, or a list of objects. A TopoDS_Shape will also be accepted.
def export_stl( fileName, object, mode='ascii', linear_deflection=0.9, angular_deflection=0.5):

Export a BSpy object into an STL file.

Parameters
  • fileName (str): The path to the STL file, including extension.
  • object (BSpy.Solid or BSpy.Manifold): The single solid or manifold to export. A TopoDS_Shape will also be accepted.
  • mode (str, optional): Specifies the export mode: "ascii" or "binary". The default is "ascii".
  • linear_deflection (float, optional): Allowed linear deflection. The lower the value, the more accurate the mesh. Default is 0.9.
  • angular_deflection (float, optional): Allowed angular deflection. The lower the value, the more accurate the mesh. Default is 0.5.