/// <summary> /// insert curves array into datasource /// </summary> /// <param name="points">points compose the curve</param> public void InsertCurve(XYZArray points) { m_originCurves.Add(points); foreach (XYZ point in points) { XYZ temp = TransferRotate(point); UpdateRange(point, ref m_originMin, ref m_originMax); UpdateRange(temp, ref m_transferedMin, ref m_transferedMax); } }
/// <summary> /// update 3D view curve data with origin data and transfer matrix /// </summary> /// <param name="points"></param> private void SynChroData(XYZArray points) { int size = points.Size; PointF[] points2D = new PointF[size]; XYZArray transferedPoints = new XYZArray(); for (int i = 0; i < size; i++) { XYZ point = points.get_Item(i); XYZ temp = TransferMove(point); XYZ transferedPoint = TransferRotate(temp); points2D[i] = new PointF((float)transferedPoint.X, (float)transferedPoint.Y); transferedPoints.Append(ref transferedPoint); } m_transferedCurves.Add(transferedPoints); m_curves2D.Add(points2D); }