Skip to content

Commit c6a827f

Browse files
Fix units (#1587)
1 parent 995d139 commit c6a827f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cadquery/occ_impl/assembly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
cast,
1212
)
1313
from typing_extensions import Protocol
14-
from math import degrees
14+
from math import degrees, radians
1515

1616
from OCP.TDocStd import TDocStd_Document
1717
from OCP.TCollection import TCollection_ExtendedString
@@ -340,7 +340,7 @@ def toJSON(
340340
val["shape"] = data
341341
val["color"] = col_.toTuple() if col_ else color
342342
val["position"] = trans
343-
val["orientation"] = rot
343+
val["orientation"] = tuple(radians(r) for r in rot)
344344

345345
rv.append(val)
346346

0 commit comments

Comments
 (0)