MinieLibrary/src/main/java/com/jme3/bullet/util/DebugShapeFactory.java
/**
     * Generate vertex locations for triangles to visualize the specified
     * PlaneCollisionShape.
     *
     * @param shape (not null, unaffected)
     * @param halfExtent the desired half extent for the result (in scaled shape
     * units, &gt;0)
     * @return a new, unflipped, direct buffer full of scaled shape coordinates
     * (capacity a multiple of 9)
     */
Generate vertex locations for triangles to visualize the specified
PlaneCollisionShape.

@param shape (not null, unaffected)
@param halfExtent the desired half extent for the result (in scaled shape
units, >0)
@return a new, unflipped, direct buffer full of scaled shape coordinates
(capacity a multiple of 9)
Generate vertex locations for triangles to visualize the specified PlaneCollisionShape . @param shape ( not null unaffected ) @param halfExtent the desired half extent for the result ( in scaled shape units > 0 ) @return a new unflipped direct buffer full of scaled shape coordinates ( capacity a multiple of 9 )
private static FloatBuffer createPlaneTriangles(PlaneCollisionShape shape,
            float halfExtent) {
        assert shape != null;
        assert halfExtent > 0f : halfExtent;
        /*
         * Generate vertex locations for a large square in the Y-Z plane.
         */
        FloatBuffer result = BufferUtils.createFloatBuffer(
                0f, 0f, -1f,
                0f, 1f, 0f,
                0f, 0f, 1f,
                0f, -1f, 0f,
                0f, 0f, -1f,
                0f, 0f, 1f
        );
        int numFloats = result.capacity();
        /*
         * Transform vertex locations to the surface of the shape.
         */
        Transform transform = planeTransform(shape);
        transform.setScale(halfExtent);
        MyBuffer.transform(result, 0, numFloats, transform);
        return result;
    }
private static FloatBuffer createPlaneTriangles ( PlaneCollisionShape shape , float halfExtent ) { assert shape != null ; assert halfExtent > 0f : halfExtent ; /*
         * Generate vertex locations for a large square in the Y-Z plane.
         */ FloatBuffer result = BufferUtils . createFloatBuffer ( 0f , 0f , - 1f , 0f , 1f , 0f , 0f , 0f , 1f , 0f , - 1f , 0f , 0f , 0f , - 1f , 0f , 0f , 1f ) ; int numFloats = result . capacity ( ) ; /*
         * Transform vertex locations to the surface of the shape.
         */ Transform transform = planeTransform ( shape ) ; transform . setScale ( halfExtent ) ; MyBuffer . transform ( result , 0 , numFloats , transform ) ; return result ; }
Generate vertex locations for triangles to visualize the specified
 PlaneCollisionShape.
Generate vertex locations for triangles to visualize the specified PlaneCollisionShape .