Modified tests for #304

felipesanches-svg
Marius Kintel 2013-05-25 13:11:09 -04:00
parent 3baefed148
commit 794b80ffcf
14 changed files with 111 additions and 14 deletions

View File

@ -3,3 +3,8 @@ difference() {
%cylinder(h=30, r=6, center=true);
}
%if (true) cube([25,6,3], center=true);
%translate([0,-9,0]) difference() {
color("green") cube([10,4,10], center=true);
color("red") translate([0,-2,0]) sphere(3);
}

View File

@ -1,10 +1,31 @@
difference() {
sphere(r=10);
%#cylinder(h=30, r=6, center=true);
%#if (true) cube([6,25,3], center=true);
%#if (true) cube([25,6,3], center=true);
}
translate([13,0,0]) difference() {
sphere(r=10);
#%cylinder(h=30, r=6, center=true);
#%if (true) cube([6,25,3], center=true);
%#translate([0,-9,0]) difference() {
color("green") cube([10,4,10], center=true);
color("red") translate([0,-2,0]) sphere(3);
}
%translate([13,0,0]){
difference() {
sphere(r=10);
cylinder(h=30, r=6, center=true);
if (true) cube([25,6,3], center=true);
}
#translate([0,-9,0]) difference() {
color("green") cube([10,4,10], center=true);
color("red") translate([0,-2,0]) sphere(3);
}
}
#translate([26,0,0]){
difference() {
sphere(r=10);
cylinder(h=30, r=6, center=true);
if (true) cube([25,6,3], center=true);
}
%translate([0,-9,0]) difference() {
color("green") cube([10,4,10], center=true);
color("red") translate([0,-2,0]) sphere(3);
}
}

View File

@ -3,3 +3,8 @@ difference() {
#cylinder(h=30, r=6, center=true);
}
#if (true) cube([25,6,3], center=true);
#translate([0,-9,0]) difference() {
color("green") cube([10,4,10], center=true);
color("red") translate([0,-2,0]) sphere(3);
}

View File

@ -833,10 +833,7 @@ disable_tests(cgalpngtest_child-background
cgalpngtest_testcolornames
openscad-cgalpng_child-background
openscad-cgalpng_highlight-and-background-modifier
openscad-cgalpng_testcolornames
throwntogethertest_child-background
throwntogethertest_highlight-and-background-modifier
throwntogethertest_testcolornames)
openscad-cgalpng_testcolornames)
# Test config handling

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -5,4 +5,16 @@
%group() {
cube(size = [25, 6, 3], center = true);
}
%multmatrix([[1, 0, 0, 0], [0, 1, 0, -9], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
color([0, 0.501961, 0, 1]) {
cube(size = [10, 4, 10], center = true);
}
color([1, 0, 0, 1]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, -2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 2, r = 3);
}
}
}
}

View File

@ -2,15 +2,60 @@
sphere($fn = 0, $fa = 12, $fs = 2, r = 10);
%cylinder($fn = 0, $fa = 12, $fs = 2, h = 30, r1 = 6, r2 = 6, center = true);
%group() {
cube(size = [6, 25, 3], center = true);
cube(size = [25, 6, 3], center = true);
}
}
multmatrix([[1, 0, 0, 13], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
%multmatrix([[1, 0, 0, 0], [0, 1, 0, -9], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
color([0, 0.501961, 0, 1]) {
cube(size = [10, 4, 10], center = true);
}
color([1, 0, 0, 1]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, -2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 2, r = 3);
}
}
}
}
%multmatrix([[1, 0, 0, 13], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
sphere($fn = 0, $fa = 12, $fs = 2, r = 10);
%cylinder($fn = 0, $fa = 12, $fs = 2, h = 30, r1 = 6, r2 = 6, center = true);
%group() {
cube(size = [6, 25, 3], center = true);
cylinder($fn = 0, $fa = 12, $fs = 2, h = 30, r1 = 6, r2 = 6, center = true);
group() {
cube(size = [25, 6, 3], center = true);
}
}
multmatrix([[1, 0, 0, 0], [0, 1, 0, -9], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
color([0, 0.501961, 0, 1]) {
cube(size = [10, 4, 10], center = true);
}
color([1, 0, 0, 1]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, -2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 2, r = 3);
}
}
}
}
}
multmatrix([[1, 0, 0, 26], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
sphere($fn = 0, $fa = 12, $fs = 2, r = 10);
cylinder($fn = 0, $fa = 12, $fs = 2, h = 30, r1 = 6, r2 = 6, center = true);
group() {
cube(size = [25, 6, 3], center = true);
}
}
%multmatrix([[1, 0, 0, 0], [0, 1, 0, -9], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
color([0, 0.501961, 0, 1]) {
cube(size = [10, 4, 10], center = true);
}
color([1, 0, 0, 1]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, -2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 2, r = 3);
}
}
}
}
}

View File

@ -5,4 +5,16 @@
group() {
cube(size = [25, 6, 3], center = true);
}
multmatrix([[1, 0, 0, 0], [0, 1, 0, -9], [0, 0, 1, 0], [0, 0, 0, 1]]) {
difference() {
color([0, 0.501961, 0, 1]) {
cube(size = [10, 4, 10], center = true);
}
color([1, 0, 0, 1]) {
multmatrix([[1, 0, 0, 0], [0, 1, 0, -2], [0, 0, 1, 0], [0, 0, 0, 1]]) {
sphere($fn = 0, $fa = 12, $fs = 2, r = 3);
}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 18 KiB