// Box public static SpeckleBox ToSpeckle(this Box box) { var speckleBox = new SpeckleBox(box.Plane.ToSpeckle(), box.X.ToSpeckle(), box.Y.ToSpeckle(), box.Z.ToSpeckle()); speckleBox.GenerateHash(); return(speckleBox); }
public static Box ToNative(this SpeckleBox box) { return(new Box(box.BasePlane.ToNative(), box.XSize.ToNative(), box.YSize.ToNative(), box.ZSize.ToNative())); }