Sphere
Defined in: radiance/src/objects/Sphere.ts:10
The analytic sphere (design record 0001, “The analytic sphere”): a centre and a radius that the
path tracer meets by the quadratic, with no triangle. The position is the centre. The rotation
turns the texture, and nothing else. The scale must be uniform, or the render stops with a
RangeError. The material must not emit, or the render stops with a TypeError.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Sphere(
radius,material):Sphere
Defined in: radiance/src/objects/Sphere.ts:12
Parameters
Section titled “Parameters”radius
Section titled “radius”number
The radius in the sphere’s own space, above 0 and finite. Times the world scale.
material
Section titled “material”Returns
Section titled “Returns”Sphere
Overrides
Section titled “Overrides”Properties
Section titled “Properties”children
Section titled “children”
readonlychildren:Object3D[] =[]
Defined in: radiance/src/core/Object3D.ts:21
Inherited from
Section titled “Inherited from”
readonlyid:number
Defined in: radiance/src/core/Object3D.ts:13
Inherited from
Section titled “Inherited from”isSphere
Section titled “isSphere”
readonlyisSphere:true=true
Defined in: radiance/src/objects/Sphere.ts:11
material
Section titled “material”material:
Material
Defined in: radiance/src/objects/Sphere.ts:15
matrix
Section titled “matrix”
readonlymatrix:Matrix4
Defined in: radiance/src/core/Object3D.ts:18
Inherited from
Section titled “Inherited from”matrixWorld
Section titled “matrixWorld”
readonlymatrixWorld:Matrix4
Defined in: radiance/src/core/Object3D.ts:19
Inherited from
Section titled “Inherited from”name:
string=''
Defined in: radiance/src/core/Object3D.ts:14
Inherited from
Section titled “Inherited from”parent
Section titled “parent”parent:
Object3D|null=null
Defined in: radiance/src/core/Object3D.ts:20
Inherited from
Section titled “Inherited from”position
Section titled “position”
readonlyposition:Vector3
Defined in: radiance/src/core/Object3D.ts:15
Inherited from
Section titled “Inherited from”radius
Section titled “radius”radius:
number
Defined in: radiance/src/objects/Sphere.ts:14
The radius in the sphere’s own space, above 0 and finite. Times the world scale.
rotation
Section titled “rotation”
readonlyrotation:Euler
Defined in: radiance/src/core/Object3D.ts:16
Inherited from
Section titled “Inherited from”
readonlyscale:Vector3
Defined in: radiance/src/core/Object3D.ts:17
Inherited from
Section titled “Inherited from”visible
Section titled “visible”visible:
boolean=true
Defined in: radiance/src/core/Object3D.ts:23
Hidden objects and their children are left out of the render.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”add(…
objects):this
Defined in: radiance/src/core/Object3D.ts:25
Parameters
Section titled “Parameters”objects
Section titled “objects”…Object3D[]
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”lookAt()
Section titled “lookAt()”lookAt(
target):this
Defined in: radiance/src/core/Object3D.ts:71
Turn so that the object’s -z axis points at target (in its parent’s space), with no roll:
how a camera is aimed. Straight up or down keeps the current yaw.
Parameters
Section titled “Parameters”target
Section titled “target”Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”remove()
Section titled “remove()”remove(…
objects):this
Defined in: radiance/src/core/Object3D.ts:35
Parameters
Section titled “Parameters”objects
Section titled “objects”…Object3D[]
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”traverse()
Section titled “traverse()”traverse(
fn):void
Defined in: radiance/src/core/Object3D.ts:47
Call fn on this object and every descendant, parents first.
Parameters
Section titled “Parameters”(o) => void
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”traverseVisible()
Section titled “traverseVisible()”traverseVisible(
fn):void
Defined in: radiance/src/core/Object3D.ts:53
Like traverse, but skipping hidden objects and what is under them.
Parameters
Section titled “Parameters”(o) => void
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”updateMatrixWorld()
Section titled “updateMatrixWorld()”updateMatrixWorld():
void
Defined in: radiance/src/core/Object3D.ts:60
Recompute matrix from position, rotation and scale, and matrixWorld down the tree.
Returns
Section titled “Returns”void