Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContourBuffer

Contour buffer. A buffer that draws lines (instead of triangle meshes).

Hierarchy

Index

Constructors

constructor

Properties

dynamic

dynamic: boolean = true

fragmentShader

fragmentShader: string = "Line.frag"

geometry

geometry: BufferGeometry = new BufferGeometry()

group

group: Group = new Group()

indexVersion

indexVersion: number = 0

isImpostor

isImpostor: boolean = false

isLine

isLine: boolean = true

isPoint

isPoint: boolean = false

isSurface

isSurface: boolean = false

isText

isText: boolean = false

material

material: ShaderMaterial

parameterTypes

parameterTypes: object = BufferParameterTypes

Type declaration

  • matrix: object
  • 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

parameters: BufferParameters

Optional picking

picking: Picker

pickingGroup

pickingGroup: Group = new Group()

pickingMaterial

pickingMaterial: ShaderMaterial

pickingUniforms

pickingUniforms: Uniforms

uniforms

uniforms: Uniforms

vertexShader

vertexShader: string = "Line.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(): object
  • Returns object

    • 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

addAttributes

  • addAttributes(attributes: object): void

addUniforms

dispose

  • dispose(): void

getDefines

getFragmentShader

getMesh

  • getMesh(): LineSegments | Points | Mesh

getParameters

  • getParameters(): object
  • Returns object

    • 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 | Points | Mesh

getRenderOrder

  • getRenderOrder(): number

getShader

getVertexShader

getWireframeMesh

  • getWireframeMesh(): LineSegments

initIndex

  • initIndex(index: Uint32Array | Uint16Array): void

makeMaterial

  • makeMaterial(): void

makeWireframeGeometry

  • makeWireframeGeometry(): void

makeWireframeIndex

  • makeWireframeIndex(): void

setAttributes

  • setAttributes(data: any): void
  • Sets buffer attributes

    example

    var buffer = new Buffer(); buffer.setAttributes({ attrName: attrData });

    Parameters

    • data: any

      An object where the keys are the attribute names and the values are the attribute data.

    Returns void

setMatrix

  • setMatrix(m: Matrix4): void

setParameters

setProperties

  • setProperties(data: any): void

setUniforms

  • setUniforms(data: any): void

setVisibility

  • setVisibility(value: boolean): void

updateRenderOrder

  • updateRenderOrder(): void

updateShader

  • updateShader(): void

updateWireframeIndex

  • updateWireframeIndex(): void

Generated using TypeDoc