[X3D-Ecosystem] glTF editors…
John Carlson
yottzumm at gmail.com
Mon Jun 30 16:40:01 PDT 2025
I’m guessing stride is more about how to group constant numbers of sfs in
an mf? Kind of like stride while walking. Arrays often have length or
size. So I think you could look up something in X3DArrayField.
http://vis.arc.vt.edu/projects/osnap/doc/x3d/fields/X3DArrayField.html
In the above, you can use getValue() to return an array list, which you can
get the length of the array list from.
SAI is your friend.
Nicholas, I’m wondering why the abstract class methods aren’t mentioned in
the implementations in the fields package for example, MFInt32.
I don’t know glTF, and perhaps Joe is speaking of that?
Since array list is probably a list of arrays, maybe stride is the length
of each array?
John
On Mon, Jun 30, 2025 at 6:24 PM Joe D Williams <joedwil at earthlink.net>
wrote:
> Does the 'stride' parameter tell you how many sfs are in an mf?
>
> Joe
>
>
>
> -----Original Message-----
> From: X3D Ecosystem public discussion <x3d-ecosystem at web3d.org>
> Sent: Jun 29, 2025 7:35 AM
> To: X3D Ecosystem public discussion <x3d-ecosystem at web3d.org>
> Cc: John Carlson <yottzumm at gmail.com>
> Subject: Re: [X3D-Ecosystem] glTF editors…
>
>
> Sure, I was thinking of something that could be used as an editor or
> playground for viewing text of .gltf files, with a helpful “jump to” to go
> from an array index in the file to the array element in the file.
>
> On Sun, Jun 29, 2025 at 8:56 AM vmarchetti--- via X3D-Ecosystem <
> x3d-ecosystem at web3d.org> wrote:
>
>> The context for this question is unclear, but from the subject line I
>> assume it refers to arrays defined in json portion of a glb/glTF file. To
>> my knowledge the core glTF 2.0 has no API specification for working with
>> these arrays.
>> The json is decoded into whatever data structure is supported by the
>> processing system, and for arrays the language used, Python, Javascript,
>> Pacal, ... supports an array natively; and array elements are jumped to or
>> accessed by whatever method that language supports.
>>
>> Vince Marchetti
>>
>>
>> > On Jun 29, 2025, at 9:08 AM, John Carlson via X3D-Ecosystem <
>> x3d-ecosystem at web3d.org> wrote:
>> >
>> > How to jump to an array element from an array index?
>> > --
>> > X3D-Ecosystem mailing list
>> > X3D-Ecosystem at web3d.org
>> > http://web3d.org/mailman/listinfo/x3d-ecosystem_web3d.org
>>
>>
>> --
>> X3D-Ecosystem mailing list
>> X3D-Ecosystem at web3d.org
>> http://web3d.org/mailman/listinfo/x3d-ecosystem_web3d.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20250630/2943ad38/attachment.html>
More information about the X3D-Ecosystem
mailing list