A toroidal surface is defined by a position axis returned by position, a major radius, and a minor radius.
new ToroidalSurface(
position,majorRadius,minorRadius):ToroidalSurface
Creates a toroidal surface from a position axis, major radius, and minor radius.
Throws a RangeError if majorRadius is less than 0. Throws a RangeError if minorRadius is less than 0.
Position axis of the toroidal surface.
number
Major radius of the toroidal surface.
number
Minor radius of the toroidal surface.
ToroidalSurface
readonlymajorRadius:number
Major radius of the toroidal surface.
readonlyminorRadius:number
Minor radius of the toroidal surface.
readonlyposition:Axis3d
Position axis of the surface.
readonlytype:SurfaceType=SurfaceType.UNDEFINED
Type of the surface.
get direction():
Direction
Returns the Z direction of the surface axis.
get id():
bigint
Returns the unique identifier of the object.
bigint
get location():
Point
Returns the origin point of the surface axis.