The GeomIndexedContainer.calculateFaceNormals() crashes with an ArrayIndexOutOfBoundsException if called on an IndexedTriangleStripArray with multiple strips (well maybe with a single strip too, I didn't check).
The
face loop index overflows because in case of an IndexedTriangleStripArray, the face count is not equal to
int numFaces = validIndexCount / faceSize;
but it should be something like:
int numFaces=0;
for( int stripCount : super.stripCounts )
{
numFaces += stripCount - 2;
}
as for a single strip of
n points, you define
n-2 faces.
Anyway, for that kind of geometries, maybe should we not rely on an automatic normals generation.
Hervé