public Sphere(XmlNode xml)
 {
     this.Center  = new Vector(xml.Attributes["center"].Value);
     this.Radius  = double.Parse(xml.Attributes["radius"].Value, new CultureInfo("en-US"));
     this.Surface = Surfaces.FindSurface(xml.Attributes["surface"].Value);
 }
Exemple #2
0
 public Plane(XmlNode xml)
 {
     this.Norm    = new Vector(xml.Attributes["norm"].Value);
     this.Offset  = double.Parse(xml.Attributes["offset"].Value, new CultureInfo("en-US"));
     this.Surface = Surfaces.FindSurface(xml.Attributes["surface"].Value);
 }