/// <summary> /// Computes height and width of a curve loop with respect to the projection plane. /// </summary> /// <param name="curveLoop">The curve loop.</param> /// <param name="plane">The projection plane.</param> /// <param name="height">The height.</param> /// <param name="width">The width.</param> /// <returns>True if success, false if fail.</returns> public static bool ComputeHeightWidthOfCurveLoop(CurveLoop curveLoop, Plane plane, out double height, out double width) { height = 0.0; width = 0.0; Plane localPlane = plane; if (localPlane == null) { try { localPlane = curveLoop.GetPlane(); } catch { return false; } } if (curveLoop.IsRectangular(localPlane)) { height = curveLoop.GetRectangularHeight(localPlane); width = curveLoop.GetRectangularWidth(localPlane); return true; } else return false; }