Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Original Subject line:
Como generar un .gcode con programación para impresión 3D

Necesito poder generar un .gcode a partir de un STL desde algún lenguaje de programación. Para poder imprimir en Impresoras 3D.

Google translate:
I need to be able to generate a .gcode from an STL from some programming language. To be able to print on 3D printers.


What I have tried:

Creo que lo más fácil es utilizar Ultimaker Cura o otro laminador desde pyhton o cualquier lenguaje de programación, ¿alguien sabe como puedo hacerlo? ¿O dónde puedo buscar librerías de Ultimaker cura?. Cualquier cosa es de ayuda.

Gracias, Yago

Google translate:
I think the easiest is to use Ultimaker Cura or another laminator from pyhton or any programming language, does anyone know how I can do it? Or where can I find Ultimaker cura libraries? Anything is helpful.

Thanks, Iago
Posted
Updated 4-Jan-23 2:39am
v2

1 solution

Ultimaker Cura is a commercial product (and a good one, I use it myself for FDM printing), so the libraries are almost certainly Ultimaker IP and not in the public domain. To acquire them, you would have to talk directly to Ultimaker and ask them - but if they do release them, I wouldn't be at all surprised if there was a significant cost involved.

It's not trivial to generate gcode from an STL: the later is a series of low level instructions to the machine: "stop feed", "move here", "start feed", "move here", "move here", "move here", "move here", "lift this much", "move here", "move here", "move here" ... whereas STL is a list of triangles which make up the surfaces of a 3D object and has nothing to do with the actual machine instructions - hence the existence of tools like Cura!

In fact, STL files can feed different apps - Cura for FDM, and LycheeSlicer for SLA printers. The product of the latter is not gcode at all, but a series of pictures to be displayed on an LDC panel to block UV radiation for curing bits which aren't part of the model!

There are a few open source STL to gcode converters: stl to gcode open source - Google Search[^] but how good the results are I have no idea given that Cura is free with most printers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900