[x3d-public] repetitive issue in ConformanceNist. X3dToJava.xslt

Don Brutzman brutzman at nps.edu
Sat Apr 17 18:34:57 PDT 2021


Great catch, fixed.  Extrusion /orientation/ field now handled as MFRotation rather than typical default SFRotation.

On 4/15/2021 10:07 PM, John Carlson wrote:
> 
> Fairly repetitive issue in ConformanceNist. X3dToJava.xslt (x3djsonld below means it's donall.sh).  Will attach java files for perusal.  Recent svn update.
> 
> Under:  X3DJSONLD/src/main/java/net/*x3djsonld*/data/c/x3d-code/www.web3d.org/ (on the file system--temporary spot for donall.sh)
> 
> x3d/content/examples/ConformanceNist/GroupingNodes/Collision/collidefalse.java:161: error: no suitable method found for setOrientation(double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double)
>              .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {1,0,0.92388,0.382683,0.707107,0.707106,0.382684,0.923879,1.26759e-006,1,-0.382682,0.92388,-0.707105,0.707108,-0.923879,0.382685,-1,2.53518e-006,-0.923881,-0.382681,-0.707109,-0.707105,-0.382687,-0.923878,-3.80277e-006,-1.0,0.38268,-0.923881,0.707104,-0.70711,0.923878,-0.382688,1.0,0.0})).setOrientation(0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0})).setSolid(false).setSpine(new MFVec3f(new double[] {-1.58296,-1.01245,0.0,-1.21333,-1.39814,0.0,-0.618718,-1.41421,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.554436,1.39814,0.0,1.18119,1.39814,0.0,1.56688,1.01245,0.0}))))))
> ^
>      method Extrusion.setOrientation(float[]) is not applicable
>        (actual and formal argument lists differ in length)
>      method Extrusion.setOrientation(MFRotation) is not applicable
>        (actual and formal argument lists differ in length)
> 1 error
> 
> 
> x3d/content/examples/ConformanceNist/GroupingNodes/Collision/nocollision.java:165: error: no suitable method found for setOrientation(double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double)
>            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {1,0,0.92388,0.382683,0.707107,0.707106,0.382684,0.923879,1.26759e-006,1,-0.382682,0.92388,-0.707105,0.707108,-0.923879,0.382685,-1,2.53518e-006,-0.923881,-0.382681,-0.707109,-0.707105,-0.382687,-0.923878,-3.80277e-006,-1.0,0.38268,-0.923881,0.707104,-0.70711,0.923878,-0.382688,1.0,0.0})).setOrientation(0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0})).setSolid(false).setSpine(new MFVec3f(new double[] {-1.58296,-1.01245,0.0,-1.21333,-1.39814,0.0,-0.618718,-1.41421,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.554436,1.39814,0.0,1.18119,1.39814,0.0,1.56688,1.01245,0.0})))))
> ^
>      method Extrusion.setOrientation(float[]) is not applicable
>        (actual and formal argument lists differ in length)
>      method Extrusion.setOrientation(MFRotation) is not applicable
>        (actual and formal argument lists differ in length)
> 1 error
> 
> 
> x3d/content/examples/ConformanceNist/Appearance/MovieTexture/ExtrusionExample.java:159: error: no suitable method found for setOrientation(double,double,double,double,double,double,double,double,double,double,double,double,double,double,double,double)
> 
> 
>          .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {1,-2.44921e-016,0.932472,-0.361242,0.739009,-0.673696,0.445738,-0.895164,0.0922675,-0.995734,-0.273664,-0.961825,-0.602635,-0.798017,-0.850218,-0.526432,-0.982973,-0.183749,-0.982973,0.18375,-0.850217,0.526433,-0.602634,0.798018,-0.273663,0.961826,0.0922688,0.995734,0.445739,0.895163,0.739009,0.673695,0.932472,0.361241,1,-2.44921e-016})).setOrientation(0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0,0.0).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0})).setSpine(new MFVec3f(new double[] {-0.779795,-0.712716,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.779795,1.78598,0.0}))))));
> ^
>      method Extrusion.setOrientation(float[]) is not applicable
>        (actual and formal argument lists differ in length)
>      method Extrusion.setOrientation(MFRotation) is not applicable
>        (actual and formal argument lists differ in length)
> 1 error

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 http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list