private void GetULines2D()
{
int gridLineIndex = -1;
foreach (CurtainGridLine line in m_geometry.UGridLines)
{
gridLineIndex++;
// store the segment paths
List<GraphicsPath> segPaths = new List<GraphicsPath>();
// get the line2D and its segments
GridLine2D line2D = ConvertToLine2D(line, segPaths, gridLineIndex);
m_uGridLines2D.Add(line2D);
// convert the grid line of GridLine2D format to GraphicsPath format
GraphicsPath path = new GraphicsPath();
path.AddLine(line2D.StartPoint, line2D.EndPoint);
m_uLinePathList.Add(path);
// store the segment paths to a list
m_uSegLinePathListList.Add(segPaths);
}
}