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

    Class CuraMetadataParser

    Parser for Cura metadata comments

    Cura uses the following layer comment format: ;LAYER:0 ;LAYER:1 ;LAYER:2

    Hierarchy (View Summary)

    Index
    identificationPatterns: RegExp[] = ...

    Patterns that identify this slicer in gcode comments

    slicerName: "Cura" = 'Cura'

    The name of the slicer this parser handles

    • Checks if this parser can handle the given gcode based on comments

      Parameters

      • commentCommands: GCodeCommand[]

        Array of gcode commands with comments

      • maxLines: number = 200

        How many of those commands to sample before giving up

      Returns boolean

      True if this parser can handle the gcode