protected void updateMesh() {
        Vector3f a = rectangle.getA();
        Vector3f b = rectangle.getB();
        Vector3f c = rectangle.getC();
        Vector3f d = rectangle.calculateD();
        setBuffer(Type.Position, 3, new float[] {
                a.x, a.y, a.z,
                b.x, b.y, b.z,
                d.x, d.y, d.z,
                c.x, c.y, c.z
        });

        setBuffer(Type.TexCoord, 2, BufferUtils.createFloatBuffer(texCoords));

        if (normal == null) {
            normal = rectangle.calculateNormal(null);
        }
        setBuffer(Type.Normal, 3, BufferUtils.createFloatBuffer(normal, normal, normal, normal));

        if (flipped) {
            setBuffer(Type.Index, 3, new short[]{1, 0, 3, 3, 2, 1});
        } else {
            setBuffer(Type.Index, 3, new short[]{3, 0, 1, 1, 2, 3});
        }

        updateBound();
        setStatic();
    }
Flips this mesh by reversing its normal vector direction and
setting the {@code flipped} variable accordingly. This variable
will be used by the {@code updateMesh()} method to rearrange
the index buffer.
jme3-core/src/main/java/com/jme3/scene/shape/RectangleMesh.java