/// <summary> /// Converting Geometry2D.IdaComPoint2D to Geometry3D.IPoint3D /// </summary> /// <param name="point2D">Geometry2D.IdaComPoint2D</param> /// <returns>Geometry3D.IPoint3D</returns> public static IPoint3D ConvertTo3D(Geometry2D.IdaComPoint2D point2D) { if (point2D == null) { return(null); } return(new Point3D(point2D.X, point2D.Y, 0)); }
/// <summary> /// Converting Geometry2D.IdaComPoint2D to Geometry3D.IPoint3D swapping Y->Z values /// </summary> /// <param name="point2D">Geometry2D.IdaComPoint2D</param> /// <param name="Yvalue">Yvalue to add</param> /// <returns>Geometry3D.IPoint3D</returns> public static IPoint3D ConvertTo3D(Geometry2D.IdaComPoint2D point2D, double Yvalue) { if (point2D == null) { return(null); } return(new Point3D(point2D.X, Yvalue, point2D.Y)); }
/// <summary> /// Converts to structure System.Windows.Media.Media3D.Point3D /// </summary> /// <param name="src"></param> /// <returns></returns> public static WM.Point3D ToMediaPointXY0(this Geometry2D.IdaComPoint2D src) { return(new WM.Point3D(src.X, src.Y, 0)); }