summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-01-02 13:59:35 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-01-02 13:59:35 +0000
commit83fd223caa01fed6480ea713fef5f50f6b5b7875 (patch)
tree3dd3d77bb19d18470e8d711f15c89d66127bed1c /src
parentFix LP #179741 (diff)
downloadinkscape-83fd223caa01fed6480ea713fef5f50f6b5b7875.tar.gz
inkscape-83fd223caa01fed6480ea713fef5f50f6b5b7875.zip
update to latest 2geom
(bzr r4364)
Diffstat (limited to 'src')
-rw-r--r--src/2geom/d2-sbasis.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/2geom/d2-sbasis.cpp b/src/2geom/d2-sbasis.cpp
index 8cf24627e..a646e2cf4 100644
--- a/src/2geom/d2-sbasis.cpp
+++ b/src/2geom/d2-sbasis.cpp
@@ -96,43 +96,6 @@ Piecewise<D2<SBasis> > operator*(Piecewise<D2<SBasis> > const &a, Matrix const &
return result;
}
-/* Replaced by remove_short_cuts in piecewise.h
-//this recursively removes the shortest cut interval until none is shorter than tol.
-//TODO: code this in a more efficient way!
-Piecewise<D2<SBasis> > remove_short_cuts(Piecewise<D2<SBasis> > const &f, double tol){
- double min = tol;
- unsigned idx = f.size();
- for(unsigned i=0; i<f.size(); i++){
- if (min > f.cuts[i+1]-f.cuts[i]){
- min = f.cuts[i+1]-f.cuts[i];
- idx = int(i);
- }
- }
- if (idx==f.size()){
- return f;
- }
- if (f.size()==1) {
- //removing this seg would result in an empty pw<d2<sb>>...
- return f;
- }
- Piecewise<D2<SBasis> > new_f=f;
- for (int dim=0; dim<2; dim++){
- double v = Hat(f.segs.at(idx)[dim][0]);
- //TODO: what about closed curves?
- if (idx>0 && f.segs.at(idx-1).at1()==f.segs.at(idx).at0())
- new_f.segs.at(idx-1)[dim][0][1] = v;
- if (idx<f.size() && f.segs.at(idx+1).at0()==f.segs.at(idx).at1())
- new_f.segs.at(idx+1)[dim][0][0] = v;
- }
- double t = (f.cuts.at(idx)+f.cuts.at(idx+1))/2;
- new_f.cuts.at(idx+1) = t;
-
- new_f.segs.erase(new_f.segs.begin()+idx);
- new_f.cuts.erase(new_f.cuts.begin()+idx);
- return remove_short_cuts(new_f, tol);
-}
-*/
-
//if tol>0, only force continuity where the jump is smaller than tol.
Piecewise<D2<SBasis> > force_continuity(Piecewise<D2<SBasis> > const &f,
double tol,