关于代码给一个Alignment对象创建纵断面线的问题

使用C#代码创建了出了ORD的Alignment对象,所使用的坐标点如下:

EXPoint3d point1 = new EXPoint3d(469430, 0, 3443);
EXPoint3d point2 = new EXPoint3d(472400, 0, 3443);

首先使用了CreateAlignmentByLinearElement方法创建出了Alignment对象:

// 直线段
DPoint3d startPoint = new DPoint3d(m_points[0].X, m_points[0].Y, m_points[0].Z), endPoint = new DPoint3d();
startPoint.X *= UorPerMas2;
startPoint.Y *= UorPerMas2;
startPoint.Z *= UorPerMas2;
for (int i = 1; i < m_points.Count; i++)
{
endPoint = new DPoint3d(m_points[i].X, m_points[i].Y, m_points[i].Z);
endPoint.X *= UorPerMas2;
endPoint.Y *= UorPerMas2;
endPoint.Z *= UorPerMas2;

//creates a line between each consectutive pair of points
Line line = Line.Create1(startPoint, endPoint);
lines.Add(line);
startPoint = endPoint;
}

LinearComplex complexAlign = LinearComplex.Create1(lines.ToArray(), false, false, 0.001);

Alignment al = con.GetActiveGeometricModel().CreateAlignmentByLinearElement(complexAlign, true);

然后使用了CreateProfileByProfileElement函数创建了纵断面:

var edit = al.CreateProfileByProfileElement(element, true, false);

纵断面截图:

但是,在ORD里面,我看到这两条线好像是分离的状态,如下图:

A点是平面线的起点,Z值是0,B点是纵断面线的起点,高程是3443。

请问正常情况下这两条线是不是应该要重叠在一起?

Parents Reply Children
No Data