sdfx

module
v0.0.0-...-90a34fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: MIT

README

Go Report Card GoDoc

sdfx

A simple CAD package written in Go (https://golang.org/)

  • Objects are modelled with 2d and 3d signed distance functions (SDFs).
  • Objects are defined with Go code.
  • Objects are rendered to an STL/3MF file to be viewed and/or 3d printed.

How To

  1. See the examples.
  2. Write some Go code to define your own object.
  3. Build and run the Go code.
  4. Preview the output in an 3d file viewer (e.g. http://www.meshlab.net/)
  5. Print the STL/3MF file if you like it enough.

SDF Viewer Go or SDFX-UI allow faster development iterations, replacing steps 3 and 4 until the final build.

Why?

  • SDFs make CSG easy.
  • As a language Golang > OpenSCAD.
  • SDFs can easily do filleting and chamfering (hard to do with OpenSCAD).
  • SDFs are hackable to try out oddball ideas.

Development

wheel core_box cylinder_head msquare axoloti text gyroid icosahedron cc16a cc16b cc18b cc18c gear camshaft geneva nutsandbolts extrude1 extrude2 bezier1 bezier2 voronoi

Directories

Path Synopsis
examples
3dp_nutbolt command
angle command
arrow command
axochord command
axoloti command
beehive command
benchmark command
bezier command
birdhouse command
bjj command
bolt_container command
bucky command
camshaft command
cap command
carburetor command
challenge command
cylinder_head command
dc2test command
delta command
devo command
draincover command
drone command
dust_collection command
eurorack command
extrusion command
fidget command
finial command
flask command
gas_cap command
gears command
geneva command
gridfinity command
gyroid command
hole_patterns command
holes command
hollowing_stl command
hpe command
inlet_hood command
joko command
keycap command
loadcell command
maestro command
maixgo command
mcg command
mesh_test command
midget command
monkey_hat command
msquare command
nordic command
nutcover command
nutsandbolts command
offset_box command
opengate command
panel_box command
phone command
pico_cnc command
pillar_holder command
pipe_connectors command
pool command
pottery_wheel command
radio command
ringnut_tool command
rpi command
servo command
simple_stl command
spiral command
sprue command
square_flange command
tabbox command
tacho_bracket command
tapers command
test command
text command
voronoi command
dc
vec
p2
v2
v2i
v3
v3i

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL