index 57bc458a945da28f879206e0b0b566866c170199..9e7b5d8ea799d0ef5031a8c890919de90bd19987 100644 (file)
Proj::TransfMat3x4 pmat = persp->tmat;
pmat.copy_tmat(tmat);
-
- groupSpecialBehavior = false;
}
LPEPerspectivePath::~LPEPerspectivePath()
void
LPEPerspectivePath::doBeforeEffect (SPLPEItem *lpeitem)
{
- if(SP_IS_GROUP(lpeitem))
- {
- groupSpecialBehavior = true;
- original_bbox(lpeitem);
- }
+ original_bbox(lpeitem, true);
}
-
Geom::Piecewise<Geom::D2<Geom::SBasis> >
LPEPerspectivePath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in)
{
D2<Piecewise<SBasis> > B = make_cuts_independant(path_a_pw);
Piecewise<SBasis> preimage[4];
- if(!groupSpecialBehavior)
- {
- boundingbox_X = bounds_fast(pwd2_in)[0];
- boundingbox_Y = bounds_fast(pwd2_in)[1];
- }
-
Geom::Point orig = Geom::Point(uses_plane_xy ? boundingbox_X.max() : boundingbox_X.min(),
boundingbox_Y.middle());
+
//Geom::Point orig = Geom::Point(bounds_X.min(), bounds_Y.middle());
//orig = Geom::Point(orig[X], sp_document_height(inkscape_active_document()) - orig[Y]);
@@ -140,7 +128,7 @@ LPEPerspectivePath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > cons
+ preimage[2] * tmat[j][2]
+ tmat[j][3];
}
- D2<Piecewise<SBasis> > result(divide(res[0],res[2], 3),
+ D2<Piecewise<SBasis> > result(divide(res[0],res[2], 3),
divide(res[1],res[2], 3));
Piecewise<D2<SBasis> > output = sectionize(result);