copper3d / Modules / Utils/add3DLabel
Module: Utils/add3DLabel
Table of contents
Interfaces
Functions
Functions
addLabelToScene
▸ addLabelToScene(scene, text, x, y, z, scaling, option?): void
Parameters
| Name | Type |
|---|---|
scene | baseScene | copperMScene |
text | string |
x | number |
y | number |
z | number |
scaling | number |
option? | Object |
option.font | string |
option.font_size | string |
Returns
void
Defined in
convert3DPostoScreenPos
▸ convert3DPostoScreenPos(container, camera, mesh): screenPosType
Parameters
| Name | Type |
|---|---|
container | HTMLDivElement | HTMLCanvasElement |
camera | PerspectiveCamera |
mesh | Object3D<Object3DEventMap> | Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap> | Sprite<Object3DEventMap> |
Returns
Defined in
convertScreenPosto3DPos
▸ convertScreenPosto3DPos(container, camera, pos): positionType
Parameters
| Name | Type |
|---|---|
container | HTMLDivElement | HTMLCanvasElement |
camera | PerspectiveCamera |
pos | screenPosType |