| Name | Type | Description |
|---|---|---|
json |
Object | Json object describing the object 3D custom |
datas |
SystemObject3D | The system object 3D |
Properties:
| Name | Type | Description |
|---|---|---|
Object3DBox.VERTICES |
Array.<THREE.Vector3> | A box local vertices |
Object3DBox.NB_VERTICES |
Array.<THREE.Vector3> | A number of vertices |
Object3DBox.TEXTURES |
Array.<Array.<number>> | A textures values |
Object3DBox.TEXTURES_VALUES |
Array.<number> | The textures coordinates values |
Object3DBox.INDEXES |
Array.<number> | The texture indexes |
id |
number | The ID |
datas |
SystemObject3D | The system object 3D |
Extends
Methods
-
read (json, datas) overrides
-
Read the JSON associated to the object 3D box
Name Type Description jsonObject Json object describing the object 3D box datasSystemObject3D The system object 3D -
Update the geometry of a group of object 3D with the same material
Name Type Description geometryTHREE.Geometry Geometry of the object 3D positionArray.<number> The position of object 3D countnumber The faces count Returns:
Type Description Array.<any> -
Scale the vertices correctly
Name Type Description vecATHREE.Vector3 The A vertex to rotate vecBTHREE.Vector3 The B vertex to rotate vecCTHREE.Vector3 The C vertex to rotate vecDTHREE.Vector3 The D vertex to rotate centerTHREE.Vector3 The center to rotate around positionArray.<number> The json position sizeTHREE.Vector3 The scale size kindElementMapKind The element map kind