[x3d-public] announce: update releases for X3D Schematron and the X3DJSAIL Java library

John Carlson yottzumm at gmail.com
Mon Jul 28 01:34:55 PDT 2025


Here's the Java presented from X3DJSAIL:

$ java -cp ".;../../../X3DJSAIL.4.0.full.jar"
org.web3d.x3d.jsail.CommandLine -toJava Connectors.x3d|grep ieldOf
no className provided, using normalized meta title value='Connectors'
    .addChild(new
OrthoViewpoint().setDescription("OthoViewpoint").setCenterOfRotation(-3.13496,-4.19776,0.0).setFieldOfView(new
double[] {0.0,0.0,10.0,10.0}).setPosition(-3.13496,-4.19776,10.0))

That's OK.  Apparently the stylesheet version doesn't work, so I will be
switching away from exclusively using stylesheets.  I can't seem to
preserve the intermediate XML from X3DJSAIL.  I suggest this issue is from
not exporting fieldOfView to the intermediate file.  This was the
second half of the original report.

$ grep public.*set.ieldOfView OrthoViewpoint.java
        public OrthoViewpoint setFieldOfView(float[] newValue)
        public OrthoViewpoint setFieldOfView(MFFloat newValue)
        public OrthoViewpoint setFieldOfView(ArrayList<Float> newValue)
        public OrthoViewpoint setFieldOfView(int[] newValue)
        public OrthoViewpoint setFieldOfView(double[] newArray)
        public OrthoViewpoint setFieldOfView(SFVec4f newFieldOfView)
        public OrthoViewpoint setFieldOfView(float minimum_x, float
minimum_y, float maximum_x, float maximum_y)

$ javac -cp ".;../../../X3DJSAIL.4.0.full.jar"
net/x3djsonld/data/Connectors.java

$ java -cp ".;../../../X3DJSAIL.4.0.full.jar" net.x3djsonld.data.Connectors
Build this X3D model, showing validation diagnostics...
Connectors self-validation test confirmation: success
Note: toFileX3D() is overwriting prior file ./Connectors_JavaExport.x3d
Note: toFileClassicVRML() is overwriting prior file
./Connectors_JavaExport.x3dv

$ ls -ltr Connectors_JavaExport.x3d* net/x3djsonld/data/Connectors.*
-rw-r--r-- 1 jcarl 197609 26294 Jul 28 03:23
net/x3djsonld/data/Connectors.java
-rw-r--r-- 1 jcarl 197609 19013 Jul 28 03:27
net/x3djsonld/data/Connectors.class
-rw-r--r-- 1 jcarl 197609 14301 Jul 28 03:27 Connectors_JavaExport.x3d
-rw-r--r-- 1 jcarl 197609 10417 Jul 28 03:27 Connectors_JavaExport.x3dv

$ grep -i fieldOfView Connectors_JavaExport.x3d*
net/x3djsonld/data/Connectors.java
net/x3djsonld/data/Connectors.java:    .addChild(new
OrthoViewpoint().setDescription("OthoViewpoint").setCenterOfRotation(-3.13496,-4.19776,0.0).setFieldOfView(new
double[] {0.0,0.0,10.0,10.0}).setPosition(-3.13496,-4.19776,10.0))

So the MFFloat for setFieldOfValue is not appearing in XML or Classic VRML
output, I'm guessing it's not in the intermediate XML.

I have not tried setting the flag for not deleting the intermediate file
yet.  I have more important things to accomplish.

I will be posting this message on sourceforge.  Java is attached if you
want to play with it.

Good luck!

John
On Sun, Jul 27, 2025 at 1:36 PM Don Brutzman via x3d-public <
x3d-public at web3d.org> wrote:

>
>
>    - *Complete*. Added utility methods setFieldOfView(SFVec4f newValue)
>    <https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Navigation/OrthoViewpoint.html#setFieldOfView(org.web3d.x3d.jsail.fields.SFVec4f)>
>     and setFieldOfView(float minimum_x, float minimum_y, float maximum_x,
>    float maximum_y)
>    <https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Navigation/OrthoViewpoint.html#setFieldOfView(float,float,float,float)>.
>    Nevertheless, multiple counterintuitive *MFFloat* accessor methods
>    also appear... Probably need to change *fieldOfView* field to type
>    *SFVec4f*, for programmer clarity when handling the *fieldOfView* field,
>    as recommended by Mantis 1398
>    <https://mantis.web3d.org/view.php?id=1398>.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250728/3ce7c5d1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Connectors.java
Type: application/octet-stream
Size: 26294 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250728/3ce7c5d1/attachment-0001.obj>


More information about the x3d-public mailing list