Class PQTorus

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class PQTorus extends Mesh
PQTorus generates the geometry of a parameterized torus, also known as a pq torus.
  • Constructor Details

    • PQTorus

      public PQTorus()
    • PQTorus

      public PQTorus(String name, double p, double q, double radius, double width, int steps, int radialSamples)
      Creates a parameterized torus. Steps and radialSamples are both degree of accuracy values.
      Parameters:
      name - The name of the torus.
      p - The x/z oscillation.
      q - The y oscillation.
      radius - The radius of the PQTorus.
      width - The width of the torus.
      steps - The steps along the torus.
      radialSamples - Radial samples for the torus.
  • Method Details