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
-
I need to brush up on math for my current project: https://github.com/WillAdams/gcodepreview and found the book series: - _Make:Geometry_ https://www.goodreads.com/book/show/58059196-make - _Make:Trigonometry_…
comment by WillAdams · 2024-12-31 · in “A Course of Pure Mathematics” – G. H. Hardy (1921) [pdf] -
Failed with: https://github.com/WillAdams/gcodepreview which is probably the weirdest structure one could imagine (Literate Program as a .tex file containing Python and OpenSCAD code for https://pythonscad.org/ ) there the Python file is…
comment by WillAdams · 2024-12-27 · in Show HN: Instantly visualize any codebase as an interactive diagram -
Maybe just make a PDF and publish that to the site? I am doing that at: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... (but admittedly it's a very different project and no copyright complexities)
comment by WillAdams · 2024-12-20 · in Documented and annotated source code for Elite on the Commodore 64 -
…lines and arcs in most implementations --- so I'm approaching it thus by way of Python in OpenSCAD: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2024-12-18 · in CADing and 3D printing like a software engineer -
If you wish to look into DXFs I worked up a technique for making them at: https://github.com/WillAdams/gcodepreview/blob/main/gcpdxf.p...
comment by WillAdams · 2024-12-03 · in Nodezator is a generalist Python node editor -
…https://tex.stackexchange.com/questions/722886/how-to-write-... which allowed me to create: https://github.com/WillAdams/gcodepreview/blob/main/literati... which I've been using in: https://github.com/WillAdams/gcodepreview/blob/main/gcodep…
comment by WillAdams · 2024-11-26 · in Your docs are your infrastructure -
…from it are just polylines, no arcs --- I've been working to address that using OpenPythonSCAD at: https://github.com/WillAdams/gcodepreview LibreCAD is workable for 2D, though I only use it for file conversion. The other notable options…
comment by WillAdams · 2024-11-18 · in We are shutting down Ondsel -
…a Python-enabled version of OpenSCAD https://pythonscad.org/ in an effort to make DXFs and G-code: https://github.com/WillAdams/gcodepreview )
comment by WillAdams · 2024-11-10 · in Shaderblocks: Block-based image editing -
…is a totally different problem. I've been using a custom .sty file to do this in a native fashion: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... so that the source isn't a sea of grey comments:…
comment by WillAdams · 2024-11-05 · in Diagram as Code -
…https://pythonscad.org/ Still working through a re-write of my OpenSCAD library in Python: https://github.com/WillAdams/gcodepreview and am hopeful that a tool like to https://nodezator.com/ will make that graphically accessible (w/o going…
comment by WillAdams · 2024-11-03 · in Programming languages that blew my mind (2023) -
…and https://mruckert.userweb.mwn.de/understanding_mp3/index.html My current project is: https://github.com/WillAdams/gcodepreview which uses a LaTeX package for this which I put together with a bit of help from tex.stackexchange --- the…
comment by WillAdams · 2024-10-20 · in What docs-as-code means -
I believe that the Literate Programming tool which I managed to work up: https://github.com/WillAdams/gcodepreview/blob/main/literati... (with a bit of help from folks on tex.stackexchange.com: https://tex.stackexchange.com/questions/722886…
comment by WillAdams · 2024-10-16 · in Forscape – A Language and Editor for Scientific Computation -
…typesetting done to them; very different from something like Fortress, or indeed this Forscape [1] https://github.com/WillAdams/gcodepreview/blob/main/gcodepre...
comment by zokier · 2024-10-15 · in Forscape – A Language and Editor for Scientific Computation -
…effort in this space is: http://literateprogramming.com/ I use it in a current project using LaTeX: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2024-10-15 · in Forscape – A Language and Editor for Scientific Computation -
(Still) working on an OpenPythonSCAD library for modeling 3D cutting with a CNC router: https://github.com/WillAdams/gcodepreview Trying to re-write the whole thing in Python, but am stuck due to variable scope issues.
comment by WillAdams · 2024-09-30 · in Ask HN: What are you working on (September 2024)? -
…system which allows me to use (La)TeX w/o the comment character which docstrip mandates: https://github.com/WillAdams/gcodepreview/blob/main/literati... (it's a little clunky, since that file has to be customized for the files in a given…
comment by WillAdams · 2024-09-27 · in It's hard to write code for computers, but it's harder to write code for humans -
…in comments. CutViewer is notable for doing this, and is the example I have been following in: https://github.com/WillAdams/gcodepreview (which is quite a different project) EDIT: Note that the comment system which Cutviewer uses seems to…
comment by WillAdams · 2024-09-19 · in I Revived 3-Axis CNC Mill G-Code Simulator -
I added the ability to export to arcs/circles when writing out DXFs using PythonSCAD in the library: https://github.com/WillAdams/gcodepreview See: https://github.com/WillAdams/gcodepreview/blob/main/export.d...
comment by WillAdams · 2024-09-15 · in OpenSCAD: The Programmer's Solid 3D CAD Modeller -
…and to create not-closed/unconnected geometry, and to write out arcs rather than only polylines): https://github.com/WillAdams/gcodepreview For the current state see the latest preview of the current unit test:…
comment by WillAdams · 2024-09-15 · in OpenSCAD: The Programmer's Solid 3D CAD Modeller -
That limitation is a big part of why I've been extending it at: https://github.com/WillAdams/gcodepreview I've got it making DXFs (w/ arcs) which can then be used for 2D CAM. If you'll give me an example of a project you'd like to make…
comment by WillAdams · 2024-09-14 · in The first release candidate of FreeCAD 1.0 is out -
…gotten started on a library for the new OpenPythonSCAD, Python-enabled fork: https://pythonscad.org https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2024-09-13 · in The first release candidate of FreeCAD 1.0 is out -
…there is OpenSCAD --- I've been working on a CAM option for that, but it's early days yet: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2024-09-10 · in A 15-minute intro to hobby CNC -
…- using Literate Programming completely in lualatex for coding up the OpenPythonSCAD module: https://github.com/WillAdams/gcodepreview - in normal LaTeX (re-setting of a translation of an Old English poem) and I look forward to a future…
comment by WillAdams · 2024-09-03 · in Writing a book in the age of open source -
…an answer for: >What does an algorithm look like? I've been trying to do this sort of thing for 3D: https://github.com/WillAdams/gcodepreview/blob/main/osge_cut... but am currently working using a hacked-together Literate Programming…
comment by WillAdams · 2024-08-30 · in Glass Beads -
…--- managed to make a system for this w/ a bit of help from generous folks on tex.stackexchange: https://github.com/WillAdams/gcodepreview/blob/main/literati... https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... and as the…
comment by WillAdams · 2024-08-25 · in Ask HN: What are you working on (August 2024)? -
…version of OpenSCAD which is able to create DXF and G-code files for creating CNC projects: https://github.com/WillAdams/gcodepreview big things are reading: _Abraham Lincoln and the Structure of Reason_ by David Hirsch and Dan Van Haften…
comment by WillAdams · 2024-08-25 · in Ask HN: What are you working on (August 2024)? -
…than use Autodesk Fusion 360, I use OpenSCAD, so when I wanted my own CAM setup I began work on: https://github.com/WillAdams/gcodepreview (which was muchly boosted by: https://pythonscad.org/ ) Rather than be limited by Quark XPress and…
comment by WillAdams · 2024-08-10 · in VisiCalc – The Early Days (2003) -
…the alteration. Curious how much attention folks pay to this sort of thing --- my current project: https://github.com/WillAdams/gcodepreview is a Literate Program and in its current state just crossed over 1,600 lines of code, but I'm…
comment by WillAdams · 2024-07-29 · in Counting Lines of Code -
…that future-self really appreciates the effort past-self made to document things in book form: https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... and https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... for my…
comment by WillAdams · 2024-07-09 · in Docs as code (2017) -
…gets a nicely typeset PDF which has a hyperlinked ToC which does serve as a "structure overview": https://github.com/WillAdams/gcodepreview/blob/main/gcodepre... I agree, some facility for automatic re-organization and adjusting what is…
comment by WillAdams · 2024-07-08 · in Unit is a general purpose visual programming system -
…to use OpenSCAD Graph Editor: https://github.com/derkork/openscad-graph-editor in my own work: https://github.com/WillAdams/gcodepreview and the screen grab from there sums up the difficulties pretty well:…
comment by WillAdams · 2024-07-08 · in Unit is a general purpose visual programming system -
…Python-enabled version was made: https://pythonscad.org/ and now have a pretty much workable tool: https://github.com/WillAdams/gcodepreview (Re)wrote it using Literate Programming techniques, probably hundreds of hours (I've been at this…
comment by WillAdams · 2024-07-05 · in Ask HN: Is there any software you only made for your own use but nobody else? -
…get me in a place where I could fix things and then move on to the next task. Current effort is at: https://github.com/WillAdams/gcodepreview At some point in time I need to look into if using Lua would allow some niceties such as per-file…
comment by WillAdams · 2024-06-11 · in Is there a BNF grammar of the TeX language? (2010) -
…is to use the new Python-enabled fork: https://pythonscad.org/ so as to model how a tool cuts: https://github.com/WillAdams/gcodepreview
comment by WillAdams · 2024-06-03 · in Generate an OpenSCAD case template from a KiCAD PCB -
…but I work for that company....) Currently working on a library which makes the two work together: https://github.com/WillAdams/gcodepreview (which is currently quite primitive/basic, and even when fully developed is not likely to be used…
comment by WillAdams · 2024-05-07 · in Pyspread – Pythonic Spreadsheet -
…I've been working on a programming system to make this sort of thing a bit easier: https://github.com/WillAdams/gcodepreview and have some sketched out joints which I've not been able to make using existing CAM tools which I hope I'll be…
comment by WillAdams · 2024-04-25 · in Digital Wood Joints -
…won't result in a fork) is adding Python: https://pythonscad.org/ which I've had some success with: https://github.com/WillAdams/gcodepreview ImplicitCAD is interesting --- and the (new?) ability to open files from GitHub is _amazing_…
comment by WillAdams · 2024-04-17 · in PicoGK is a compact and robust geometry kernel for computational engineering -
…in a tool I've been working on for controlling a CNC machine/creating files for cutting on a CNC: https://github.com/WillAdams/gcodepreview (but first I have to get arcs working)
comment by WillAdams · 2024-04-10 · in Flattening Bézier Curves and Arcs -
…to arrive at a good toolchain for my own efforts: https://willadams.gitbook.io/design-into-3d and https://github.com/WillAdams/gcodepreview and at this time, the best option is looking like: https://quarto.org/ and TeXshop and probably…
comment by WillAdams · 2024-03-26 · in Two open source projects with great architecture documentation -
Interesting. I've long been frustrated by traditional CAD/CAM, so finally worked up: https://github.com/WillAdams/gcodepreview which allows me to use: http://pythonscad.org/ and: https://github.com/derkork/openscad-graph-editor to create…
comment by WillAdams · 2023-11-24 · in FullControl: Unconstrained gcode design for 3D printers -
…some moderately complex attempts, e.g.,: https://www.blockscad3d.com/community/projects/1430644 https://github.com/WillAdams/gcodepreview it always devolves to screen size being out-paced by problem complexity --- one gets something of an…
comment by WillAdams · 2023-09-29 · in Visual Node Graph with ImGui -
…I've been trying to do this from OpenSCAD (now using RapCAD) and while I sort of have it working: https://github.com/WillAdams/gcodepreview I'm not so far along that I wouldn't try something else.
comment by WillAdams · 2023-02-11 · in Show HN: DSLCad – a programming language and interpreter for building 3D models -
…modules (BOSL-2 is cited as an example), and seems really promising --- I'm going to try porting: https://github.com/WillAdams/gcodepreview to it, just so I can re-factor the code and hopefully get a better understanding of it visually.
comment by WillAdams · 2022-08-04 · in Ask HN: What relatively new project/movement are you excited about? -
…modules (BOSL-2 is cited as an example), and seems really promising --- I'm going to try porting: https://github.com/WillAdams/gcodepreview to it, just so I can re-factor the code and hopefully get a better understanding of it visually.…
comment by WillAdams · 2022-08-04 · in New visual programming environment: OpenSCAD Graph Editor