Exemplo n.º 1
0
 /// <summary>
 /// Adds the sphere.
 /// </summary>
 /// <param name="center">
 /// The center.
 /// </param>
 /// <param name="radius">
 /// The radius.
 /// </param>
 public void AddSphere(Point3D center, double radius)
 {
     for (int i = 0; i < this.Positions.Length; i++)
     {
         var c = new SphereConstraint(i, center, radius);
         this.Constraints.Add(c);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the sphere.
 /// </summary>
 /// <param name="center">
 /// The center.
 /// </param>
 /// <param name="radius">
 /// The radius.
 /// </param>
 public void AddSphere(Point3D center, double radius)
 {
     for (int i = 0; i < this.Positions.Length; i++)
     {
         var c = new SphereConstraint(i, center, radius);
         this.Constraints.Add(c);
     }
 }