Constructor
new RandomVertices(scene, options, randomVerticesSettingsopt)
Random vertices
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scene |
THREE.Group | group of objects to which a new random vertices object will be added. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Options | See Options. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
randomVerticesSettings |
object |
<optional> |
{} | The following settings are available.
Properties
|
- Source:
Methods
changeCirclesPoints(paramsNew)
Сall this method for the randomVerticesSettings.params.arc change to take effect.
Parameters:
| Name | Type | Description |
|---|---|---|
paramsNew |
Object | See paramsNew of the createOnePointArray method for details. |
- Source:
createOnePointArray(paramsNew)
Creates an array of the random points from one random point.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
paramsNew |
Object | See randomVerticesSettings.params of the constructor for details.
You can set vertice and oppositeVertice parameters instead arc and center. See below:
Properties
|
- Source:
Returns:
HyperSphere, what contains created points array.
onChangeOnePoint(paramsNew)
Сall this method for the randomVerticesSettings.params.onePoint change to take effect
or if randomVerticesSettings.params.onePointArray was changed to false.
Parameters:
| Name | Type | Description |
|---|---|---|
paramsNew |
Object | See randomVerticesSettings.params of the constructor for details. |
- Source:
onChangeRandom()
Сall this method for the randomVerticesSettings.params.random change to take effect.
- Source:
(static) params(params)
Sets a RandomVertices parameters.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
object | See RandomVertices constructor randomVerticesSettings.params parameter for details. |
- Source: