Hide menu
Loading...
Searching...
No Matches
ToroidalSurface

Defines a toroidal surface.

A toroidal surface is defined by a position axis returned by position, a major radius, and a minor radius.

Extends

Constructors

Constructor

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.

Parameters

position

Axis3d

Position axis of the toroidal surface.

majorRadius

number

Major radius of the toroidal surface.

minorRadius

number

Minor radius of the toroidal surface.

Returns

ToroidalSurface

Overrides

ElementarySurface.constructor

Properties

majorRadius

readonly majorRadius: number

Major radius of the toroidal surface.


minorRadius

readonly minorRadius: number

Minor radius of the toroidal surface.


position

readonly position: Axis3d

Position axis of the surface.

Inherited from

ElementarySurface.position


type

readonly type: SurfaceType = SurfaceType.UNDEFINED

Type of the surface.

Inherited from

ElementarySurface.type

Accessors

direction

Get Signature

get direction(): Direction

Returns the Z direction of the surface axis.

Returns

Direction

Inherited from

ElementarySurface.direction


id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

ElementarySurface.id


location

Get Signature

get location(): Point

Returns the origin point of the surface axis.

Returns

Point

Inherited from

ElementarySurface.location