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
20082026
-
…(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 -
…--- I've been using PythonSCAD to output a DXF which can then be used for making toolpaths: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2026-10-12 · in OpenSCAD the Programmers Solid 3D CAD Modeller -
…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…
comment by WillAdams · 2026-10-01 · in Book of Shapes – Collection of minimal, generative and customizable SVG-patterns -
…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 -
…as well as simple algorithms for OpenSCAD and ultimately, PythonSCAD for my current project: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2026-09-01 · in Has early Scratch experience led to fulfilling careers? -
…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.
comment by WillAdams · 2026-08-14 · in Show HN: LuaCAD – Parametric CAD Scripted in Lua -
…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 -
…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 -
…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 -
…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] -
…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) -
…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…
comment by WillAdams · 2026-04-07 · in Show HN: AdaShape-3D modeler for intuitive 3D printing parts / Windows 11 -
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 -
…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 -
…publishing house. For now, I've been working on: https://willadams.gitbook.io/design-into-3d and https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2026-03-02 · in How to record and retrieve anything you've ever had to look up twice -
…(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 -
…and some folks just program G-code/CAM directly --- I've been working on a tool for that myself: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2026-01-30 · in Grid: Free, local-first, browser-based 3D printing/CNC/laser slicer -
…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 -
…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 -
…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…
comment by WillAdams · 2026-01-11 · in Ask HN: What are you working on? (January 2026) -
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 -
…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 -
…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) -
…file --- programming the tool movement directly seems a better approach, so I've been working on: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2025-11-24 · in µcad: New open source programming language that can generate 2D sketches and 3D -
…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 -
…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-…
comment by WillAdams · 2025-07-05 · in A 37-year-old wanting to learn computer science -
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) -
…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 -
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 -
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? -
…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) -…
comment by WillAdams · 2025-06-11 · in Ask HN: What cool skill or project interests you, but feels out of reach? -
…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:…
comment by WillAdams · 2025-06-11 · in Ask HN: What cool skill or project interests you, but feels out of reach? -
…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 -
…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…
comment by WillAdams · 2025-05-29 · in Simple programming language with offline usable browser IDE -
…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 -
…projects --- though that latter usually with a special-purpose library I've been working on: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2025-05-16 · in Show HN: Visual flow-based programming for Erlang, inspired by Node-RED -
…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 -
…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 -
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 -
…://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 -
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:…
comment by WillAdams · 2025-03-31 · in Ask HN: What are you working on? (March 2025) -
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?
comment by WillAdams · 2025-03-28 · in Things I would have told myself before building an autorouter -
…--- 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…
comment by WillAdams · 2025-03-11 · in What makes code hard to read: Visual patterns of complexity (2023) -
…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
comment by WillAdams · 2025-02-24 · in Ask HN: What are you working on? (February 2025) -
…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 -
…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…
comment by WillAdams · 2025-01-13 · in Literate programming: Knuth is doing it wrong (2014) -
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…
comment by WillAdams · 2025-01-03 · in Ask HN: What are you going to build and ship in 2025?