Example #1
0
 //add point P to plane pl
 public void AddPointToPlane(planeGeometry pl, Point3D p)
 {
     //go through all planes to find the plane
     for (int i = 0; i < this.plane.Count; i++)
     {
         //find the index of this plane
         if (pl.Equals(this.plane.ElementAt(i)))
         {
             this.segmentpoints.ElementAt(i).Add(p);
         }
     }
 }
Example #2
0
 //true if pl has already been added
 public bool contains(planeGeometry pl)
 {
     return this.plane.Contains(pl);
 }
Example #3
0
 //add plane pl to the list
 public void AddPlane(planeGeometry pl)
 {
     this.plane.Add(pl);
     this.segmentpoints.Add(new Point3DCollection());
     return;
 }