///
/// 求出线的交点
///
///
///
public static List CurveCrossCurvePoints(List
ls3ds,Tolerance tolerance)
{
List
crossPts = new List();
for (int i
= 0; i < ls3ds.Count - 1; i++)
{
for (int j = i + 1; j <
ls3ds.Count; j++)
{
Point3d[] ptArray =
ls3ds[i].IntersectWith(ls3ds[j],tolerance);
if (ptArray != null)
{
crossPts.AddRange(ptArray);
}
}
}
return
crossPts.Distinct().ToList();
加载中,请稍候......