Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 2
0
 //true if pl has already been added
 public bool contains(planeGeometry pl)
 {
     return this.plane.Contains(pl);
 }
Exemplo n.º 3
0
 //add plane pl to the list
 public void AddPlane(planeGeometry pl)
 {
     this.plane.Add(pl);
     this.segmentpoints.Add(new Point3DCollection());
     return;
 }