关于使用ProfileElement.Create1函数构建纵断面线报错的问题

目前在使用ProfileElement.Create1为一个Alignment添加纵断面线的时候发现了一个问题。

ProfileElement.Create1在某些参数的情况下会导致ORD异常崩溃,这个函数有三个参数:

public static ProfileElement Create1(double startStation, double endStation, DPoint3d[] tSZPoint);

会导致ORD崩溃的参数组合:

ProfileElement Create1(0, 2970, points);

points的值为:

{<DPoint3d xyz="594,100,0"/>}
{<DPoint3d xyz="1188,100,0"/>}
{<DPoint3d xyz="1782,100,0"/>}
{<DPoint3d xyz="2376,100,0"/>}

经过调试,我发现将points里面每个点的y值进行一些变化就可以让函数正常运行:

ProfileElement.Create1(0, 2970, points);

points的值为:

{<DPoint3d xyz="594,100,0"/>}
{<DPoint3d xyz="1188,101,0"/>}
{<DPoint3d xyz="1782,102,0"/>}
{<DPoint3d xyz="2376,103,0"/>}

所以这意味着Create1的第三个参数DPoint3d[] tSZPoint中的点的高程不能完全一样?

Parents Reply Children