Hi Christophe

> Thanks a lot for these ones, the Hobby's article is really worth a look,
> even if it seems complicated to do what I wanted.
> I just looked at the Asymptote sources, but I'm not a C++ expert, so
> I'll ask you in which file to look at exactly ?

Glad you found them useful. I don't really know C++ either. Perhaps
you could ask the asymptote developers.

> I started a  geometry package with PyX, maybe some of you could be
> interested...(not updated, but I could do it on your request):
> h**p://kib2.webfactional.com/projets/

Looks interesting. I found the sources at
http://kib2.free.fr/geoPyX/sources/. Unfortunately, I don't have the
time to look into it in much detail right now.

One thing I noticed is that you import a lot of PyX's classes and
functions into your own namespace:

from pyx.path import line, curve, rect, circle, path, pathitem,
moveto, lineto, \
    rmoveto, rlineto, curveto, rcurveto, closepath, \
    arc, arcn, arct, moveto_pt, lineto_pt
from pyx.graph import style
from pyx.graph.style import symbol
from pyx import text, canvas
from pyx.text import mathmode, valign, halign, vshift, texrunner
from pyx.trafo import trafo, mirror, rotate, scale, slant, translate
from pyx.color import gray, grey, rgb, hsb, cmyk
from pyx.deco import stroked, filled, barrow, earrow
from pyx.style import linewidth, linestyle, linejoin
from pyx.pattern import hatched0, hatched45, hatched90, hatched135
from pyx.unit import topt, tocm
from pyx import unit
from pyx.canvas import clip

This is probably a bad idea for any but the simplest of programs. The
"recommended" thing to do is just

import pyx

which forces you to fully qualify everything (e.g.,
pyx.canvas,canvas()). Admittedly, this style is more verbose, but it
makes the source easier to understand and means that you won't have
namespace collision problems, such a you mention on your web page with
"circle".

Cheers

Will



-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to