Why PERL ?
X-Ryl669 opened this issue · 1 comments
X-Ryl669 commented
Awesome idea. I was wondering why you used PERL as a programming language ?
I'd have expected Python to be a lot more easier to use and interact with slicers.
Can you describe the process a bit more so it's easier to understand what's going on ?
So far, I've understood that the process is a bit like this:
- The model is opened (OBJ or STL) and you get a list of vertices and faces
- You map the vertices to a different space (this part needs more documentation, if possible)
- You write a STL with the updated vertices position
- You ask a slicer to slice the model
- You open the output gcode and (this part I don't understand how) you get the vertices back
- You unmap the vertices to cartesian space and output the unmapped' gcode
Can you confirm ?
Spiritdude commented
Perl: slicer4rtn needs a lot of regular expressions, in Perl it's often one-liner match/if, whereas in Python takes 3 lines to do the same.
Regarding functionality, visit my xyzdims.com as I extensively described it at https://xyzdims.com/2021/02/26/3d-printing-conic-slicing-for-rotating-tilted-nozzle-rtn/ and other articles incl. other non-planar slicing methods.
- the G-code is parsed, and coordinates are remapped (not the vertices) and extrusion is calculated, thereby new G-code is generated