Skip to content
theolundqvistPublic

About

Cut perfectly distanced holes and generate path optimized G-code

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Gears to CNC

A Unity-based tool for generating G-Code to cut precisely spaced holes in CNC-machined plates for gear assemblies. Originally built for use in educational gear puzzles, the tool features automatic route optimization to minimize total tool travel distance.

✦ Key Features

  • G-Code Generation: Automatically generates CNC-compatible G-Code for gear hole layouts.
  • Route Optimization: Integrates a modified Ant Colony Optimization algorithm to reduce toolpath length.
  • Educational Use: Designed for hands-on learning in preschool and primary schools, with Komtek Halmstad.
  • Built in Unity: Includes an intuitive interface for visualizing gear placement and toolpaths.

✦ Example Use

Gears were laser-cut from plexiglass and used in physical puzzle activities in schools. The route optimization significantly reduced the cutting distance — from 158 cm down to 64 cm.

Before Optimization After Optimization
gear5 gear4

✦ Screenshots

Main view and UI:

gear2

Additional views:

✦ Algorithm Details

The route optimization is based on Dr. James McCaffrey’s Ant Colony Optimization algorithm, adapted and extended for CNC use cases.

✦ Download

About

Cut perfectly distanced holes and generate path optimized G-code

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages