Hacker GitHub

← All repos

WillAdams/gcodepreview

View on GitHub ↗ ★ 86 TeX

OpenPythonSCAD library for moving a tool in lines and arcs so as to model how a part would be cut using G-code or described as a DXF.

96 mentions on Hacker News by 2 people: 0 stories, 96 comments · first 2022-08-04 · latest 2026-10-26

Mentions per year 96 mentions · busiest year 2024 (40)
20082026
  1. …(and mostly wood/bamboo) A bit stalled because I've been working on: https://github.com/WillAdams/gcodepreview Though I will note that I got into small-scale and inexpensive CNC because I couldn't figure out how to fit a Bridge
    comment by WillAdams · 2026-10-26 · in Tool book of a Nuremberg knight from 1505
  2. …--- I've been using PythonSCAD to output a DXF which can then be used for making toolpaths: https://github.com/WillAdams/gcodepreview
  3. …this space is the difficulty of naming specific shapes --- worked up a list in my current project: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... (should be section 3.8.1.1 on pg. 97, not sure, since I need to push up an…
  4. …partial depth and no char): https://community.carbide3d.com/t/full-blind-box-joints-in-c... https://github.com/WillAdams/gcodepreview
    comment by WillAdams · 2026-09-06 · in Household Laser Cuts
  5. …as well as simple algorithms for OpenSCAD and ultimately, PythonSCAD for my current project: https://github.com/WillAdams/gcodepreview
  6. …the file system and write/read files? I've been doing that via PythonSCAD for my current project https://github.com/WillAdams/gcodepreview and it might be interesting to do a re-write in another language.
  7. I found it helpful in thinking about code and the approach for my current project: https://github.com/WillAdams/gcodepreview In particular, it made it seem obvious to split up the documentation between: - Overview --- readme.md - Tutorials…
    comment by WillAdams · 2026-08-01 · in Diátaxis
  8. …at a time to a project which I was able (w/ a bit of help) to get into Literate Programming form: https://github.com/WillAdams/gcodepreview/blob/main/literati...
    comment by WillAdams · 2026-07-10 · in Write code like a human will maintain it
  9. …smallDiameter, normalormirror = "Default", squaretool = 102, smallV = 390, largeV = 301): from: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... (just pushed up that file, but not any other file) The idea is that a user will…
    comment by WillAdams · 2026-05-25 · in Childhood Computing
  10. …that into Open(Python)SCAD code so as to make a generalized solution for my current project: https://github.com/WillAdams/gcodepreview
    comment by WillAdams · 2026-05-24 · in Childhood Computing
  11. …of the typography scene for a while now --- I'd love to be wrong). Ironically, my current project https://github.com/WillAdams/gcodepreview is circling back to the underpinnings of this sort of thing (I need to make a single stroke font so…
    comment by WillAdams · 2026-05-21 · in The Letter S, by Donald Knuth (1980) [pdf]
  12. …all the oxygen for free usage) and I've moved on to making my own project using Open(Python)SCAD: https://github.com/WillAdams/gcodepreview That said, there are still some folks making new software: https://news.ycombinator.com/item?id=4763…
    comment by WillAdams · 2026-04-08 · in Hobby CNC machining and resin casting (2015)
  13. …distances/lengths and modifications such as arcs and curves. I've been using Open(Python)SCAD: https://github.com/WillAdams/gcodepreview but have wished for an interactive tool which would allow programmatic usage as well (apparently…
  14. Pretty much, that's why for DXF export I rolled my own: https://github.com/WillAdams/gcodepreview/blob/main/dxfexpor... (shows a DXF w/ arcs) https://github.com/WillAdams/gcodepreview/blob/main/gcpdxf.p... (shows a .py file for making…
    comment by WillAdams · 2026-03-31 · in Build123d: A Python CAD programming library
  15. …to the ultimate conclusion and requiring that the part be designed by actually applying tooling: https://github.com/WillAdams/gcodepreview Needs a full-on re-write to make the G-code export (and import) work well, but lately I've been…
    comment by WillAdams · 2026-03-24 · in Dune3d: A parametric 3D CAD application
  16. …publishing house. For now, I've been working on: https://willadams.gitbook.io/design-into-3d and https://github.com/WillAdams/gcodepreview
  17. …books help a lot, though I've been using the new Python integrated version: https://pythonscad.org/ https://github.com/WillAdams/gcodepreview The thing which would really help me in FreeCAD would be having a graphical programming workbench…
    comment by WillAdams · 2026-02-20 · in FreeCAD
  18. …(of the code) - Reference (of the code) which seems to be working well for my current project: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre...
    comment by WillAdams · 2026-02-06 · in Wirth's Revenge
  19. …and some folks just program G-code/CAM directly --- I've been working on a tool for that myself: https://github.com/WillAdams/gcodepreview
  20. …There is a soft-fork which adds Python: https://pythonscad.org/ which I've found quite useful: https://github.com/WillAdams/gcodepreview in particular, working up a facility to write out DXFs w/ arcs
    comment by WillAdams · 2026-01-28 · in Parametric CAD in Rust
  21. …has allowed me to extend it to do things which would be quite difficult in other tools: https://github.com/WillAdams/gcodepreview
    comment by WillAdams · 2026-01-22 · in A Year of 3D Printing
  22. …model cuts for a CNC using G-code, and just added support for 3D Printing via Full-control G-code: https://github.com/WillAdams/gcodepreview Hopefully I can restore the OpenSCAD interface layer and get it working with OpenSCAD Graph…
  23. If you want arcs in a DXF (or G-code), I've been working on that in: https://github.com/WillAdams/gcodepreview
    comment by WillAdams · 2025-12-20 · in OpenSCAD is kinda neat
  24. …to a CAM program, it took some 18 minutes and generated a ~140MB G-code file, hence my working on: https://github.com/WillAdams/gcodepreview
    comment by WillAdams · 2025-12-20 · in OpenSCAD is kinda neat
  25. This is a fun sort of project --- couldn't resist knocking out an implementation for OpenPythonSCAD: https://github.com/WillAdams/gcodepreview/blob/main/tdmt.py https://github.com/WillAdams/gcodepreview/blob/main/threeDmo... (and yes, the…
    comment by WillAdams · 2025-12-08 · in Turtletoy
  26. …that many programmers do this --- heck, even I managed to (w/ a bit of help on tex.stackexchange): https://github.com/WillAdams/gcodepreview/blob/main/literati... --- if it were more complex, and wasn't so implementation-specific…
    comment by WillAdams · 2025-12-07 · in What is “literate programming”? (2024)
  27. …file --- programming the tool movement directly seems a better approach, so I've been working on: https://github.com/WillAdams/gcodepreview
  28. …specific at: https://typst.app/docs/reference/scripting I need to re-write my current project https://github.com/WillAdams/gcodepreview again --- maybe this would be a good fit? The unique feature I am taking advantage of is writing out…
    comment by WillAdams · 2025-10-24 · in Typst 0.14
  29. …adding features and improving it, so I began researching and trying to learn what I needed for: https://github.com/WillAdams/gcodepreview Been collecting lists of the books I've been using at: https://www.goodreads.com/review/list/21394355-…
  30. Still chugging away at: https://github.com/WillAdams/gcodepreview Currently finishing up a re-write which changes from using union commands (which resulted in an ever more deeply nested CSG tree) to collecting everything in a pair of lists…
    comment by WillAdams · 2025-06-30 · in Ask HN: What Are You Working On? (June 2025)
  31. …in OpenSCAD - gcodepreview.scad (gcpscad) --- OpenSCAD modules and variables as explained in: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... and it worked quite well (far better than the tiled set of three text editor…
    comment by WillAdams · 2025-06-20 · in Literate programming tool for any language
  32. This is why I use LuaLaTeX for this: https://github.com/WillAdams/gcodepreview/blob/main/literati... which allows me to have an ordinary .tex file: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... which outputs multiple .py…
    comment by WillAdams · 2025-06-20 · in Literate programming tool for any language
  33. Good point on SSL, should have used: http://literateprogramming.com/ Well, I worked up: https://github.com/WillAdams/gcodepreview/blob/main/literati... for my current project (and will use it going forward for any new ones) and:…
    comment by WillAdams · 2025-06-17 · in Is documentation like pineapple on pizza?
  34. …sure if they all fit in one project or no: - implement a single line font in my current project: https://github.com/WillAdams/gcodepreview - implement a way to convert arbitrary curves into smooth arcs (for DXFs or G2/G3 arcs for G-code) -…
  35. …in a CNC machine so as to make 3D parts using Python in OpenSCAD ( https://pythonscad.org/ ): https://github.com/WillAdams/gcodepreview That said, the only 3D CAD tool where I was able to follow the tutorial (after a fashion) was Dune 3D:…
  36. …boundaries. I had to drop into BlockSCAD to rough out an arc algorithm for my current project: https://github.com/WillAdams/gcodepreview (see the subsubsection "Arcs for toolpaths and DXFs") Jupyter Notebooks come close to allowing a…
    comment by WillAdams · 2025-06-08 · in Bill Atkinson has died
  37. …https://www.blockscad3d.com/editor/ it lets me rough out an algorithm (see the section on arcs in: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... ) interactively, seeing the result on-screen --- then once I have the rough…
  38. …variables _and_ the ability to write out files so as to make DXFs or G-code. So, I am working on: https://github.com/WillAdams/gcodepreview and have been using it for my personal projects for a while now --- hopefully I will have a…
    comment by WillAdams · 2025-05-27 · in The Hobby Computer Culture
  39. …projects --- though that latter usually with a special-purpose library I've been working on: https://github.com/WillAdams/gcodepreview
  40. …keeping a metal part 3-d millable. by modeling a part by only using subtraction based on tooling: https://github.com/WillAdams/gcodepreview you'll need: https://pythonscad.org/ but it's allowed me to do pretty much everything I've tried…
    comment by WillAdams · 2025-05-05 · in Design for 3D-Printing
  41. …for a project on the other side of the fence --- making DXF and G-code for CNC mills and routers: https://github.com/WillAdams/gcodepreview EDIT: One additional tool to note is Fullcontrolgcode Designer, which to bring things full-circle,…
    comment by WillAdams · 2025-05-04 · in Design for 3D-Printing
  42. Probably you would want to do that with G-code. I've been doing that sort of thing in: https://github.com/WillAdams/gcodepreview
    comment by WillAdams · 2025-04-12 · in Nice things with SVG
  43. …://news.ycombinator.com/item?id=23235120 It's something I've been considering for my current project: https://github.com/WillAdams/gcodepreview as I reach the limits of Literate Programming and so forth, but not convinced that the added…
    comment by WillAdams · 2025-04-07 · in Glamorous Toolkit
  44. A tool for using Python in OpenSCAD: https://pythonscad.org/ to make DXFs and G-code: https://github.com/WillAdams/gcodepreview The next big step is a house-cleaning one, need a vendor-agnostic system for numbering tools:…
  45. Yes. Give the code a try! https://github.com/WillAdams/gcodepreview If you can describe a simple part I can work it up for you and add it to the examples. EDIT: Alternately, try pyCAM, or Kiri:Moto w/ an STL?
  46. …--- read through it one chapter at a time, then re-worked the code of my current project: https://github.com/WillAdams/gcodepreview then went on to the next chapter --- about the halfway point I had the code cleaned up so well that the…
  47. …to allow writing out DXF files and G-code and modeling how G-code will cut in 3D: https://github.com/WillAdams/gcodepreview Writing it in a TeX editor using a Literate Programming system developed in the course of working on it, the PDF sho
  48. …trying to work out a toolpath problem for tapered ball nose tooling on CNC machines as a part of: https://github.com/WillAdams/gcodepreview
    comment by WillAdams · 2025-01-26 · in The Graphics Codex
  49. …https://tex.stackexchange.com/questions/722886/how-to-write-... and working up a package: https://github.com/WillAdams/gcodepreview/blob/main/literati... (which unfortunately has to be edited to match the files which it outputs, as must…
  50. Finishing up yet another re-write of my current project: https://github.com/WillAdams/gcodepreview which I hope to then wrap up in a nice front-end using: https://github.com/derkork/openscad-graph-editor (or maybe some other tool --- is…