[x3d-public] Error in X3D Java SAI. Uses index 4 when it should be 3.

Don Brutzman brutzman at nps.edu
Wed Jan 18 03:46:11 PST 2017


great catch, fix checked in and will be deployed later.

that erroneous character probably marks where my head hit the keyboard after falling asleep...


On 1/18/2017 1:12 AM, yottzumm at gmail.com wrote:
>    www_web3d_org/x3d/content/examples/Basic/CAD/ClipPlaneExample
>
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4
>
>         at org.web3d.x3d.java.Rendering.ClipPlaneObject.setPlane(ClipPlaneObject.java:365)
>
>         at www_web3d_org.x3d.content.examples.Basic.CAD.ClipPlaneExample.main(ClipPlaneExample.java:175)
>
>
>
>
>
> if ((newValue[0] > 1) || (newValue[1] > 1) || (newValue[2] > 1) || (newValue  [4] > 1)) {
>
>     throw new org.web3d.x3d.sai.InvalidFieldValueException("ClipPlane plane ne wValue=" + SFVec4fObject.toString(newValue) + " is greater than (or equal to)   restriction maxInclusive1");
>
>     }

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