- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ply/ReaderWriterPLY.cpp
r12292 r13041 5 5 * 6 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU Lesser General Public License as published by 8 * the Free Software Foundation; either version 2.1 of the License, or (at 7 * under the terms of the GNU Lesser General Public License as published by 8 * the Free Software Foundation; either version 2.1 of the License, or (at 9 9 * your option) any later version. 10 10 * 11 11 * This program is distributed in the hope that it will be useful, but 12 12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 14 14 * License for more details. 15 15 * … … 57 57 //! \brief Function which is called when any ply file is requested to load in 58 58 //! \osgDB. Load read ply file and if it successes return the osg::Node 59 //! 59 //! 60 60 /////////////////////////////////////////////////////////////////////////////// 61 61 osgDB::ReaderWriter::ReadResult ReaderWriterPLY::readNode(const std::string& filename, const osgDB::ReaderWriter::Options* options) const … … 63 63 // Get the file extension 64 64 std::string ext = osgDB::getFileExtension(filename); 65 65 66 66 // If the file extension does not support then return that file is not handled 67 67 if (!acceptsExtension(ext)) return ReadResult::FILE_NOT_HANDLED; 68 68 69 // Check whether or not file exist or not 69 // Check whether or not file exist or not 70 70 std::string fileName = osgDB::findDataFile(filename, options); 71 71 if (fileName.empty()) return ReadResult::FILE_NOT_FOUND; … … 75 75 osg::Node* node = vertexData.readPlyFile(filename.c_str()); 76 76 77 if (node) 77 if (node) 78 78 return node; 79 79
