diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-24 18:18:56 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-07-24 18:18:56 (GMT) |
commit | 92debc11399fd8cf856913508edaa8154d495ca4 (patch) | |
tree | 1489b14916cb487a6c456a1757044c632bbfea25 /dxfdata.cc | |
parent | fcde390416e9c3e44e1d60bf8aeeb4add62f828b (diff) |
Clifford Wolf:
Added support for twisted linear extracion
git-svn-id: http://svn.clifford.at/openscad/trunk@72 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'dxfdata.cc')
-rw-r--r-- | dxfdata.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ DxfData::DxfData(double fn, double fs, double fa, QString filename, QString laye int n = get_fragments_from_r(radius, fn, fs, fa); while (start_angle > stop_angle) stop_angle += 360.0; - n = ceil(n * 360 / (stop_angle-start_angle)); + n = ceil(n * (stop_angle-start_angle) / 360); for (int i = 0; i < n; i++) { double a1 = ((stop_angle-start_angle)*i)/n; double a2 = ((stop_angle-start_angle)*(i+1))/n; |