CLASSES
TagsA - Z

Torus

Description

class Torus extends _Primitive

Constructor

new Torus(id, scene, diameter, thickness, tessellation, canBeRegenerated, mesh, side)

Parameters

Name Type Description
id string
scene Scene
diameter number
thickness number
tessellation number
optional canBeRegenerated boolean
optional mesh Nullable<Mesh>

Members

diameter : number

thickness : number

tessellation : number

side : number

Methods

copy(id) Geometry

Parameters

Name Type Description
id string

serialize() any

static Parse(parsedTorus, scene) Nullable<undefined>

Parameters

Name Type Description
parsedTorus any
scene Scene