Skip to content

Commit

Permalink
Working SVG export with offset to distinguish the triangles
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoVernay committed Aug 29, 2016
1 parent 82dbfe4 commit 735225d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# scad-projects
My OpenSCAD experimentations, 2D and 3D shapes.

OpenSCAD is a very useful app to create 2D and 3D shapes from textual definitions. You can then export images, SVG for printing or 3D formats for 3D printers.

## Flexaedre "HyperQBS"

Comments are mostly in french in this one.
I made 2 versions: one simple in 2D.

The 3D version is more experimental. I tried to (un)fold the shape reproducing real paper movements. While the concept is interesting, it requires more computations. I did it with one triangle, not sure I will continue for the others ...

Donc bref, 2 versions du flexahedre: une simple en 2D. Une experimentale construite en reproduisant le depliage en 3D (bien qu'intéressante conceptuellement ca demande trop de calcul).

8 changes: 4 additions & 4 deletions flexaedre-2D.scad
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ color ("Silver") {
}

// Optionnel (pour coller l'intérieur)
color ("LightGrey") {

color ("LightGrey") offset(delta=-1) {
translate([a,0,0])
rotate(180-Aa-Ca)
triangle_isocele(b, c);

rotate(-Ba-Ca-Aa)
rotate(-Ba-Ca-Aa)
triangle_isocele(a, c);

rotate(-Ba)
rotate(-Ba)
translate([b,0,0])
rotate( -(90 +2*Ca -180) )
triangle_isocele(b, c);
Expand Down
12 changes: 12 additions & 0 deletions flexaedre-2D.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 735225d

Please sign in to comment.