/** * Constructor instantiates a new <code>Pyramid</code> object. The base width and the height are provided. * * @param name * the name of the scene element. This is required for identification and comparison purposes. * @param width * the base width of the pyramid. * @param height * the height of the pyramid from the base to the peak. */ public Pyramid(final String name, final double width, final double height) { super(name); _width = width; _height = height; setVertexData(); setNormalData(); setTextureData(); setIndexData(); }
/** * Constructor instantiates a new <code>Pyramid</code> object. The base width and the height are provided. * * @param name * the name of the scene element. This is required for identification and comparison purposes. * @param width * the base width of the pyramid. * @param height * the height of the pyramid from the base to the peak. */ public Pyramid(final String name, final double width, final double height) { super(name); _width = width; _height = height; setVertexData(); setNormalData(); setTextureData(); setIndexData(); }