I have a 3D object and their data points. Data consists of 1000 points.
The following are for the data points.
public static List<MyLine> OpenProject(string _file)
{
List<MyLine> Lines = new List<MyLine>();
XmlDocument doc = new XmlDocument();
doc.LoadXml(_file);
XmlNodeList coordinates = doc.SelectNodes("/Siene/MyLine/Coordinates");
foreach (XmlNode coordinat in coordinates)
{
int x1 = Int32.Parse(coordinat["Start"].Attributes["X"].Value);
int y1 = Int32.Parse(coordinat["Start"].Attributes["Y"].Value);
int z1 = Int32.Parse(coordinat["Start"].Attributes["Z"].Value);
MyLine czg = new MyLine(x1, y1, z1);
lines.Add(czg);
}
return lines;
}
Instead of loading from an external file (doc.LoadXml(_file), the XML file must be in solution explorer and all data points must be able to read from there.
Could you say me how it can be done.
Regards,
Mark Twain