Represents the value of a plane and two radii in a torus that is oriented in three-dimensional space.

Constructors

  • Returns Torus

  • Initializes a new Torus from base pane and two radii.

    Parameters

    • basePlane: Plane

      Base plane for major radius circle.

    • majorRadius: number

      Radius of circle that lies at the heart of the torus.

    • minorRadius: number

      Radius of torus section.

    Returns Torus

Properties

MajorRadius: number
MinorRadius: number
Plane: Plane
unset: Torus

Gets an invalid Torus.

Methods

  • Returns Torus

  • Initializes a new Torus from base pane and two radii.

    Parameters

    • basePlane: Plane

      Base plane for major radius circle.

    • majorRadius: number

      Radius of circle that lies at the heart of the torus.

    • minorRadius: number

      Radius of torus section.

    Returns Torus

  • Check that all values in other are within epsilon of the values in this

    Parameters

    Returns boolean

  • Gets a value indicating whether this torus is valid.

    Parameters

    Returns boolean

  • Converts this torus to a Brep. This is synonymous with calling Brep.CreateFromTorus.

    Parameters

    Returns Brep

    A Brep representation of this torus, or null on error.

  • Converts this torus to its NURBS surface representation. This is synonymous with calling NurbsSurface.CreateFromTorus.

    Parameters

    Returns NurbsSurface

    A NURBS surface representation of this torus, or null on error.

  • Converts this torus to a surface of revolution representation. This is synonymous with calling RevSurface.CreateFromTorus.

    Parameters

    Returns RevSurface

    A surface of revolution representation of this torus, or null on error.