0

我需要使用视野库在哪个表面下。下面的代码无法正常工作。

public static Point3D[] GetPolygon(List<ICurve> trimmingContourList, Point3D[] vertices)
{
    ArrayList polygonResult = new ArrayList();
    CompositeCurve compCurve;
    int index = 0;
    for (int i = 0; i < trimmingContourList.Count; i++)
    {
        compCurve = trimmingContourList[i] as CompositeCurve;
        if (compCurve != null)
        {
            int j;
            for (j = 0; j < compCurve.CurveList.Count; j++)
            {
                polygonResult.Add(vertices[index]);
                index++;
            }
            if (j > 0)
            {
                polygonResult.Add(vertices[index - j]);
            }
        }
    }
    return polygonResult.ToArray(typeof(Point3D)) as Point3D[];
}
4

0 回答 0