mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
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:
parent
89ed494a57
commit
05056226ae
2 changed files with 14 additions and 0 deletions
|
|
@ -301,6 +301,17 @@ DXFLwPolyline &DXFLwPolyline::AddArcCenter(Pointf const ¢er, 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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue