From 0a6eaf67151c527aa04e9aa5768debde95a65ee8 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 13 Apr 2008 19:34:10 +0000 Subject: [PATCH] remove split_at_discontinuities from LPE code, because it has been moved to 2geom. --- src/live_effects/lpe-patternalongpath.cpp | 25 ----------------------- src/live_effects/lpe-sketch.cpp | 22 +------------------- 2 files changed, 1 insertion(+), 46 deletions(-) diff --git a/src/live_effects/lpe-patternalongpath.cpp b/src/live_effects/lpe-patternalongpath.cpp index eab3dd80e..d36050a7f 100644 --- a/src/live_effects/lpe-patternalongpath.cpp +++ b/src/live_effects/lpe-patternalongpath.cpp @@ -88,31 +88,6 @@ LPEPatternAlongPath::~LPEPatternAlongPath() } - -//TODO: does this already exist in 2Geom? if not, move this there... -static -std::vector > > -split_at_discontinuities (Geom::Piecewise > const & pwsbin, double tol = .0001) -{ - using namespace Geom; - std::vector > > ret; - unsigned piece_start = 0; - for (unsigned i=0; i tol){ - Piecewise > piece; - piece.cuts.push_back(pwsbin.cuts[piece_start]); - for (unsigned j = piece_start; j > LPEPatternAlongPath::doEffect_pwd2 (Geom::Piecewise > const & pwd2_in) { diff --git a/src/live_effects/lpe-sketch.cpp b/src/live_effects/lpe-sketch.cpp index bb3fb3162..5ad9ed648 100644 --- a/src/live_effects/lpe-sketch.cpp +++ b/src/live_effects/lpe-sketch.cpp @@ -134,27 +134,7 @@ addLinearEnds (Geom::Piecewise > & m){ } */ -//TODO: does this already exist in 2Geom? if not, move this there... -std::vector > > -split_at_discontinuities (Geom::Piecewise > const & pwsbin, double tol = .0001) -{ - using namespace Geom; - std::vector > > ret; - unsigned piece_start = 0; - for (unsigned i=0; i tol){ - Piecewise > piece; - piece.cuts.push_back(pwsbin.cuts[piece_start]); - for (unsigned j = piece_start; js1]... Geom::Piecewise > -- 2.30.2