Skip to content

Commit 9cf472d

Browse files
author
Chen Kasirer
committed
float to Interval when creating a RhinoBox
1 parent a084f03 commit 9cf472d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compas_rhino/conversions/_shapes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from Rhino.Geometry import Sphere as RhinoSphere
1414
from Rhino.Geometry import Cone as RhinoCone
1515
from Rhino.Geometry import Cylinder as RhinoCylinder
16+
from Rhino.Geometry import Interval
1617

1718
from ._primitives import plane_to_rhino
1819
from ._primitives import circle_to_rhino
@@ -58,7 +59,7 @@ def box_to_rhino(box):
5859
:rhino:`Rhino.Geometry.Box`
5960
6061
"""
61-
return RhinoBox(frame_to_rhino(box.frame), box.xsize, box.ysize, box.zsize)
62+
return RhinoBox(frame_to_rhino(box.frame), Interval(0., box.xsize), Interval(0., box.ysize), Interval(0., box.zsize))
6263

6364

6465
def sphere_to_compas(sphere):

0 commit comments

Comments
 (0)