Here are two enhancements that would make my life a little easier.
1. Whenever PyX returns a point, it returns a tuple of
pyx.unit.length objects. It would be nice if this were
a subclass of tuple that supported vector addition and
scalar multiplication. (This would be backward compatible.)
2. When I want to collect path info along the way as I
construct a path, I currently do partial construction,
extract the info (usually the endpoint), append to the
path, extract the info again, etc. It would be nice
to have a collector object that could just be inserted
into the path. This would require `path.path` to grow
a method for retrieving the collector sequence. Since
some info is expensive, the collectors should be able to specify
what is collected. For example, if the collectors were
just dicts, examples might be
dict(arclen=True,atend=True)
dict(path=True)
The returned dictionaries update only the specified info,
in the second example holding the path constructed up to that point.
Cheers,
Alan Isaac
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user