Created attachment 176532 [details] Extruded custom shape rectangle with non-default RotationCenter Open attached document in Word and in LibreOffice. It contains an extruded rectangle in blue and a simple, not filled red rectangle. The blue rectangle should have approximately position and size of the red rectangle. Problem is, that X and Y component of property RotationCenter are in fraction of shape size. But LibreOffice uses them internally as if they are absolute. The error is not only in import/export with doc format, but with ODF too. For discussion of the problem see https://lists.freedesktop.org/archives/libreoffice/2021-November/088073.html
Created attachment 176533 [details] Extruded custom shape with non-default RotationCenter The custom shape has a RotationCenter (0 0.25 0). So the rotation center is in the middle between shape center and bottom edge of the shape. You see the position and size of the shape as handles of the snap rectangle, if you click on the custom shape. The custom shape is rotated "Tilt down" with 90deg. In the projection of the rotated shape, the lower edge should be approximately in the middle between center and bottom edge of the snap rectangle of the shape.
Created attachment 176599 [details] File with extrusion rotation center but zero rotation angle The file has attribute draw:extrusion-rotation-center="(-2000 0 0)", and the rotation angle is zero. But the existence of the attribute is already enough to shift the shape. So there is an additional error with attribute draw:extrusion-rotation-center besides the fact, that X- and Y-component are interpreted absolute. The value -2000 is chosen for LibreOffice version 7.1, which interprets X- and Y-component as absolute value. When that is corrected, the attribute value needs to be "(-0.5 0 0)" for example, which means shift rotation center left by 50% of shape width. The yellow shape in the image shows the unrotated diamond. The red square indicates the rotated diamond before extrusion.
I'm going to work on it.
Regina Henschel committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/453c5b6214654b440fe1d3e926cddfb695e17f10 tdf#145904,tdf#145956 improve extrusion of custom shapes It will be available in 7.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Regina Henschel committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/90b925307da4066cd18fcbf31b903e948fa55e82 tdf#145904,tdf#145956 improve extrusion of custom shapes It will be available in 7.3.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Regina Henschel committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/b9c159361abd79862b30412c433fb355d63299e2 tdf#145904,tdf#145956 unit test extrusion of shapes It will be available in 7.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Regina Henschel committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/e9d927b0a0ab56a7abdb7afad3c0fcc0c0c51e44 tdf#145904,tdf#145956 unit test extrusion of shapes It will be available in 7.3.0.0.beta2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.