Hi,
I try to leran from the compas Docs tutorial, but got some problem.
Here is the codes I type:
from compas.geometry import Frame, Box
box = Box(Frame.worldXY(), 1, 1, 1)
jsonstring = box.to_jsonstring()
other = Box.from_jsonstring(jsonstring)
box == other
False
print(box)
Box(Frame(Point(0.000, 0.000, 0.000), Vector(1.000, 0.000, 0.000), Vector(0.000, 1.000, 0.000)), 1.0, 1.0, 1.0)
print(other)
Box(Frame(Point(0.000, 0.000, 0.000), Vector(1.000, 0.000, 0.000), Vector(0.000, 1.000, 0.000)), 1.0, 1.0, 1.0)
box1 = Box(Frame.worldXY(), 1, 1, 1)
box == box1
False
In the tutorial, the outcome is “True”, but I get “False”.
So I print the results, it seems “box” and “other” have the same values.
I don’t know what’s wrong here.
Compas version = 1.16.0
Python version = 3.10.5
VSCode
Thanks