diff options
Diffstat (limited to 'tests/regression/dumptest')
| -rw-r--r-- | tests/regression/dumptest/resize-2d-tests-expected.txt | 131 | ||||
| -rw-r--r-- | tests/regression/dumptest/resize-tests-expected.txt | 203 | 
2 files changed, 269 insertions, 65 deletions
| diff --git a/tests/regression/dumptest/resize-2d-tests-expected.txt b/tests/regression/dumptest/resize-2d-tests-expected.txt new file mode 100644 index 0000000..9d5d3ae --- /dev/null +++ b/tests/regression/dumptest/resize-2d-tests-expected.txt @@ -0,0 +1,131 @@ +	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() { +				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, 0], [0, 1, 0, 16], [0, 0, 1, 0], [0, 0, 0, 1]]) { +		resize(newsize = [15,15,0], auto = [0,0,0]) { +			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, 0], [0, 1, 0, 32], [0, 0, 1, 0], [0, 0, 0, 1]]) { +		resize(newsize = [15,15,0], auto = [0,0,0]) { +			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); +					} +				} +			} +		} +	} +	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); +						} +					} +				} +			} +		} +	} +	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); +						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]]) { +			resize(newsize = [0,15,0], auto = [1,1,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]]) { +			resize(newsize = [0,0,15], auto = [1,1,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); +						} +					} +				} +			} +		} +	} + diff --git a/tests/regression/dumptest/resize-tests-expected.txt b/tests/regression/dumptest/resize-tests-expected.txt index 4ba8925..5fbbe4a 100644 --- a/tests/regression/dumptest/resize-tests-expected.txt +++ b/tests/regression/dumptest/resize-tests-expected.txt @@ -34,65 +34,47 @@  		cube(size = [1, 1, 1], center = false);  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 10], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 5 -0 -0) { +		resize(newsize = [5,0,0], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 20], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 0 -6 -0) { +		resize(newsize = [0,6,0], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 30], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 0 -0 -7) { +		resize(newsize = [0,0,7], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 40], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 5 -6 -0) { +		resize(newsize = [5,6,0], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 60], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 0 -6 -7) { +		resize(newsize = [0,6,7], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 50], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 5 -0 -7) { +		resize(newsize = [5,0,7], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 70], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 8 -9 -0) { +		resize(newsize = [8,9,0], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 80], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 9 -0 -0) { +		resize(newsize = [9,0,0], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	}  	multmatrix([[1, 0, 0, 0], [0, 1, 0, 90], [0, 0, 1, 0], [0, 0, 0, 1]]) { -		resize(newsize = 5 -6 -7) { +		resize(newsize = [5,6,7], auto = [0,0,0]) {  			cube(size = [1, 1, 1], center = false);  		}  	} @@ -101,66 +83,157 @@  			cube(size = [1, 1, 1], center = false);  		}  		multmatrix([[1, 0, 0, 2.5], [0, 1, 0, 10.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 5 -0 -0) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +			resize(newsize = [5,0,0], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		}  		multmatrix([[1, 0, 0, 0.5], [0, 1, 0, 23], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 0 -6 -0) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +			resize(newsize = [0,6,0], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		}  		multmatrix([[1, 0, 0, 0.5], [0, 1, 0, 30.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 0 -0 -7) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +			resize(newsize = [0,0,7], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		}  		multmatrix([[1, 0, 0, 2.5], [0, 1, 0, 43], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 5 -6 -0) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +			resize(newsize = [5,6,0], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		} -		multmatrix([[1, 0, 0, 0.5], [0, 1, 0, 63], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 0 -6 -7) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +		multmatrix([[1, 0, 0, 2.5], [0, 1, 0, 50.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [5,0,7], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		} -		multmatrix([[1, 0, 0, 2.5], [0, 1, 0, 50.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 5 -0 -7) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +		multmatrix([[1, 0, 0, 0.5], [0, 1, 0, 63], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [0,6,7], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		}  		multmatrix([[1, 0, 0, 4], [0, 1, 0, 74.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 8 -9 -0) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +			resize(newsize = [8,9,0], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		}  		multmatrix([[1, 0, 0, 4.5], [0, 1, 0, 80.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 9 -0 -0) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +			resize(newsize = [9,0,0], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5);  			}  		}  		multmatrix([[1, 0, 0, 2.5], [0, 1, 0, 93], [0, 0, 1, 10], [0, 0, 0, 1]]) { -			resize(newsize = 5 -6 -7) { -				sphere($fn = 10, $fa = 12, $fs = 2, r = 0.5); +			resize(newsize = [5,6,7], auto = [0,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 0.5); +			} +		} +	} +	color([0, 0.501961, 0, 1]) { +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			cube(size = [1, 1, 1], center = false); +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 10], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [5,0,0], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 20], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,6,0], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 30], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,0,7], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 40], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [5,6,0], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 50], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [5,0,7], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 60], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [0,6,7], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 70], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [8,9,0], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 80], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [9,0,0], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 90], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [5,6,7], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +	} +	color([0.501961, 0, 0.501961, 1]) { +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 0], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			cube(size = [1, 1, 1], center = false); +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 10], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [5,0,0], auto = [1,1,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 = [6,0,0], auto = [1,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 13.5], [0, 1, 0, 33.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [7,0,0], auto = [1,0,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 1); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 40], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [6,0,0], auto = [1,0,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 50], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [7,0,7], auto = [0,1,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 13.5], [0, 1, 0, 63.5], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [7,0,0], auto = [0,1,0]) { +				sphere($fn = 8, $fa = 12, $fs = 2, r = 1); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 70], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [8,0,0], auto = [0,0,0]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 80], [0, 0, 1, 10], [0, 0, 0, 1]]) { +			resize(newsize = [9,0,0], auto = [0,0,1]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +		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]) { +				cube(size = [1, 1, 1], center = false); +			} +		} +	} +	color([1, 0.752941, 0.796078, 1]) { +		multmatrix([[1, 0, 0, 10], [0, 1, 0, 0], [0, 0, 1, -10], [0, 0, 0, 1]]) { +			resize(newsize = [4,4,4], auto = [0,0,0]) { +				resize(newsize = [5000,100,1000], auto = [0,0,0]) { +					cube(size = [1, 1, 1], center = false); +				}  			}  		}  	} | 
