diff --git a/CADability/GeneralCurve2D.cs b/CADability/GeneralCurve2D.cs index e6bd2f24..5b81431a 100644 --- a/CADability/GeneralCurve2D.cs +++ b/CADability/GeneralCurve2D.cs @@ -1433,13 +1433,6 @@ public virtual object ReferencedObject } #endregion -#if (DEBUG) - public void Debug(string Title) - { - System.Diagnostics.Trace.WriteLine(Title + ": (GeneralCurve2D) (" + (this as ICurve2D).StartPoint.ToString() + ") --> (" + (this as ICurve2D).EndPoint.ToString() + ")"); - } -#endif - GeoPoint2D[] I2DIntersectable.IntersectWith(I2DIntersectable other) { if (other is ICurve2D curve2D) @@ -1456,17 +1449,13 @@ GeoPoint2D[] I2DIntersectable.IntersectWith(I2DIntersectable other) return other.IntersectWith(this); } #if DEBUG - public GeoObjectList debug + public void DebugWriteInfo(string title) { - get - { - return new GeoObjectList(this.MakeGeoObject(Plane.XYPlane)); - } + System.Diagnostics.Trace.WriteLine(title + ": (GeneralCurve2D) (" + (this as ICurve2D).StartPoint.ToString() + ") --> (" + (this as ICurve2D).EndPoint.ToString() + ")"); } -#endif - #region ICndHlp2DBuddy Members - #endregion + public GeoObjectList Debug => new GeoObjectList(this.MakeGeoObject(Plane.XYPlane)); +#endif } ///