Yes, it looks like result is the same. Thanks !bernd wrote: ↑Thu Aug 01, 2019 8:22 pm https://github.com/FreeCAD/FreeCAD/blob ... FC.py#L551
might be simpler than the matrix one ...Code: Select all
shape.scale(1000.0) # IfcOpenShell always outputs in meters, we convert to mm, the freecad internal unit
I struggle with documentation but I suppose scale use this method which use this OCCT method.
And it is more than 10 times faster :
Code: Select all
>>> timeit.timeit("shape_scale()", number=50000, setup="from __main__ import shape_scale")
6.068135397999868
>>> timeit.timeit("shape_matrix()", number=50000, setup="from __main__ import shape_matrix")
89.69596179099972