Exemplo n.º 1
0
        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];
        }
Exemplo n.º 2
0
        public PlyFile Parse(TextReader reader)
        {
            _reader = reader;

            _result = new PlyFile();

            ReadHeader();
            ReadBody();

            return _result;
        }