Added expected test results for dumptest

stl_dim
Marius Kintel 2010-07-07 00:53:15 +02:00
parent 9a8d81a626
commit f61ae3f515
50 changed files with 274 additions and 0 deletions

View File

@ -0,0 +1,37 @@
group() {
minkowski(convexity = 0);
glide(path = undef, convexity = 0);
subdiv(level = 1, convexity = 0);
group();
group();
group();
intersection();
group();
union();
difference();
intersection();
linear_extrude(file = "", cache = "0.0", layer = "", height = 100, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
linear_extrude(file = "", cache = "0.0", layer = "", height = 100, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
rotate_extrude(file = "", cache = "0.0", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
rotate_extrude(file = "", cache = "0.0", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
import_stl(file = "", cache = "0.0", convexity = 1);
import_off(file = "", cache = "0.0", convexity = 1);
import_dxf(file = "", cache = "0.0", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
group();
cube(size = [1, 1, 1], center = false);
sphere($fn = 0, $fa = 12, $fs = 1, r = 1);
cylinder($fn = 0, $fa = 12, $fs = 1, h = 1, r1 = 1, r2 = 1, center = false);
polyhedron(points = undef, triangles = undef, convexity = 1);
square(size = [1, 1], center = false);
circle($fn = 0, $fa = 12, $fs = 1, r = 1);
polygon(points = undef, paths = undef, convexity = 1);
projection(cut = false, convexity = 0);
render(convexity = 1);
surface(file = "", center = false);
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
multmatrix([[-1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
}

View File

@ -0,0 +1,3 @@
group() {
group();
}

View File

@ -0,0 +1 @@
group();

View File

@ -0,0 +1,3 @@
group() {
circle($fn = 0, $fa = 12, $fs = 1, r = 1);
}

View File

@ -0,0 +1,3 @@
group() {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
}

View File

@ -0,0 +1,3 @@
group() {
cube(size = [1, 1, 1], center = false);
}

View File

@ -0,0 +1,3 @@
group() {
cylinder($fn = 0, $fa = 12, $fs = 1, h = 1, r1 = 1, r2 = 1, center = false);
}

View File

@ -0,0 +1,3 @@
group() {
difference();
}

View File

@ -0,0 +1,6 @@
group() {
difference() {
sphere($fn = 0, $fa = 12, $fs = 1, r = 3);
cube(size = [3, 3, 8], center = true);
}
}

View File

@ -0,0 +1,10 @@
group() {
group();
group();
group();
group();
group();
group();
group();
group();
}

View File

@ -0,0 +1,3 @@
group() {
linear_extrude(file = "", cache = "0.0", layer = "", height = 100, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}

View File

@ -0,0 +1,3 @@
group() {
rotate_extrude(file = "", cache = "0.0", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}

View File

@ -0,0 +1,3 @@
group() {
group();
}

View File

@ -0,0 +1,3 @@
group() {
group();
}

View File

@ -0,0 +1,3 @@
group() {
glide(path = undef, convexity = 0);
}

View File

@ -0,0 +1,3 @@
group() {
group();
}

View File

@ -0,0 +1,3 @@
group() {
group();
}

View File

@ -0,0 +1,3 @@
group() {
import_dxf(file = "", cache = "0.0", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}

View File

@ -0,0 +1,3 @@
group() {
import_off(file = "", cache = "0.0", convexity = 1);
}

View File

@ -0,0 +1,3 @@
group() {
import_stl(file = "", cache = "0.0", convexity = 1);
}

View File

@ -0,0 +1,3 @@
group() {
import_stl(file = "/Users/kintel/code/metalab/checkout/OpenSCAD/openscad-visitor/testdata/scad/import.stl", cache = "4c337cc1.2506", convexity = 1);
}

View File

@ -0,0 +1,3 @@
group() {
intersection();
}

View File

@ -0,0 +1,6 @@
group() {
intersection() {
sphere($fn = 0, $fa = 12, $fs = 1, r = 3);
cube(size = [3, 3, 8], center = true);
}
}

View File

@ -0,0 +1,3 @@
group() {
intersection();
}

View File

@ -0,0 +1,3 @@
group() {
linear_extrude(file = "", cache = "0.0", layer = "", height = 100, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}

View File

@ -0,0 +1,30 @@
group() {
linear_extrude(file = "", cache = "0.0", layer = "", height = 10, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
square(size = [10, 10], center = false);
}
multmatrix([[1, 0, 0, 19], [0, 1, 0, 5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(file = "", cache = "0.0", layer = "", height = 10, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
circle($fn = 0, $fa = 12, $fs = 1, r = 5);
}
}
multmatrix([[1, 0, 0, 31.5], [0, 1, 0, 2.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(file = "", cache = "0.0", layer = "", height = 10, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
polygon(points = [[-5, -2.5], [5, -2.5], [0, 2.5]], paths = undef, convexity = 1);
}
}
multmatrix([[1, 0, 0, 0], [0, 1, 0, -12], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(file = "", cache = "0.0", layer = "", height = 20, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, twist = 45, slices = 3, $fn = 0, $fa = 12, $fs = 1) {
square(size = [10, 10], center = false);
}
}
multmatrix([[1, 0, 0, 19], [0, 1, 0, -7], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(file = "", cache = "0.0", layer = "", height = 20, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, twist = 90, slices = 7, $fn = 0, $fa = 12, $fs = 1) {
circle($fn = 0, $fa = 12, $fs = 1, r = 5);
}
}
multmatrix([[1, 0, 0, 31.5], [0, 1, 0, -9.5], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(file = "", cache = "0.0", layer = "", height = 20, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, twist = 180, slices = 15, $fn = 0, $fa = 12, $fs = 1) {
polygon(points = [[-5, -2.5], [5, -2.5], [0, 2.5]], paths = undef, convexity = 1);
}
}
}

View File

@ -0,0 +1,3 @@
group() {
minkowski(convexity = 0);
}

View File

@ -0,0 +1,3 @@
group() {
multmatrix([[-1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
}

View File

@ -0,0 +1,3 @@
group() {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
}

View File

@ -0,0 +1,6 @@
group() {
linear_extrude(file = "", cache = "0.0", layer = "", height = 100, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
import_dxf(file = "/Users/kintel/code/metalab/checkout/OpenSCAD/openscad-visitor/testdata/scad/null-polygons.dxf", cache = "4c337cc1.3124", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}
linear_extrude(file = "/Users/kintel/code/metalab/checkout/OpenSCAD/openscad-visitor/testdata/scad/null-polygons.dxf", cache = "4c337cc1.3124", layer = "", height = 100, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}

View File

@ -0,0 +1,3 @@
group() {
polygon(points = undef, paths = undef, convexity = 1);
}

View File

@ -0,0 +1,3 @@
group() {
polyhedron(points = [[0, -10, 60], [0, 10, 60], [0, 10, 0], [0, -10, 0], [60, -10, 60], [60, 10, 60], [10, -10, 50], [10, 10, 50], [10, 10, 30], [10, -10, 30], [30, -10, 50], [30, 10, 50]], triangles = [[0, 2, 3], [0, 1, 2], [0, 4, 5], [0, 5, 1], [5, 4, 2], [2, 4, 3], [6, 8, 9], [6, 7, 8], [6, 10, 11], [6, 11, 7], [10, 8, 11], [10, 9, 8], [0, 3, 9], [9, 0, 6], [10, 6, 0], [0, 4, 10], [3, 9, 10], [3, 10, 4], [1, 7, 11], [1, 11, 5], [1, 7, 8], [1, 8, 2], [2, 8, 11], [2, 11, 5]], convexity = 1);
}

View File

@ -0,0 +1,3 @@
group() {
polyhedron(points = undef, triangles = undef, convexity = 1);
}

View File

@ -0,0 +1,17 @@
group() {
multmatrix([[0.809017, -0.587785, 0, 0], [0.587785, 0.809017, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
union() {
multmatrix([[1, 0, 0, 1], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
polygon(points = [[18.7661, -2.97225], [16.5303, -3.96857], [18.475, -4.43546]], paths = undef, convexity = 1);
polygon(points = [[18.7661, -2.97225], [16.7907, -2.65939], [16.5303, -3.96857]], paths = undef, convexity = 1);
polygon(points = [[19, 0], [17, 0], [16.7907, -2.65939]], paths = undef, convexity = 1);
polygon(points = [[19, 0], [16.7907, -2.65939], [18.7661, -2.97225]], paths = undef, convexity = 1);
polygon(points = [[19, 0], [17, 0], [16.7907, 2.65939]], paths = undef, convexity = 1);
polygon(points = [[19, 0], [16.7907, 2.65939], [18.7661, 2.97225]], paths = undef, convexity = 1);
polygon(points = [[18.7661, 2.97225], [16.7907, 2.65939], [16.5303, 3.96857]], paths = undef, convexity = 1);
polygon(points = [[18.7661, 2.97225], [16.5303, 3.96857], [18.475, 4.43546]], paths = undef, convexity = 1);
}
circle($fn = 0, $fa = 12, $fs = 1, r = 20);
}
}
}

View File

@ -0,0 +1,3 @@
group() {
projection(cut = false, convexity = 0);
}

View File

@ -0,0 +1,25 @@
group() {
linear_extrude(file = "", cache = "0.0", layer = "", height = 20, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
projection(cut = false, convexity = 0) {
sphere($fn = 0, $fa = 12, $fs = 1, r = 10);
}
}
multmatrix([[1, 0, 0, 22], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(file = "", cache = "0.0", layer = "", height = 20, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
projection(cut = true, convexity = 0) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 9], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 1, r = 10);
}
}
}
}
multmatrix([[1, 0, 0, 44], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
linear_extrude(file = "", cache = "0.0", layer = "", height = 20, origin = [ 0 0 ], scale = 1, center = false, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
projection(cut = true, convexity = 0) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 7], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 1, r = 10);
}
}
}
}
}

View File

@ -0,0 +1,3 @@
group() {
render(convexity = 1);
}

View File

@ -0,0 +1,3 @@
group() {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
}

View File

@ -0,0 +1,3 @@
group() {
rotate_extrude(file = "", cache = "0.0", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}

View File

@ -0,0 +1,7 @@
group() {
rotate_extrude(file = "", cache = "0.0", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1) {
multmatrix([[1, 0, 0, 20], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
circle($fn = 0, $fa = 12, $fs = 1, r = 10);
}
}
}

View File

@ -0,0 +1,3 @@
group() {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
}

View File

@ -0,0 +1,3 @@
group() {
sphere($fn = 0, $fa = 12, $fs = 1, r = 1);
}

View File

@ -0,0 +1,12 @@
group() {
sphere($fn = 0, $fa = 12, $fs = 1, r = 5);
multmatrix([[1, 0, 0, 0], [0, 1, 0, 12], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 5, $fs = 0.5, r = 5);
}
multmatrix([[1, 0, 0, 12], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 1, r = 6);
}
multmatrix([[1, 0, 0, 12], [0, 1, 0, 12], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 5, $fa = 12, $fs = 1, r = 6);
}
}

View File

@ -0,0 +1,3 @@
group() {
square(size = [1, 1], center = false);
}

View File

@ -0,0 +1,3 @@
group() {
subdiv(level = 1, convexity = 0);
}

View File

@ -0,0 +1,3 @@
group() {
surface(file = "", center = false);
}

View File

@ -0,0 +1,3 @@
group() {
surface(file = "/Users/kintel/code/metalab/checkout/OpenSCAD/openscad-visitor/testdata/scad/surface.dat", center = false);
}

View File

@ -0,0 +1,3 @@
group() {
import_dxf(file = "/Users/kintel/code/metalab/checkout/OpenSCAD/openscad-visitor/testdata/scad/transform-insert.dxf", cache = "4c337cc1.4329", layer = "", origin = [ 0 0 ], scale = 1, convexity = 1, $fn = 0, $fa = 12, $fs = 1);
}

View File

@ -0,0 +1,3 @@
group() {
multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]);
}

View File

@ -0,0 +1,3 @@
group() {
union();
}