How update projection when transformation matrix is applied to a 3D scene?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm going to correct errors in custom shape extrusion. That is in
https://opengrok.libreoffice.org/xref/core/svx/source/customshapes/EnhancedCustomShape3d.cxx

The current solution calculates a transformation matrix aNewTransform and applies it to the scene by pScene->NbcSetTransform in #659

Later it separately calculates the rectangle which is needed as boundRect for the projection result and sets it at the scene in #763 to #768
    pScene->SetLogicRect(CalculateNewSnapRect(...))

Isn't there a different way to force a scene to calculate the projection of the changed scene and use that new rectangle?

Using
    {
        E3DModifySceneSnapRectUpdater aUpdater(pScene);
        pScene->SetTransform(aNewTransform);
    }
instead of
    pScene->NbcSetTransform(aNewTransform);
does not work.

Kind regards
Regina



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux