Class: IsotropicRegion

IsotropicRegion(source, parametersopt)

IsotropicRegion creates a 3D representation of an Isotropic Region.
Subject-Observer pattern must be enabled from its FiberSource reference and fired from subject with refresh();.

Constructor

new IsotropicRegion(source, parametersopt)

Parameters:
Name Type Attributes Description
source IsotropicRegionSource Reference Isotropic Region.
parameters Object <optional>
Optional parameters
Properties
Name Type Attributes Default Description
widthSegments Number <optional>
128 Number of width segments to feature in the sphere mesh.
heightSegments Number <optional>
128 Number of height segments to feature in the sphere mesh.
color THREE.Color <optional>
Color of the thread. If not specified, generated randomly from colors.
Properties:
Name Type Description
mesh THREE.Mesh Mesh containing the Isotropic Region sphere. Ready for scene.add.
source IsotropicRegionSource Reference to source isotropic region object.
color THREE.Color Color of the sphere.
widthSegments Number Amount of width segments to feature in the sphere mesh.
heightSegments Number Amount of height segments to feature in the sphere mesh.
Source:

Methods

(static) refresh()

Updates sphere position and radius from self properties. Must be fired when those change.
Source: