Skip to main content

Module: Plugins

Classes

Interfaces

Functions

buildCSGMeshBSP

buildCSGMeshBSP(meshes, matrix?): Mesh<BufferGeometry, Material | Material[]>

Parameters

NameType
meshes[Mesh<BufferGeometry, Material | Material[]>, TCSGOperation][]
matrix?Matrix4

Returns

Mesh<BufferGeometry, Material | Material[]>

Defined in

webgi/src/plugins/CSGPluginBSP.ts:6


buildCSGMeshBVH

buildCSGMeshBVH(meshes, matrix?): any

Parameters

NameType
meshes[Mesh<BufferGeometry, Material | Material[]>, TCSGOperation][]
matrix?Matrix4

Returns

any

Defined in

webgi/src/plugins/CSGPluginBVH.ts:12


sphericalFromObject

sphericalFromObject(obj, target): Spherical

Parameters

NameType
objObject
obj.positionVector3
obj.upVector3
targetVector3

Returns

Spherical

Defined in

webgi/src/plugins/CameraViewPlugin.ts:548


lerpAngle

lerpAngle(a, b, t): number

Parameters

NameType
anumber
bnumber
tnumber

Returns

number

Defined in

webgi/src/plugins/CameraViewPlugin.ts:629


lerpAngle2

lerpAngle2(a, b, w): number

Parameters

NameType
anumber
bnumber
wnumber

Returns

number

Defined in

webgi/src/plugins/CameraViewPlugin.ts:639


slerp

slerp(start, end, percent): Vector3

Parameters

NameType
startVector3
endVector3
percentnumber

Returns

Vector3

Defined in

webgi/src/plugins/CameraViewPlugin.ts:647


createIFrameCSS3DObject

createIFrameCSS3DObject(url, width, height, onload): CSS3DObject

Parameters

NameType
urlstring
widthnumber
heightnumber
onload() => void

Returns

CSS3DObject

Defined in

webgi/src/plugins/threejs/CSS3DRendererPlugin.ts:354


computeAverageGeometryNormal

computeAverageGeometryNormal(modelObj): Vector3

Parameters

NameType
modelObjMesh<BufferGeometry, Material | Material[]>

Returns

Vector3

Defined in

webgi/src/plugins/threejs/CSS3DRendererPlugin.ts:396


computeGeometryCenter

computeGeometryCenter(modelObj): Vector3

Parameters

NameType
modelObjMesh<BufferGeometry, Material | Material[]>

Returns

Vector3

Defined in

webgi/src/plugins/threejs/CSS3DRendererPlugin.ts:418


computeGeometrySize

computeGeometrySize(modelObj, upVector?): Vector3

Parameters

NameType
modelObjMesh<BufferGeometry, Material | Material[]>
upVectorVector3

Returns

Vector3

Defined in

webgi/src/plugins/threejs/CSS3DRendererPlugin.ts:433


addLUTData

addLUTData(material): boolean

Parameters

NameType
materialMaterial

Returns

boolean

Defined in

webgi/src/plugins/threejs/LUTPlugin.ts:168

Type aliases

TCSGOperation

Ƭ TCSGOperation: "union" | "subtract" | "intersect"

Defined in

webgi/src/plugins/CSGPluginBase.ts:11

Variables

csgOperations

Const csgOperations: TCSGOperation[]

Defined in

webgi/src/plugins/CSGPluginBase.ts:12


fontFormatExtensionMap

Const fontFormatExtensionMap: any

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:91


Uncharted2Tonemapping

Const Uncharted2Tonemapping: ToneMapping = CustomToneMapping

Defined in

webgi/src/plugins/threejs/TonemapPlugin.ts:31