Class WebGLPreview

Constructors

Properties

_endLayer?: number
_singleLayerMode: boolean = false
_startLayer?: number
buildVolume?: BuildVolume
camera: PerspectiveCamera
canvas: HTMLCanvasElement
controls: OrbitControls
debug: boolean = false

Use the dev mode options instead.

disableGradient: boolean = false
extrusionWidth?: number
inches: boolean = false
initialCameraPosition: number[] = ...
interpreter: Interpreter = ...
lineHeight?: number
lineWidth?: number
minLayerThreshold: number
nonTravelmoves: string[] = []
parser: Parser = ...
renderExtrusion: boolean = true
renderTravel: boolean = false
renderTubes: boolean = false
renderer: WebGLRenderer
scene: Scene
targetId?: string

Please use the canvas param instead.

defaultExtrusionColor: Color = ...

Accessors

  • get extrusionColor(): Color | Color[]
  • Returns Color | Color[]

  • set extrusionColor(value): void
  • Parameters

    • value:
          | string
          | number
          | Color
          | ColorRepresentation[]

    Returns void

  • get lastSegmentColor(): ColorRepresentation
  • Returns ColorRepresentation

  • set lastSegmentColor(value): void
  • Parameters

    • value: ColorRepresentation

    Returns void

  • get topLayerColor(): ColorRepresentation
  • Returns ColorRepresentation

  • set topLayerColor(value): void
  • Parameters

    • value: ColorRepresentation

    Returns void

Methods

  • Experimental

    Parameters

    • stream: ReadableStream<any>

    Returns Promise<void>

  • Parameters

    • gcode: string | string[]

    Returns void

  • Experimental

    Parameters

    • pathCount: number = 1

    Returns Promise<void>