static PlyElementType GetRequiredElementType(PlyFile ply, string elementTypeName) { if (!ply.ElementTypes.ContainsKey(elementTypeName)) { throw new Exception( string.Format("The input PLY file does not contain a \"{0}\" element type.", elementTypeName)); } return ply.ElementTypes[elementTypeName]; }
public PlyFile Parse(TextReader reader) { _reader = reader; _result = new PlyFile(); ReadHeader(); ReadBody(); return _result; }