Muscat.IO.GReader module

Gcode file reader

CheckIntegrity()[source]
class GReader[source]

Bases: ReaderBase

Gcode Reader class

Read()[source]

Function that performs the reading of an Gcode file

Returns:

output unstructured mesh object containing reading result

Return type:

Mesh

ReadGCode(fileName: str = '', string: str = '')[source]

Function API for reading a Gcode mesh file

Parameters:
  • fileName (str, optional) – name of the file to be read, by default None

  • string (str, optional) – data to be read as a string instead of a file, by default None

Returns:

output unstructured mesh object containing reading result

Return type:

Mesh