示例#1
0
        public void calcIntersection(TBPLine tbpline)
        {
            Point3dCollection result = new Point3dCollection();

            acPline.IntersectWith(tbpline.acPline, Intersect.OnBothOperands, new Plane(new Point3d(0, 0, 0), new Vector3d(0, 0, 1)), result, (IntPtr)0, (IntPtr)0);
            for (int i = 0; i < result.Count; i++)
            {
                Point3d p   = result[i];
                TBPoint tbp = TBPoint.getNewTBPoint(p);

                this.addIntersectPoint(tbp);
                tbpline.addIntersectPoint(tbp);
            }
        }
示例#2
0
 public TBPLineSegment(Polyline3d pl)
 {
     this.acPline = pl;
     startPoint   = TBPoint.getNewTBPoint(pl.StartPoint);
     endPoint     = TBPoint.getNewTBPoint(pl.EndPoint);
 }