[x3d-public] fieldValue.setIS()? Is this valid X3D?

John Carlson yottzumm at gmail.com
Sat Aug 28 14:50:52 PDT 2021


Here's what Don's Java compiler errors look like, but I've modified the 
rubik2x2x2.x3d  See attached.

I'm not going to revert for now, because this rubik's cube is difficult 
to deal with. I did not have problems with the other rubik's that I know 
of in many browsers, but this one has a connect on a fieldValue 
(children) being an IS statement.

FreeWRL is the only browser I've tested (I tested view3dscene and 
X3DJSONLD recently), which doesn't show a solid white (red before 
modifications). Instead, FreeWRL show the 4 colored prisms.

The X3D validator throws a lot of errors/warnings.  I will likely not 
check this X3D XML file in.

Anyway, interesting attempt on my part.

John

/net/x3djsonld/data/rubik2x2x2.java:104: error: incompatible types: IS 
cannot be converted to X3DNode
                 .addConnect(new 
connect().setNodeField("diffuseColor").setProtoField("diffuseColor")))))
                            ^
./net/x3djsonld/data/rubik2x2x2.java:109: error: incompatible types: IS 
cannot be converted to X3DNode
                 .addConnect(new 
connect().setNodeField("diffuseColor").setProtoField("diffuseColor"))))))))
                            ^
./net/x3djsonld/data/rubik2x2x2.java:123: error: incompatible types: IS 
cannot be converted to X3DNode
                 .addConnect(new 
connect().setNodeField("diffuseColor").setProtoField("x1diffuseColor")))))
                            ^
./net/x3djsonld/data/rubik2x2x2.java:128: error: incompatible types: IS 
cannot be converted to X3DNode
                 .addConnect(new 
connect().setNodeField("diffuseColor").setProtoField("x2diffuseColor"))))))))
                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose 
to get full output
4 errors

On 8/28/21 4:14 PM, John Carlson wrote:
> Note that my Java version of rubik2x2x2.java throws the following.  I 
> will look at Don's version to see what it generates. My version is 
> attached.
>
> rubik2x2x2.java:112: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> rubik2x2x2.java:118: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> rubik2x2x2.java:124: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> rubik2x2x2.java:130: error: cannot find symbol
>                   .setIS(new IS()
>                   ^
>   symbol:   method setIS(IS)
>   location: class fieldValue
> 4 errors
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubik2x2x2.java
Type: text/x-java
Size: 12004 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210828/42366b9b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rubik.x3d
Type: model/x3d+xml
Size: 4562 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210828/42366b9b/attachment-0001.x3d>


More information about the x3d-public mailing list