Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TubeMeshBuffer

Tube mesh buffer. Draws a tube.

Hierarchy

Index

Constructors

constructor

Properties

capTriangles

capTriangles: number

capVertices

capVertices: number

dynamic

dynamic: boolean = true

fragmentShader

fragmentShader: string = "Mesh.frag"

geometry

geometry: BufferGeometry = new BufferGeometry()

group

group: Group = new Group()

indexVersion

indexVersion: number = 0

isImpostor

isImpostor: boolean = false

isLine

isLine: boolean = false

isPoint

isPoint: boolean = false

isSurface

isSurface: boolean = false

isText

isText: boolean = false

material

material: ShaderMaterial

parameterTypes

parameterTypes: { matrix: {}; background: object; clipCenter: object; clipNear: object; clipRadius: object; depthWrite: object; diffuse: object; diffuseInterior: object; flatShaded: object; interiorColor: object; interiorDarkening: object; metalness: object; opacity: object; opaqueBack: object; roughness: object; side: object; useInteriorColor: object; wireframe: object } = BufferParameterTypes

Type declaration

  • matrix: {}
  • background: object
    • updateShader: boolean
  • clipCenter: object
    • uniform: boolean
  • clipNear: object
    • property: boolean
    • updateShader: boolean
  • clipRadius: object
    • uniform: boolean
    • updateShader: boolean
  • depthWrite: object
    • property: boolean
  • diffuse: object
    • uniform: boolean
  • diffuseInterior: object
    • updateShader: boolean
  • flatShaded: object
    • updateShader: boolean
  • interiorColor: object
    • uniform: boolean
  • interiorDarkening: object
    • uniform: boolean
  • metalness: object
    • uniform: boolean
  • opacity: object
    • uniform: boolean
  • opaqueBack: object
    • updateShader: boolean
  • roughness: object
    • uniform: boolean
  • side: object
    • property: boolean
    • updateShader: boolean
  • useInteriorColor: object
    • updateShader: boolean
  • wireframe: object
    • updateVisibility: boolean

parameters

Optional picking

picking: Picker

pickingGroup

pickingGroup: Group = new Group()

pickingMaterial

pickingMaterial: ShaderMaterial

pickingUniforms

pickingUniforms: Uniforms

size2

size2: number

uniforms

uniforms: Uniforms

vertexShader

vertexShader: string = "Mesh.vert"

visible

visible: boolean = true

Optional wireframeGeometry

wireframeGeometry: BufferGeometry

wireframeGroup

wireframeGroup: Group = new Group()

Optional wireframeIndex

wireframeIndex: Uint32Array | Uint16Array

wireframeIndexCount

wireframeIndexCount: number = 0

wireframeIndexVersion

wireframeIndexVersion: number = -1

wireframeMaterial

wireframeMaterial: ShaderMaterial

Accessors

attributeSize

  • get attributeSize(): number

defaultParameters

  • get defaultParameters(): { aspectRatio: number; capped: false; radialSegments: number } & { background: boolean; clipCenter: Vector3; clipNear: number; clipRadius: number; depthWrite: boolean; diffuse: number; diffuseInterior: boolean; disablePicking: boolean; flatShaded: boolean; forceTransparent: boolean; interiorColor: number; interiorDarkening: number; matrix: Matrix4; metalness: number; opacity: number; opaqueBack: boolean; roughness: number; side: "double" | "front" | "back"; sortParticles: boolean; useInteriorColor: boolean; wireframe: boolean }
  • Returns { aspectRatio: number; capped: false; radialSegments: number } & { background: boolean; clipCenter: Vector3; clipNear: number; clipRadius: number; depthWrite: boolean; diffuse: number; diffuseInterior: boolean; disablePicking: boolean; flatShaded: boolean; forceTransparent: boolean; interiorColor: number; interiorDarkening: number; matrix: Matrix4; metalness: number; opacity: number; opaqueBack: boolean; roughness: number; side: "double" | "front" | "back"; sortParticles: boolean; useInteriorColor: boolean; wireframe: boolean }

