diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-02-19 20:53:20 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-02-19 20:53:20 +0000 |
| commit | a230b9d6684f01ded46fd530ba0cc74ce9696e2d (patch) | |
| tree | 2aa262efa6bf38dde79634efc3f7e5e8f580790e /src/2geom/pointwise.cpp | |
| parent | starting fillet/chamfer (diff) | |
| download | inkscape-a230b9d6684f01ded46fd530ba0cc74ce9696e2d.tar.gz inkscape-a230b9d6684f01ded46fd530ba0cc74ce9696e2d.zip | |
Basic filleting using pointwise
(bzr r13645.1.16)
Diffstat (limited to 'src/2geom/pointwise.cpp')
| -rw-r--r-- | src/2geom/pointwise.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/2geom/pointwise.cpp b/src/2geom/pointwise.cpp index 5cbccbca9..d7d5afc63 100644 --- a/src/2geom/pointwise.cpp +++ b/src/2geom/pointwise.cpp @@ -41,12 +41,17 @@ Pointwise::Pointwise(Piecewise<D2<SBasis> > pwd2, std::vector<std::pair<int,Sate Pointwise::~Pointwise(){}; std::vector<Satellite> -Pointwise::findSatellites(int A) const +Pointwise::findSatellites(int A, int B) const { std::vector<Satellite> ret; + int counter = 0; for(unsigned i = 0; i < _satellites.size(); i++){ if(_satellites[i].first == A){ + if(counter >= B && B != -1){ + return ret; + } ret.push_back(_satellites[i].second); + counter++; } } return ret; |
