{"id":15031911,"url":"https://github.com/monksc/cncsim","last_synced_at":"2025-04-09T21:23:12.115Z","repository":{"id":63055168,"uuid":"564942854","full_name":"Monksc/cncsim","owner":"Monksc","description":"Simulates gcode from a cnc router. Converts gcode to a .stl or an image in a .png file.","archived":false,"fork":false,"pushed_at":"2024-04-15T19:44:12.000Z","size":4951,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T23:15:49.662Z","etag":null,"topics":["cnc","cnc-machine","cnc-milling","cnc-programming","cnc-simulator","command-line-tool","gcode","gcode-converter","gcode-visualizer","rust","rust-lang","rust-language","simulation-modeling","simulator","stl"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Monksc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-11T21:55:35.000Z","updated_at":"2024-05-13T14:16:45.000Z","dependencies_parsed_at":"2025-02-15T21:32:33.699Z","dependency_job_id":"b5f9e266-55cb-4a80-a866-e13fee8f252c","html_url":"https://github.com/Monksc/cncsim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fcncsim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fcncsim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fcncsim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monksc%2Fcncsim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monksc","download_url":"https://codeload.github.com/Monksc/cncsim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248113054,"owners_count":21049773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cnc","cnc-machine","cnc-milling","cnc-programming","cnc-simulator","command-line-tool","gcode","gcode-converter","gcode-visualizer","rust","rust-lang","rust-language","simulation-modeling","simulator","stl"],"created_at":"2024-09-24T20:16:52.540Z","updated_at":"2025-04-09T21:23:12.086Z","avatar_url":"https://github.com/Monksc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cncsim\n\nSimulates gcode from a cnc router. Converts gcode to a .stl or an image in a .png file.\n\n# Purpose\n\nIf you want to see the output of a gcode using a cnc router without actually running it. This way should be faster as well.\n\n\n# Usage\n\nFirst you must change main.rs to get the right tools in. In the future I would like to do a .toml file for your tools.\n\n```\ncargo run -- --input path/to/file.nc --output image.png --blockwidth 10 --blockheight 10 --imgwidth 4096 --imgheight 4096 --fnvalue 100\n```\n\nNotice here that you currently still have to specify block / img size. In the future we should remove that and add in default values.\nYou also may not be able to do big gcode files. Any more than 500 lines may take a long time.\n```\ncargo run -- --input path/to/file.nc --output image.stl --blockwidth 10 --blockheight 10 --imgwidth 4096 --imgheight 4096 --fnvalue 3\n```\n\n# Examples\n\nUsed fuison 360 to create the gcode for outputfiles/fusionsign.png.\nWe used [CamCam](https://github.com/Monksc/camcam) to create the gcode for the other examples in outputfiles.\nThen to create the .stl file and .png images we used this repo cncsim.\n\nA big use case is to see the step over value and how flat the floor is. You can also check to make sure it got to every place it can.\n\nGcode below was created with [CamCam](https://github.com/Monksc/camcam) \n\n![Diamond created with camcam software](/outputfiles/camcamsign.png)\n\nThe gcode below was created with fusion 360.\n![Square created with camcam software](/outputfiles/fusionsign.png)\n\nOther software to view gcode is listed below\n\nTo view gcode path https://ncviewer.com/\n\nTo check for errors in software you can use https://vector76.github.io/gcode_tpgen/checker.html\n\n# Known Issues\n\nDue to this project not being that big currently it only cuts with G1 code and only flat lines below 0 axis. If you want to use this software elsewhere then\ncontact me by putting in a issue. I should get back within a few days. If not then you can email me or repeatly spam the issues till I respond.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonksc%2Fcncsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonksc%2Fcncsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonksc%2Fcncsim/lists"}