>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
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
>>> 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
> 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
> 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
__
> >>> 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
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
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()
>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
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)
10 matches
Mail list logo