Esempio n. 1
0
 /// <summary>
 /// Copies the points and triangles from a Sculptor object
 /// </summary>
 /// <param name="s">Source Sculptor</param>
 protected void CopyFrom(Sculptor s)
 {
     foreach (Point3D p in s.Points)
     {
         this.Points.Add(p);
     }
     foreach (Point3DTriplet tpl in s.Triangles)
     {
         this.Triangles.Add(tpl);
     }
 }
Esempio n. 2
0
 /// <summary>
 ///  Initializes a new instance of Sculptor.
 /// </summary>
 /// <param name="s">Source Sculptor</param>
 public Sculptor(Sculptor s)
 {
     _points = new Point3DCollection();
     CopyFrom(s);
 }