This is a rotational TriMesh that I made to get nicer columns in my little world :D. I guess it's not perfect, but may be useful. Based on the Cylinder class code. The normals are not yet OK, and in case you want to draw a cone with this class, half of the triangles are empty, which should be optimized away.

 * Created on 5. Januar 2006, 22:23
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.

package com.jme.scene.shape;

import com.jme.math.FastMath;
import com.jme.math.Vector2f;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.scene.TriMesh;
import com.jme.util.geom.BufferUtils;
import java.nio.FloatBuffer;

 * Defines a rotational TriMesh around the world y-axis (up).
 * The points array defines the generating polygon, which is in the x-y-plane.
 * The points must be defined from bottom to top in order to get the
 * "expected" texturing behavior. The vertical fractions of the tex coords
 * are based on the polygon length.
 * The code is based heavily on Mark Powell's com.jme.scene.shape.Cylinder class.
 * Todo:
 * - the normals must be tilted up or down according to the polygon segment
 * @author Daniel Gronau
public class RotationShape extends TriMesh {