<div dir="ltr"><div>Hi Regina,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 5, 2021 at 10:01 AM Tomaž Vajngerl <<a href="mailto:quikee@gmail.com">quikee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Regina,<br></div><div class="gmail_quote"><br><div>I guess rendering the shape to primitives and then dumping the primitives to an xml and asserting the values should do it, however the Primitive2dXmlDump will probably need to be extended for 3D primitives. I'll try to make a test that will cover some of the rendering aspects for fontworks.  <br></div><div> </div></div></div></blockquote><div class="gmail_quote"><br></div><div class="gmail_quote">I have extended the Primitive2dXmlDump [1] so it also should be able to dump 3D primitives (and introduced Primitive3dXmlDump for that). The key here is the ScenePrimitive2D, which is the 2D "surface" on which the 3D scene is rendered to. <br></div><div class="gmail_quote"><br></div><div class="gmail_quote">With this you should be able to write tests for fontwork objects and also other 3D objects. As an example I've added testFontWorks (svx/qa/unit/svdraw.cxx). Tell me if there is something missing.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"> [1]: <a href="https://gerrit.libreoffice.org/c/core/+/124804">https://gerrit.libreoffice.org/c/core/+/124804</a>  </div><div class="gmail_quote"><br></div><div class="gmail_quote">Best regard,</div><div class="gmail_quote">Tomaž<br></div><div class="gmail_quote"><div> <br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>