@Override
    public void processTriangle(Vector3f[] triangle, int partId, int triangleIndex) {
        // Three sets of individual lines
        // The new Vector is needed as the given triangle reference is from a pool
        vertices.add(new Vector3f(triangle[0]));
        vertices.add(new Vector3f(triangle[1]));
        vertices.add(new Vector3f(triangle[2]));
    }
A callback is used to process the triangles of the shape as there is no direct access to a concave shapes, shape.
 <p>
 The triangles are simply put into a list (which in extreme condition will cause memory problems) then put into a direct buffer.

@author CJ Hare
jme3-jbullet/src/main/java/com/jme3/bullet/util/DebugShapeFactory.java