You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Mario Voigt 8335a271af First playing with wireframe
Added some smoothing for spheres and cylinders
3 years ago
.gitignore ignore dep files 6 years ago
Bunny-LowPoly.stl parse binary stl, merge vertices 8 years ago
LICENSE.txt license 8 years ago
Makefile split tri.h into tri.c for test purposes 5 years ago
README.md wireframe 8 years ago
camera.c restore the perspective computatoin 5 years ago
camera.h the perspective transform finally looks right 5 years ago
corners.c getoptified, made show_model an optoin 8 years ago
dodecahedron-corner.scad plate of corners for the dodecahedron 8 years ago
dodecahedron.scad switch to cylinders rather than cubes 8 years ago
faces.c getoptified 8 years ago
hiddenwire.c filter on the height as well 5 years ago
icosahedron-corners.scad corners for another platonic solid 8 years ago
mobius-maker size tweaks 8 years ago
mobius-raw.stl generated 16-element mobius for testing 8 years ago
seg.h hidden wireframe works, change v3 api a little bit 5 years ago
stl-convert stl-convert ASCII to binary 8 years ago
stl_3d.c hidden wireframe works, change v3 api a little bit 5 years ago
stl_3d.h project 3d into 3d (broken?) 8 years ago
svg.h fill/stroke style fix 5 years ago
test.c the perspective transform finally looks right 5 years ago
test1.scad hidden wireframe works, change v3 api a little bit 5 years ago
test1.stl hidden wireframe works, change v3 api a little bit 5 years ago
test2.scad test2 sphere 8 years ago
test2.stl test2 sphere 8 years ago
test3.scad test hexagon cross 8 years ago
test3.stl test hexagon cross 8 years ago
tetrahedron.scad move corners to inside of the face, rather than end-caps. 8 years ago
tri.c fix some disappearing line issues 5 years ago
tri.h hidden wireframe works, change v3 api a little bit 5 years ago
unfold.c hidden wireframe works, change v3 api a little bit 5 years ago
v3.h hidden wireframe works, change v3 api a little bit 5 years ago
wireframe.c First playing with wireframe 3 years ago

README.md

Unfolded sphere

unfold reads a binary STL file on standard input and generates a SVG that contains the triangles "folded flat" so that they can be laser cut. It will output multiple groups in the SVG file that will need to be re-arranged to fit on the laser cutter bed.

More info: https://trmm.net/Unfolding_STL

This is a work in progress -- it is not yet feature complete. Current features:

  • Collision detection works to build a non-overlapping set of triangles.

  • Coplanar triangles will be merged if possible.

  • Mountain/valley folds are marked. Dashed line means valley fold.

  • Starting face can be selected or randomly chosen; some produce better results than others.

  • stl-convert script can convert OpenSCAD ASCII STL files into binary STL files for unfold to process.

Among the features that it could use:

  • A better heuristic for finding the maximum non-overlaping set of triangles (Currently breadth-first search is used, with a slight preference for coplanar triangles)

  • Tabs for securing parts together.

  • Collapsing of very small or very thin triangles.

Wireframed dodecahedron

wireframe reads a binary STL file on standard input and generates an OpenSCAD file that has each vertex replaced with a 3D printable connector to create a large-scale version of the object.

More info: https://trmm.net/Wireframe

This is very beta! It desperately needs some command line options and some smarts in labeling the connectors, especially if the structure is not regular. Also, it does not detect intersections between beams or if the nodes are too close together.