diff options
author | Marius Kintel <marius@kintel.net> | 2011-08-05 00:11:20 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-08-05 00:11:20 (GMT) |
commit | 80e526880a0b44361fe6793ac740a19e65df44b2 (patch) | |
tree | b2b209f24e5e8d582ea52e0d3edccb011d3b578a /src/primitives.cc | |
parent | a586a9650386abeb6588ee8216e9fb9659a8c56d (diff) |
Started on getBoundingBox functionality, refactored some vector code as part of this initiative
Diffstat (limited to 'src/primitives.cc')
-rw-r--r-- | src/primitives.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/primitives.cc b/src/primitives.cc index 204bb11..3f88c75 100644 --- a/src/primitives.cc +++ b/src/primitives.cc @@ -520,7 +520,7 @@ sphere_next_r2: p->unlink(); return NULL; } - dd.points.append(DxfData::Point(x, y)); + dd.points.append(Vector2d(x, y)); } if (this->paths.vec.size() == 0) @@ -528,7 +528,7 @@ sphere_next_r2: dd.paths.append(DxfData::Path()); for (size_t i=0; i<this->points.vec.size(); i++) { assert(i < dd.points.size()); // FIXME: Not needed, but this used to be an 'if' - DxfData::Point *p = &dd.points[i]; + Vector2d *p = &dd.points[i]; dd.paths.last().points.append(p); } if (dd.paths.last().points.size() > 0) { @@ -544,7 +544,7 @@ sphere_next_r2: for (size_t j=0; j<this->paths.vec[i]->vec.size(); j++) { int idx = this->paths.vec[i]->vec[j]->num; if (idx < dd.points.size()) { - DxfData::Point *p = &dd.points[idx]; + Vector2d *p = &dd.points[idx]; dd.paths.last().points.append(p); } } |