Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread thomas . paviot
>Hi all, > >Just started to play with class renaming as we told about the last couple of >days. Just to let you know it's actually *very* simple to deals with this >>feature: SWIG has a reday '%rename' feature that does the job as expected. > >Here is the result of a very first try with the gp mo

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread Frank Conradie
Looks great Thomas! - Frank thomas.pav...@free.fr wrote: Hi all, Just started to play with class renaming as we told about the last couple of days. Just to let you know it's actually *very* simple to deals with this feature: SWIG has a reday '%rename' feature that does the job as expected. H

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread thomas . paviot
>>> Hi Thomas, >> >> Hi Jelle, >> >>> The gp module is interesting, since there is a OCC.gp.gp module. >>> Right now we can call: from OCC.gp import gp; gp.DX() >> >> You have to instanciate the gp class before calling the DX method: >> gp().DX() > >True, but the point is that in the renaming the

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread Jelle Feringa
> OK, I finally understand what Jelle is saying. The gp class is the > only > one which does *not* have a prefix i.e. There is no OCC.gp.gp_gp() > class; it's OCC.gp.gp() instead. Yep, that's the only one. > There needs to be a catch for cases where there is no prefix (i.e. no > '_' in the name

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread Jelle Feringa
> Yes, this is great. Thank-you Thomas! I'm all for it too; I'm sorry it took you ( Frank, Bryan ) too much effort to convince me, seems an evident improvement. > Once this is in SVN, I'll start on converting the sample-scripts. Me++ Cheers, -jelle __

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread Bryan Cole
> >>> from OCC import gp > >>> P1 = gp.Pnt(0.,0.,0.) > >>> P2 = gp.Pnt(1.,1.,1.) > >>> P1 > > > >>> P2 > > > >>> V1 = gp.Vec(P1,P2) > >>> V1 > > > >>> V1.Magnitude() > 1.7320508075688772 > > > Is this something that fits your expectations (I mean Bryan, Frank, Arthur > ?). Yes, this is gre

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread Bryan Cole
On Thu, 2009-04-30 at 15:27 +0200, Jelle Feringa wrote: > On Apr 30, 2009, at 2:23 PM, thomas.pav...@free.fr wrote: > > >> Hi Thomas, > > > > Hi Jelle, > > > >> The gp module is interesting, since there is a OCC.gp.gp module. > >> Right now we can call: from OCC.gp import gp; gp.DX() > > > > You h

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread Jelle Feringa
On Apr 30, 2009, at 2:23 PM, thomas.pav...@free.fr wrote: >> Hi Thomas, > > Hi Jelle, > >> The gp module is interesting, since there is a OCC.gp.gp module. >> Right now we can call: from OCC.gp import gp; gp.DX() > > You have to instanciate the gp class before calling the DX method: > gp().DX()

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread thomas . paviot
>Hi Thomas, Hi Jelle, >The gp module is interesting, since there is a OCC.gp.gp module. >Right now we can call: from OCC.gp import gp; gp.DX() You have to instanciate the gp class before calling the DX method: gp().DX() >This will become from OCC import gp; gp.DX() ? It would be better, no? Th

Re: [Pythonocc-users] Class renaming test

2009-04-30 Thread Arthur Magill
Excellent news. Yes, this is exactly what I was hoping for. Cheers, Arthur -- Arthur Magill, PhD RF Engineer Centre d'Imagerie BioMédicale (CIBM) Laboratory for Functional and Metabolic Imaging (LIFMET) Ecole Polytechnique Fédérale de Lausanne (EPFL) Station 6, CH F1 532 (Bâtiment CH)