Rotate box using xdir and ydir of basePlane

Hello,
Following this introduction : Speckle for OpenCascade (FreeCAD Part)
I’m wondering how to implement rotation using xdir and ydir of basePlane of Box.
On this project: main - Speckle Freecad Part | Speckle
The basePlanes of these two boxes show different values correctly, but they aren’t rotated as in FreeCAD.
Here is the code : speckle-freecad/main.py at 84cb81ba0766451f868838bf4b5a703ca253d8d4 · ENAC-CNPA/speckle-freecad · GitHub
Thanks

Hiya, this is actually a bug in our viewer - we don’t really use the Box class for anything so this one slipped through the cracks!

@alex will fix box conversion with basePlane vectors in the viewer, you shouldn’t need to change anything on your end.

3 Likes

Awesome thanks @clrkng. I didn’t think I would bother @alex with that one too :smiley_spockle:

1 Like

Hi @RaphaelVouilloz

No bother at all :slight_smile: Box rotation should now be in. Let us know if you any more issues with it

Cheers

1 Like

Perfect! thanks @alex

1 Like