matrix

  • get matrix(): Matrix4
  • set matrix(m: Matrix4): void

pickable

  • get pickable(): boolean

size

  • get size(): number

transparent

  • get transparent(): boolean

Methods

_getMesh

  • _getMesh(materialName: BufferMaterials): LineSegments<BufferGeometry, ShaderMaterial> | Points<BufferGeometry, ShaderMaterial> | Mesh<BufferGeometry, ShaderMaterial>

addAttributes

  • addAttributes(attributes: {}): void

addUniforms

dispose

  • dispose(): void

getDefines

getFragmentShader

getMesh

  • getMesh(): LineSegments<BufferGeometry, ShaderMaterial> | Points<BufferGeometry, ShaderMaterial> | Mesh<BufferGeometry, ShaderMaterial>
  • Returns LineSegments<BufferGeometry, ShaderMaterial> | Points<BufferGeometry, ShaderMaterial> | Mesh<BufferGeometry, ShaderMaterial>

getParameters

  • getParameters(): { background: boolean; clipCenter: Vector3; clipNear: number; clipRadius: number; depthWrite: boolean; diffuse: number; diffuseInterior: boolean; disablePicking: boolean; flatShaded: boolean; forceTransparent: boolean; interiorColor: number; interiorDarkening: number; matrix: Matrix4; metalness: number; opacity: number; opaqueBack: boolean; roughness: number; side: "double" | "front" | "back"; sortParticles: boolean; useInteriorColor: boolean; wireframe: boolean }
  • Returns { background: boolean; clipCenter: Vector3; clipNear: number; clipRadius: number; depthWrite: boolean; diffuse: number; diffuseInterior: boolean; disablePicking: boolean; flatShaded: boolean; forceTransparent: boolean; interiorColor: number; interiorDarkening: number; matrix: Matrix4; metalness: number; opacity: number; opaqueBack: boolean; roughness: number; side: "double" | "front" | "back"; sortParticles: boolean; useInteriorColor: boolean; wireframe: boolean }

    • background: boolean
    • clipCenter: Vector3
    • clipNear: number
    • clipRadius: number
    • depthWrite: boolean
    • diffuse: number
    • diffuseInterior: boolean
    • disablePicking: boolean
    • flatShaded: boolean
    • forceTransparent: boolean
    • interiorColor: number
    • interiorDarkening: number
    • matrix: Matrix4
    • metalness: number
    • opacity: number
    • opaqueBack: boolean
    • roughness: number
    • side: "double" | "front" | "back"
    • sortParticles: boolean
    • useInteriorColor: boolean
    • wireframe: boolean

getPickingMesh

  • getPickingMesh(): LineSegments<BufferGeometry, ShaderMaterial> | Points<BufferGeometry, ShaderMaterial> | Mesh<BufferGeometry, ShaderMaterial>

getRenderOrder

  • getRenderOrder(): number

getShader

getVertexShader

getWireframeMesh

  • getWireframeMesh(): LineSegments<BufferGeometry, ShaderMaterial>

initIndex

  • initIndex(index: Uint32Array | Uint16Array): void

makeIndex

  • makeIndex(): void

makeMaterial

  • makeMaterial(): void

makeWireframeGeometry

  • makeWireframeGeometry(): void

makeWireframeIndex

  • makeWireframeIndex(): void

setAttributes

setMatrix

  • setMatrix(m: Matrix4): void

setParameters

setProperties

  • setProperties(data: any): void

setUniforms

  • setUniforms(data: any): void

setVisibility

  • setVisibility(value: boolean): void

toJSON

  • toJSON(): any

updateRenderOrder

  • updateRenderOrder(): void

updateShader

  • updateShader(): void

updateWireframeIndex

  • updateWireframeIndex(): void

Generated using TypeDoc