Example #1
0
 def test_write_iges(self):
     iges_filename = get_test_fullname("sample.igs")
     write_iges_file(A_TOPODS_SHAPE, iges_filename)
     self.assertTrue(os.path.isfile(iges_filename))
Example #2
0
import numpy as np

from OCC.Core.gp import gp_Pnt
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox
from OCC.Extend.DataExchange import write_iges_file, write_step_file, write_stl_file
from OCCUtils.Construct import make_box

shp = make_box(gp_Pnt(-50, -50, -50), 100, 100, 100)
write_iges_file(shp, "box.iges")
write_step_file(shp, "box.stp")
write_stl_file(shp, "box.stl")
Example #3
0
 def export_igs_selected(self):
     comp = self.make_comp_selcted()
     igsname = create_tempnum(self.rootname, self.tmpdir, ".stl")
     write_iges_file(comp, igsname)
 def test_write_iges(self):
     write_iges_file(A_TOPODS_SHAPE, get_test_fullname("sample.igs"))