sdfx

module
v0.0.0-...-6edcd65 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 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
bjj
cap
mcg
pcb
pcb makes SVG files for conversion to Gerber to fabricate a PC Board.
pcb makes SVG files for conversion to Gerber to fabricate a PC Board.
pixel2xl-holder
pixel2xl-holder is an angled holder for a Pixel 2XL that hangs on the side wall of a cubicle.
pixel2xl-holder is an angled holder for a Pixel 2XL that hangs on the side wall of a cubicle.
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