diff options
| author | Marius Kintel <marius@kintel.net> | 2011-12-26 20:20:05 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2011-12-26 20:20:05 (GMT) | 
| commit | cde24f681580f8911ac4fe29265b169a0bac5f49 (patch) | |
| tree | b426b377e367a50b406bad51a0dbb76510278102 /testdata | |
| parent | 36056e27f34a6049c18e49d5f24bfbd7cc6eabf4 (diff) | |
| parent | bc3454f369a21cd689f42f5e9ec5cb316f9ebdd5 (diff) | |
Merge branch 'master' into buildfix
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/scad/features/cylinder-tests.scad | 5 | ||||
| -rw-r--r-- | testdata/scad/misc/normal-nan.scad | 16 | 
2 files changed, 21 insertions, 0 deletions
diff --git a/testdata/scad/features/cylinder-tests.scad b/testdata/scad/features/cylinder-tests.scad index 54e88cd..71f43a6 100644 --- a/testdata/scad/features/cylinder-tests.scad +++ b/testdata/scad/features/cylinder-tests.scad @@ -12,4 +12,9 @@ translate([22,-11,0]) cylinder(h=5, r=5, r1=0, center=true);  translate([22,0,0]) cylinder(h=5, r=5, r2=0);  translate([22,11,0]) cylinder(h=15, r=5, r2=5); +// This tests for hexagonal cylinder orientation, since people +// tend to "abuse" this for captured nut slots +translate([-10,0,0]) cylinder(h=2, r=3, $fn=6); + +  // FIXME: We could test $fs, $fa, $fn as well diff --git a/testdata/scad/misc/normal-nan.scad b/testdata/scad/misc/normal-nan.scad new file mode 100644 index 0000000..1c3f6ce --- /dev/null +++ b/testdata/scad/misc/normal-nan.scad @@ -0,0 +1,16 @@ +/* +  When exporting this to STL, null polygons appear, causing +  problems normalizing normal vectors (nan output in STL files) +*/ + +$fs=0.2; + +difference() {   +  cube(8); +  +  translate([0,20,4]) rotate([90,0,0]) union() { +    translate([0,-3,14.5]) cube([5.4,6,2.4],center=true); +    translate([0,0,13.3]) rotate([0,0,30]) cylinder(r=3.115,h=2.4,$fn=6); +  } +} +  | 
