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

Regina Henschel regina.henschel at libreoffice.org
Tue Dec 7 16:27:12 UTC 2021


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


More information about the LibreOffice mailing list