gcode-preview - v3.0.0-alpha.3
    Preparing search index...

    Class BuildVolume

    Represents the build volume of a 3D printer.

    Index

    Constructors

    • Creates a new BuildVolume instance

      Parameters

      • x: number

        Width in mm

      • y: number

        Depth in mm

      • z: number

        Height in mm

      • _smallGrid: boolean
      • scene: Scene

        The Three.js scene to add the build volume to

      Returns BuildVolume

    Accessors

    Methods

    • Creates and positions the XYZ axes helper for the build volume

      Returns AxesHelper

      Configured AxesHelper instance

    • Creates a grid visualization for the build volume's base

      Parameters

      • size: number = 1
      • color: Color

      Returns Grid

      Configured Grid instance

    • Creates a group containing all visualization elements (box, grid, axes)

      Returns Group

      Group containing all build volume visualizations

    • Cleans up all disposable resources created by this build volume and removes the group from the scene.

      Returns void

    • Updates the build volume visualization in the scene. If the group doesn't exist, it creates and adds it to the scene.

      TODO: move this to a more appropriate place, like a scene manager

      Returns void