/** * Creates a parameterized torus. Steps and radialSamples are both degree of accuracy values. * * @param name * The name of the torus. * @param p * The x/z oscillation. * @param q * The y oscillation. * @param radius * The radius of the PQTorus. * @param width * The width of the torus. * @param steps * The steps along the torus. * @param radialSamples * Radial samples for the torus. */ public PQTorus(final String name, final double p, final double q, final double radius, final double width, final int steps, final int radialSamples) { super(name); _p = p; _q = q; _radius = radius; _width = width; _steps = steps; _radialSamples = radialSamples; setGeometryData(); setIndexData(); }
/** * Creates a parameterized torus. Steps and radialSamples are both degree of accuracy values. * * @param name * The name of the torus. * @param p * The x/z oscillation. * @param q * The y oscillation. * @param radius * The radius of the PQTorus. * @param width * The width of the torus. * @param steps * The steps along the torus. * @param radialSamples * Radial samples for the torus. */ public PQTorus(final String name, final double p, final double q, final double radius, final double width, final int steps, final int radialSamples) { super(name); _p = p; _q = q; _radius = radius; _width = width; _steps = steps; _radialSamples = radialSamples; setGeometryData(); setIndexData(); }