Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Cylinder

[12:7] extends: Shape3D

Wraps JavaFX Cylinder, a 3D cylinder primitive defined by a radius, a height, and a subdivision count for the circular cross section. The cylinder is centered at the local origin with its axis along the Y axis.

Methods

  • Cylinder (double Radius = 1.0, double Height = 2.0, int Divisions = 64)

    Creates a new Cylinder with the given radius, height, and division count.

    • @p Radius is a double with the cylinder radius.
    • @p Height is a double with the cylinder height along the Y axis.
    • @p Divisions is an optional int with the cross section division count (default 64).
  • setRadius (double R)

    Sets the cylinder radius.

    • @p R is a double with the new radius.
    • @r this object
  • setHeight (double H)

    Sets the cylinder height.

    • @p H is a double with the new height.
    • @r this object
  • getRadius ()

    Returns the cylinder radius.

    • @r A double with the radius.
  • getHeight ()

    Returns the cylinder height.

    • @r A double with the height.
  • getDivisions ()

    Returns the subdivision count.

    • @r An int with the divisions.
  • heightProperty ()

    Returns the DoubleProperty AJO for the height.

    • @r An AJO around the height DoubleProperty.
  • radiusProperty ()

    Returns the DoubleProperty AJO for the radius.

    • @r An AJO around the radius DoubleProperty.