[x3d-public] Java Source code X3DJSAIL library testing

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Tue Dec 6 02:27:16 PST 2022


John, since X3DJSAIL source code is autogenerated from X3DUOM, which
strictly follows X3D Specification definitions, we should 

a.	fix specification first (as discussed in Mantis 1410), then
b.	Check DOCTYPE and XML Schema,
c.	Check X3DUOM,
d.	Check regeneration of X3DJSAIL Java and X3DPSAIL Python (x3d.py)

 

Frankly the error you are exposing here seems to be a good thing.

*	First of all, JoeSkeletonSiteSkinSaluteWalk.x3d has warnings about
errors so GIGO, no expectation of correctness yet.
*	Precisely, the error log says that you can't add a skin to a Shape.
That is true, so the tool has isolated an error.
*	Further "proof of correctness" will be if we follow steps a-b-c-d
above, then retest adding a Shape as "skin" to a HAnimHumanoid.

 

Every time our tools can help us find and fix problems in models, we prevent
invalid content from throwing mystery errors at viewing time by end users.
Content is king, let's continue making content correct.

 

Hope this helps explain why a sometimes-painful process is worthwhile,
thanks for continuing on the journey.  8)

 

all the best, Don

-- 

Don Brutzman  Naval Postgraduate School, Code USW/Br        brutzman at nps.edu

Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149

X3D graphics, virtual worlds, Navy robotics https://
faculty.nps.edu/brutzman

 

From: x3d-public <x3d-public-bounces at web3d.org> On Behalf Of John Carlson
Sent: Monday, December 5, 2022 4:01 PM
To: X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: [x3d-public] Java Source code X3DJSAIL library testing

 

Can someone with experience in X3DJSAIL and HAnim help debug these?  Thanks!
2 Attached file (note, may unpack in Users/john)

 

$ javac -cp
/c/x3d-code/www.web3d.org/x3d/stylesheets/java/jars/X3DJSAIL.4.0.full.jar
<http://www.web3d.org/x3d/stylesheets/java/jars/X3DJSAIL.4.0.full.jar>
/c/Users/john/X3DJSONLD/src/main/java/net/*/data/JoeSkeletonSiteSkinSaluteWa
lk.java

C:\Users\john\X3DJSONLD\src\main\java\net\coderextreme\data\JoeSkeletonSiteS
kinSaluteWalk.java:1284: error: cannot find symbol

                .addSkin(new IndexedFaceSet().setCoordIndex(new
MFInt32504().getArray().append(new MFInt32505().getArray()).append(new
MFInt32506().getArray()).append(new
MFInt32507().getArray())).setCreaseAngle(3.0999999046325684f)

                ^

  symbol:   method addSkin(IndexedFaceSet)

  location: class Shape

C:\Users\john\X3DJSONLD\src\main\java\net\x3djsonld\data\JoeSkeletonSiteSkin
SaluteWalk.java:1368: error: cannot find symbol

            .setSkin(new
IndexedFaceSet().setCreaseAngle(3.0999999046325684).setCoordIndex(getIndexed
FaceSet_7_1230_coordIndex())

            ^

  symbol:   method setSkin(IndexedFaceSet)

  location: class Shape

2 errors

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221206/0bbf7bd7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5353 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221206/0bbf7bd7/attachment-0001.p7s>


More information about the x3d-public mailing list