예제 #1
0
 /// <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);
     }
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
파일: GraphicsData.cs 프로젝트: AMEE/revit
        /// <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);
        }
예제 #4
0
파일: GraphicsData.cs 프로젝트: AMEE/revit
 /// <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);
     }
 }