[x3d-public] Feedbacks related to x3d.py
J. Scheurich
mufti11 at web.de
Fri Jun 12 04:01:39 PDT 2020
> 1. I'm confused with the way lists and tuples are used to pass
> sequences to class methods:
>
> For example, the Coordinate node accepts both lists and tuples as
> a point vector:
> >>> import x3d
> x3d.py package loaded, have fun with X3D Graphics!
> >>> x3d.Coordinate(point=[[1,0,0], [0,1,0]])
> <x3d.Coordinate object at 0x000001EA57A437F0>
> >>> x3d.Coordinate(point=[(1,0,0), (0,1,0)])
> <x3d.Coordinate object at 0x000001EA57A43710>
>
> But the Normal node only takes list of tuples:
> >>> x3d.Normal(vector=[(1,0,0), (0,1,0)])
> <x3d.Normal object at 0x000001EA582FA160>
> >>> x3d.Normal(vector=[[1,0,0], [0,1,0]])
> Traceback (most recent call last):
X3D uses "MFVecf" FOR Coordinate.point and Normal.vector.
If Phyton supports "own data types", this should be a "aarray of x, y
and z values"
so long
MUFTI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200612/0d81177c/attachment.html>
More information about the x3d-public
mailing list