mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,6 +64,9 @@ class DXFLwPolyline : public DXFEntity
|
|||
// if no previous point, simply add a point
|
||||
DXFLwPolyline &AddArcCenter(Pointf const ¢er, 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue