/// <summary> /// 获取和某点的最近点 /// </summary> /// <param name="edge"></param> /// <param name="point"></param> /// <returns></returns> public static double DistaceWithPoint(this IEdge edge, Vector3 point) { var facePoint = edge.GetClosestPointOn(point.X, point.Y, point.Z); return(point.Distance(new Vector3(facePoint))); }