diff options
| author | Don Bright <hugh.m.bright@gmail.com> | 2013-09-13 00:44:07 (GMT) | 
|---|---|---|
| committer | Don Bright <hugh.m.bright@gmail.com> | 2013-09-13 00:44:07 (GMT) | 
| commit | d6a57b89682ed7991744dc142e9af21d5e74cb83 (patch) | |
| tree | d9fdaca01282825ff51f0f2719f03eba6c0e1752 /tests/regression/dumptest | |
| parent | c87e9f8d6e210a387ca223f7e8cb14c77b22d8e2 (diff) | |
fix bug in 2d resize code
Diffstat (limited to 'tests/regression/dumptest')
| -rw-r--r-- | tests/regression/dumptest/resize-2d-tests-expected.csg | 50 | 
1 files changed, 50 insertions, 0 deletions
| diff --git a/tests/regression/dumptest/resize-2d-tests-expected.csg b/tests/regression/dumptest/resize-2d-tests-expected.csg index 5f8d8b5..5cd9a2e 100644 --- a/tests/regression/dumptest/resize-2d-tests-expected.csg +++ b/tests/regression/dumptest/resize-2d-tests-expected.csg @@ -173,4 +173,54 @@ group() {  			}  		}  	} +	color([0, 0, 1, 1]) { +		multmatrix([[1, 0, 0, -16], [0, 1, 0, -16], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [10,8,0], auto = [0,1,0]) { +				multmatrix([[0.5, 0, 0, 0], [0, 100, 0, 0], [0, 0, 20, 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, 0], [0, 1, 0, -16], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [8,10,15], auto = [1,1,1]) { +				multmatrix([[1000, 0, 0, 0], [0, 0.5, 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, -16], [0, 0, 1, 0], [0, 0, 0, 1]]) { +			resize(newsize = [10,8,15], auto = [0,0,0]) { +				multmatrix([[200, 0, 0, 0], [0, 200, 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); +							} +						} +					} +				} +			} +		} +	}  } | 
