Hi everyone,

I am having a small problem with a bit of code - it is possibly quite
obvious but this is the first time i have used my own geometry and so
have never come across this before.

I am trying to generate a small plane from a TriangleStripArray.  The
code below compiles fine, but when i try to run it i get this exception:

Exception in thread main java.lang.NullPointerException
    at javax.media.j3d.GeometryArrayRetained.setCoordinates(Compiled
code)
    at javax.media.j3d.GeometryArray.setCoordinates(
GeomaetryArray.java:333)
    genStrips.getPlane( genStrip.java:72)
    genStrips.getScene( genStrip.java:40)
    genStrips.<init>(genStrips.java:24)
    at genStrips.main(genStrips.java:14)

I have attatched the code - it is called genStrips.java i would be realy
grateful if you could have a look and see what you think

Thanks loads

Dave

genStrips.java

Reply via email to