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); }
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); }