Generation

generate functionThu, 09 Mar 2023

Write a 3D Model slicer that converts obj to gcode

const fs = require('fs'); const readline = require('readline'); const fileStream = fs.createReadStream('./test-file.slic3r'); const rl = readline.createInterface({ input: fileStream, crlfDelay: Infinity }); rl.on('line', (line) => { console.log(`Line from file: ${line}`); });

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant