Hi,

I am trying to convert stl to iges using  code CADViewer which is under the 
samples\Tools folder.  
after load the stl file:

        elif extension == "stl":
            from OCC import TopoDS, StlAPI
            shape = TopoDS.TopoDS_Shape()
            stl_reader = StlAPI.StlAPI_Reader()
            stl_reader.Read(shape,str(filename))

 I added this:

            from OCC import IGESControl

            i  = IGESControl.IGESControl_Controller()
            i.Init()
            iges_writer = IGESControl.IGESControl_Writer()
            iges_writer.AddShape(shape)
            iges_writer.Write("my.iges")
            print "added an object to the IGES file. "

But I didn't get the output file - my.iges. 

stl_reader doesn't has GetOutput and 'import vtk' shows no vtk module.

What can I do?

Regards,

Cean


> 
> I put it here http://pastebin.org/375878 , it converts stl to step.
> 

                                          
_________________________________________________________________
MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
http://kaba.msn.com.cn/?k=1
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to