Commit 16bfe76a authored by Johan B. C. Engelen's avatar Johan B. C. Engelen Committed by Johan Engelen

powerstroke: apply interpolator combobox to closed paths too

(bzr r10123)
parent 0f3065a6
......@@ -346,7 +346,6 @@ LPEPowerStroke::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const &
}
// create stroke path where points (x,y) := (t, offset)
//Geom::Interpolate::CubicBezierJohan interpolator;
Geom::Interpolate::Interpolator *interpolator = Geom::Interpolate::Interpolator::create(static_cast<Geom::Interpolate::InterpolatorType>(interpolator_type.get_value()));
Geom::Path strokepath = interpolator->interpolateToPath(ts);
Geom::Path mirroredpath = strokepath.reverse() * Geom::Scale(1,-1);
......@@ -374,8 +373,9 @@ LPEPowerStroke::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const &
ts.insert(ts.begin(), last_point - Point(pwd2_in.domain().extent() ,0));
ts.push_back( first_point + Point(pwd2_in.domain().extent() ,0) );
// create stroke path where points (x,y) := (t, offset)
Geom::Interpolate::CubicBezierJohan interpolator;
Geom::Path strokepath = interpolator.interpolateToPath(ts);
Geom::Interpolate::Interpolator *interpolator = Geom::Interpolate::Interpolator::create(static_cast<Geom::Interpolate::InterpolatorType>(interpolator_type.get_value()));
Geom::Path strokepath = interpolator->interpolateToPath(ts);
delete interpolator;
// output 2 separate paths
D2<Piecewise<SBasis> > patternd2 = make_cuts_independent(strokepath.toPwSb());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment