diff options
Diffstat (limited to 'tests/regression/dumptest')
| -rw-r--r-- | tests/regression/dumptest/resize-2d-tests-expected.txt | 72 | ||||
| -rw-r--r-- | tests/regression/dumptest/resize-tests-expected.txt | 24 | 
2 files changed, 80 insertions, 16 deletions
| diff --git a/tests/regression/dumptest/resize-2d-tests-expected.txt b/tests/regression/dumptest/resize-2d-tests-expected.txt index 9d5d3ae..0bbdd66 100644 --- a/tests/regression/dumptest/resize-2d-tests-expected.txt +++ b/tests/regression/dumptest/resize-2d-tests-expected.txt @@ -1,3 +1,47 @@ +	color([1, 0, 0, 1]) { +		multmatrix([[1, 0, 0, -16], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +				group() { +					difference() { +						square(size = [5, 5], center = false); +						multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) { +							square(size = [1, 1], center = false); +						} +						multmatrix([[1, 0, 0, 3], [0, 1, 0, 3], [0, 0, 1, 0], [0, 0, 0, 1]]) { +							circle($fn = 10, $fa = 12, $fs = 2, r = 1); +						} +					} +				} +			} +		} +		multmatrix([[1, 0, 0, -16], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +				group() { +					difference() { +						square(size = [5, 5], center = false); +						multmatrix([[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]]) { +							square(size = [1, 1], center = false); +						} +						multmatrix([[1, 0, 0, 2], [0, 1, 0, 2], [0, 0, 1, 0], [0, 0, 0, 1]]) { +							square(size = [1, 1], center = false); +						} +					} +				} +			} +		} +		multmatrix([[1, 0, 0, -16], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +				group() { +					difference() { +						square(size = [5, 5], center = false); +						multmatrix([[1, 0, 0, 0], [0, 1, 0, 2.5], [0, 0, 1, 0], [0, 0, 0, 1]]) { +							square(size = [5, 1], center = false); +						} +					} +				} +			} +		} +	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) {  		resize(newsize = [15,15,0], auto = [0,0,0]) {  			group() { @@ -40,9 +84,9 @@  			}  		}  	} -	color([1, 0, 0, 1]) { -		multmatrix([[1, 0, 0, -16], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { -			multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +	color([0, 0.501961, 0, 1]) { +		multmatrix([[1, 0, 0, 16], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [15,0,0], auto = [1,1,1]) {  				group() {  					difference() {  						square(size = [5, 5], center = false); @@ -56,8 +100,8 @@  				}  			}  		} -		multmatrix([[1, 0, 0, -16], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) { -			multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +		multmatrix([[1, 0, 0, 16], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,15,0], auto = [1,1,1]) {  				group() {  					difference() {  						square(size = [5, 5], center = false); @@ -71,8 +115,8 @@  				}  			}  		} -		multmatrix([[1, 0, 0, -16], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) { -			multmatrix([[3, 0, 0, 0], [0, 3, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +		multmatrix([[1, 0, 0, 16], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,15,0], auto = [1,0,0]) {  				group() {  					difference() {  						square(size = [5, 5], center = false); @@ -84,9 +128,9 @@  			}  		}  	} -	color([0, 0.501961, 0, 1]) { -		multmatrix([[1, 0, 0, 16], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { -			resize(newsize = [15,0,0], auto = [1,1,1]) { +	color([1, 0.752941, 0.796078, 1]) { +		multmatrix([[1, 0, 0, 32], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,0,0], auto = [0,1,0]) {  				group() {  					difference() {  						square(size = [5, 5], center = false); @@ -100,8 +144,8 @@  				}  			}  		} -		multmatrix([[1, 0, 0, 16], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) { -			resize(newsize = [0,15,0], auto = [1,1,1]) { +		multmatrix([[1, 0, 0, 32], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,0,15], auto = [1,1,1]) {  				group() {  					difference() {  						square(size = [5, 5], center = false); @@ -115,8 +159,8 @@  				}  			}  		} -		multmatrix([[1, 0, 0, 16], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) { -			resize(newsize = [0,0,15], auto = [1,1,1]) { +		multmatrix([[1, 0, 0, 32], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,0,15], auto = [0,0,0]) {  				group() {  					difference() {  						square(size = [5, 5], center = false); diff --git a/tests/regression/dumptest/resize-tests-expected.txt b/tests/regression/dumptest/resize-tests-expected.txt index 5fbbe4a..e806250 100644 --- a/tests/regression/dumptest/resize-tests-expected.txt +++ b/tests/regression/dumptest/resize-tests-expected.txt @@ -27,7 +27,7 @@  			cube(size = [9, 1, 1], center = false);  		}  		multmatrix([[1, 0, 0, 0], [0, 1, 0, 90], [0, 0, 1, -10], [0, 0, 0, 1]]) { -			cube(size = [5, 6, 1], center = false); +			cube(size = [5, 6, 7], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { @@ -223,7 +223,7 @@  			}  		}  		multmatrix([[1, 0, 0, 10], [0, 1, 0, 90], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = [-5,0,0], auto = [0,0,0]) { +			resize(newsize = [0,0,7], auto = [1,1,0]) {  				cube(size = [1, 1, 1], center = false);  			}  		} @@ -236,5 +236,25 @@  				}  			}  		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 10], [0, 0, 1, -10], [0, 0, 0, 1]]) { +			resize(newsize = [-5,0,0], auto = [0,0,0]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 20], [0, 0, 1, -10], [0, 0, 0, 1]]) { +			resize(newsize = [-5,0,0], auto = [0,0,0]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 30], [0, 0, 1, -10], [0, 0, 0, 1]]) { +			resize(newsize = [0,0,0], auto = [0,0,0]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 40], [0, 0, 1, -10], [0, 0, 0, 1]]) { +			resize(newsize = [0,0,0], auto = [0,0,0]) { +				cube(size = [1, 1, 1], center = false); +			} +		}  	} | 
