Show HN: Constructive Solid Geometry with Python in the browser

2 arbitrandomuser 0 8/26/2025, 9:24:07 PM arbitrandomuser.github.io ↗
This is a little hobby/side project i've been working on .

Its tool for constructive solid geometry using python which runs in your browser (best viewed on desktop).

The gist of it is it runs in your browser(pyodide) you write high level python which generates the corresponding glsl for your objects signed distance function which is then rendered using webgl (raymarching). The objects can then be converted to an STL (marching cubes) and downloaded

while SDF's for csg has been done before , https://github.com/fogleman/sdf , it requires you to generate the mesh and view it in a seperate viewer . Here instead i render the sdf with a fragment shader onto a canvas.

Python is neat, a lot of people know it or can pick it up fast and i thought its the perfect language for small time 3d printing hobbyist or designers to quickly conjure something up.

P.S , i'm also looking for a job.

Comments (0)

No comments yet