Dear all, may be someone can give me assistance in doing the following: I'd like to read the attached IGES curve and convert it to a set of points and write them out to a new file with some format. What I can do so far:
* Use the CADViewer demo and read in and display the IGES curve (this is pretty simple, because everything is given already) * from OCC import IGESControl i = IGESControl.IGESControl_Controller() i.Init() iges_reader = IGESControl.IGESControl_Reader() iges_reader.ReadFile(str(filename)) iges_reader.TransferRoots() shape = iges_reader.OneShape() What I worry about is which set of classes/methods I need in which sequence to end up with an array or list that carries a set of points. I suppose I have to use something like: * IGESToBRep_BasicCurve <http://www.pythonocc.org/APIREF/OCC.IGESToBRep.IGESToBRep_BasicCurve-cl ass.html> to convert the data into a generic representation but then i get stuck. Any comments appreciated. Andy _________________________________________________________________________________________ AVL List GmbH, Firmensitz: Graz, Firmenbuchnummer: FN 53507M, Landesgericht fuer ZRS Graz
centerline.igs
Description: centerline.igs
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users