Ejemplo n.º 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);
            }
        }