Beispiel #1
0
 /// <summary>
 /// Chuyển đổi từ kiểu dữ liệu curve đang line
 /// </summary>
 /// <param name="c">Kiểu dữ liệu Curve đang xét</param>
 /// <returns></returns>
 public static Line ConvertLine(Curve c)
 {
     return(Line.CreateBound(c.GetEndPoint(0), c.GetEndPoint(1)));
 }
Beispiel #2
0
 /// <summary>
 /// Lấy đường thẳng chiếu của một đường thẳng lên mặt phẳng
 /// </summary>
 /// <param name="plane">Mặt phẳng đang xét</param>
 /// <param name="c">Đường thẳng đang xét</param>
 /// <returns></returns>
 public static Curve GetProjectLine(Plane plane, Curve c)
 {
     return(Line.CreateBound(GetProjectPoint(plane, c.GetEndPoint(0)), GetProjectPoint(plane, c.GetEndPoint(1))));
 }