ModelConverter.optimize bug?

Hi all,

I think it is a bug that optimize crashes. The cause for the crash is created by the optimization process itself by setting the mesh mode to hybrid in generateStrips.

I loaded a mesh in .obj format (33x33) mesh is a tringle mesh after load. So I would expect in generateStrips to create a tristrip mesh out of this, and not an exception.

Currently I have not succeeded in loading a mesh and call optimize thereafter without a crash, no matter what, even with this one:

g00 = (Geometry) ((Node)assetManager.loadModel(“Models/Terrain/Terrain.mesh.xml”)).getChild(0);

SCHWERWIEGEND: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]


at com.jme3.scene.Mesh.computeNumElements(

at com.jme3.scene.Mesh.updateCounts(

at com.jme3.scene.Mesh.setMode(

at jme3tools.converters.model.ModelConverter.generateStrips(

at jme3tools.converters.model.ModelConverter.optimize(

at jme3tools.converters.model.ModelConverter.optimizeScene(

at jme3tools.converters.model.ModelConverter.optimize(

Triangle strip generation is bugged. Its best not to use it