Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Sphere

[13:7] extends: Shape3D

Wraps JavaFX Sphere, a 3D sphere primitive defined by a radius and a subdivision count (the number of latitude and longitude divisions used to tessellate the sphere). Higher division counts produce smoother spheres at the cost of more triangles.

Methods

  • Sphere (double Radius = 1.0, int Divisions = 64)

    Creates a new Sphere with the given radius and division count.

    • @p Radius is a double with the sphere radius.
    • @p Divisions is an optional int with the tessellation count (default 64).
  • setRadius (double R)

    Sets the sphere radius.

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

    Returns the sphere radius.

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

    Returns the subdivision count used to tessellate the sphere.

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

    Returns the DoubleProperty backing the sphere radius.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.