GeometryGym.Ifc.IfcCartesianPoint.ParseXml C# (CSharp) Méthode

ParseXml() private méthode

private ParseXml ( XmlElement xml ) : void
xml XmlElement
Résultat void
		internal override void ParseXml(XmlElement xml)
		{
			base.ParseXml(xml);
			if (xml.HasAttribute("Coordinates"))
			{
				string[] coords = xml.Attributes["Coordinates"].Value.Split(" ".ToArray());
				if (coords.Length > 0)
				{
					mCoordinateX = double.Parse(coords[0]);
					if (coords.Length > 1)
					{
						mCoordinateY = double.Parse(coords[1]);
						if (coords.Length > 2 && !string.IsNullOrEmpty(coords[2]))
							mCoordinateZ = double.Parse(coords[2]);
						else
							mCoordinateZ = double.NaN;
					}
				}
			}
		}
		internal override void SetXML(XmlElement xml, BaseClassIfc host, HashSet<int> processed)