public static bool IsPlanar(this IElement2D element2D, bool externalOnly = false, double tolerance = Tolerance.Distance) { return(element2D.ControlPoints(externalOnly).IsCoplanar(tolerance)); }