示例#1
0
    def setUp(self):
        self.s = get_test_settings()
        tm = import_file(TEST_FILE_CUBE, self.s)

        lm = slice_model(tm, self.s)

        self.gcode = get_gcode_filename()
        encode(lm, self.s, self.gcode)

        print 'G-code file:', self.gcode
示例#2
0
def encode_models(lms, settings):
    gs = []
    for lm in lms:
        settings.gcode = get_gcode_filename()
        gs.append(gcoder.encode(lm, settings))
    return gs