Bazaar/DXF : added Arc with point and bulge to polyline

git-svn-id: svn://ultimatepp.org/upp/trunk@5752 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2013-02-02 15:55:39 +00:00
parent 89ed494a57
commit 05056226ae
2 changed files with 14 additions and 0 deletions

View file

@ -301,6 +301,17 @@ DXFLwPolyline &DXFLwPolyline::AddArcCenter(Pointf const &center, Pointf const &p
return *this;
}
// adds an arc with point and bulge; if bulge is null, just add a line segment
DXFLwPolyline &DXFLwPolyline::AddArc(Pointf const &p, double bulge)
{
if(!vertices.GetCount())
return AddPoints(p);
bulges.Top() = bulge;
vertices.Add(T(p));
bulges.Add(0);
return *this;
}
// close/open polyline
DXFLwPolyline &DXFLwPolyline::Close(void)
{

View file

@ -64,6 +64,9 @@ class DXFLwPolyline : public DXFEntity
// if no previous point, simply add a point
DXFLwPolyline &AddArcCenter(Pointf const &center, Pointf const &p, bool big = false);
// adds an arc with point and bulge; if bulge is null, just add a line segment
DXFLwPolyline &AddArc(Pointf const &p, double bulge);
// close/open polyline
DXFLwPolyline &Close(void);
DXFLwPolyline &Open(void);