Example #1
0
 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);
 }
Example #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);
 }