// Box public Box BoxToSpeckle(RH.Box box, string units = null) { var u = units ?? ModelUnits; var speckleBox = new Box(PlaneToSpeckle(box.Plane, u), IntervalToSpeckle(box.X), IntervalToSpeckle(box.Y), IntervalToSpeckle(box.Z), u); speckleBox.area = box.Area; speckleBox.volume = box.Volume; return(speckleBox); }
public RH.Box BoxToNative(Box box) { return(new RH.Box(PlaneToNative(box.basePlane), IntervalToNative(box.xSize), IntervalToNative(box.ySize), IntervalToNative(box.zSize))); }
// Box public Box BoxToSpeckle(RH.Box box) { var speckleBox = new Box(PlaneToSpeckle(box.Plane), IntervalToSpeckle(box.X), IntervalToSpeckle(box.Y), IntervalToSpeckle(box.Z), ModelUnits); return(speckleBox); }