BasicTools.IO.GReader module

Gcode file reader

BasicTools.IO.GReader.CheckIntegrity()[source]
class BasicTools.IO.GReader.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:

UnstructuredMesh

BasicTools.IO.GReader.ReadGCode(fileName=None, string=None)[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:

UnstructuredMesh