[X3D-Public] [x3dom-developers] Fwd: Re: initial X3D JSON conversion support using X3dToJson.xslt

Leonard Daly web3d at realism.com
Mon Oct 13 14:12:10 PDT 2014


John,


>
> > I am looking at this from the standpoint of a 3D developer who needs 
> to (programmatically) work with the elements of the array. For this 
> discussion, assume this is a point array with each point having 3 
> coordinates (point field in a Coordinate node).  If I wish to morph 
> the existing shape into something else, I want to work with the points 
> (as a 3-tuple) of the shape. It is creates much clearer code to 
> reference something like p[27] than (p[27*3], p[27*3+1], p[27*3+2]).
>
> I'm not so sure you would be doing all that multiplication...I'm 
> imagining something like:
>
> for (index=0; index < max;) {
>     X = array[index++];
>     Y = array[index++];
>     Z = array[index++];
>     // do something with (X, Y, Z)
> }
>
> Would this be satisfactory, Leonard?
>

This issue is not so much the multiplication to get the indices, but all 
of the handling (even if the code optimizes well) that is necessary to 
get to the individual points.

Leonard Daly



> John
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
>
>
> _______________________________________________
> x3dom-developers mailing list
> x3dom-developers at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x3dom-developers


-- 
*Leonard Daly*
X3D Co-Chair
Cloud Consultant
President, Daly Realism - /Creating the Future/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20141013/18e970bb/attachment.html>


More information about the X3D-Public mailing list