With 'upper bound', you mean the last element of the list, right? >>> a = [1,2,3,4,5] >>> a[-1] 5
Thomas 2010/7/10 Wangshiraz <shira...@hotmail.com> > Hi Thomas, > > I am using 0.4. I can export the IGES now. So cool. > > Just wondering is there a function to get the upper bound of the list? The > last shape in the list is what I want to saved. > > Regards, > > Cean > > > Message: 2 > > Date: Fri, 9 Jul 2010 15:25:23 +0200 > > From: Thomas Paviot <tpav...@gmail.com> > > Subject: Re: [Pythonocc-users] parametric drawing in PythonOCC > > > > > IGESControl (as well as STEPControl) takes TopoDS_Shape instance as a > > parameter. > > > > If you run pythonOCC-0.4, use the get_shapes() method of the > > ParametricModelingContext instance. You'll get a list of TopoDS_Shapes > you > > can pass to the IGES or STEP exporter. > > > > In the latest svn trunk revision, this method was replaced by the > > get_shape() method: box_shape = my_context.get_shape(my_box) > > > > Thomas > > > > *********************************************** > > ------------------------------ > 使用新一代 Windows Live Messenger 轻松交流和共享! > 立刻下载!<http://www.windowslive.cn/messenger/> > > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users > >
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users