1 using System.Collections.Generic;
18 private readonly List<ColorPoint3D> points =
new List<ColorPoint3D>();
27 this.points.Add(point);
36 public void Write(
string fileName)
38 System.Globalization.CultureInfo customCulture = (
System.Globalization.CultureInfo)
System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
39 customCulture.NumberFormat.NumberDecimalSeparator =
".";
40 System.Threading.Thread.CurrentThread.CurrentCulture = customCulture;
41 StreamWriter streamWriter =
new StreamWriter(fileName);
45 streamWriter.WriteLine(
"{0} {1} {2}", (
float)point.
X, (
float)point.
Y, (
float)point.
Z);
double Z
Gets or sets the z.
double Y
Gets or sets the y.
double X
Gets or sets the x.
void AddPoint(ColorPoint3D point)
Adds the point.
Interface for writing points to file
void Write(string fileName)
Writes to specified file name.