Problem with GeomCone?

Hi,

I’m getting the following null pointer exception when making the call:

GeomCone cone = new GeomCone(1f, 2f);

Is there a problem with GeomCone? Any fixes out there?

Thanks,
James

Stack Trace:
java.lang.NullPointerException: Attempt to dereference null dGeomID
at org.odejava.ode.OdeJNI.dGeomGetPosition(Native Method)
at org.odejava.ode.Ode.dGeomGetPosition(Ode.java:162)
at org.odejava.Geom.updateReferences(Geom.java:97)
at org.odejava.GeomCone.(GeomCone.java:58)
at org.odejava.GeomCone.(GeomCone.java:63)

I’m going to answer my own question here for anyone else browsing the forum.

GeomCone has been disable and does not work. I am assuming this is for the similar reason that GeomCylinder does not work which is that both are a contrib module to ode.

James

You can use GeomCappedCylinder instead of GeomCylinder