'is there anyway to Generate G-Code from STL file

I am working on a project to generate G-Code for 3D Model in STL Format.

Suggest me how I can do it

Basically this generated G-Code will be used with Milling CNC.



Solution 1:[1]

You need CAM Software, a program that has an algorithm that extracts the path of the STL drawing and based in the type of your machine, generate the correct CNC commands.

There are several proprietary programs for this on the market and it really depends on your machine type and tools. Maybe this link will help you get some ideas.

If you want to develop your own CAM, I warn you that this is not a trivial job...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 dwpessoa