public STLLoader(string filename, STLFormat format = STLFormat.Binary) { Elements = new List<Element>(); switch (format) { case STLFormat.Binary: LoadBinary(filename); break; case STLFormat.ASCII: LoadASCII(filename); break; default: throw new ArgumentOutOfRangeException("format"); } }
public STL(string filename, Color color, STLFormat format = STLFormat.Binary) { Color = color; switch (format) { case STLFormat.ASCII: LoadASCII(filename); break; case STLFormat.Binary: LoadBinary(filename); break; default: throw new ArgumentOutOfRangeException("format"); } }
public STL(string filename, STLFormat format) { Elements = new List <Triangle>(); switch (format) { case STLFormat.ASCII: LoadASCII(filename); break; case STLFormat.Binary: LoadBinary(filename); break; default: throw new ArgumentOutOfRangeException("format"); } }