summaryrefslogtreecommitdiff
path: root/dxfdata.cc
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-21 11:25:46 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-21 11:25:46 (GMT)
commit135370d418b01ea2aab8fa20ea30b20a04f893b0 (patch)
treea663ef02b4f3df03db0e7d77e709c85b37d59a0c /dxfdata.cc
parent16de8939075496b1ed1451b3c34032c25b94b108 (diff)
Added support for aligned, ordinate, radius and diameter DIMENSION entities
git-svn-id: http://svn.clifford.at/openscad/trunk@326 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'dxfdata.cc')
-rw-r--r--dxfdata.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dxfdata.cc b/dxfdata.cc
index 747101f..0d34d3e 100644
--- a/dxfdata.cc
+++ b/dxfdata.cc
@@ -79,7 +79,7 @@ DxfData::DxfData(double fn, double fs, double fa, QString filename, QString laye
QString mode, layer, name, iddata;
int dimtype = 0;
- double coords[7][2];
+ double coords[7][2]; // Used by DIMENSION entities
QVector<double> xverts;
QVector<double> yverts;
double radius = 0, start_angle = 0, stop_angle = 0;
@@ -237,6 +237,7 @@ DxfData::DxfData(double fn, double fs, double fa, QString filename, QString laye
for (int j = 0; j < 2; j++)
this->dims.last().coords[i][j] = coords[i][j];
this->dims.last().angle = start_angle;
+ this->dims.last().length = radius;
this->dims.last().name = name;
}
else if (mode == "BLOCK") {
@@ -287,6 +288,7 @@ DxfData::DxfData(double fn, double fs, double fa, QString filename, QString laye
case 40:
// CIRCLE, ARC: radius
// ELLIPSE: minor to major ratio
+ // DIMENSION (radial, diameter): Leader length
radius = data.toDouble() * scale;
break;
case 41: // for ELLIPSE
contact: Jan Huwald // Impressum