Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/ply/vertexData.h
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ply/vertexData.h
r12292 r13041 1 /* 1 /* 2 2 vertexData.h 3 3 Copyright (c) 2007, Tobias Wolf <twolf@access.unizh.ch> 4 All rights reserved. 5 4 All rights reserved. 5 6 6 Header file of the VertexData class. 7 7 */ … … 29 29 struct PlyFile; 30 30 31 namespace ply 31 namespace ply 32 32 { 33 33 /* Holds the flat data and offers routines to read, scale and sort it. */ … … 38 38 VertexData(); 39 39 40 40 41 41 // Reads ply file and convert in to osg::Node and returns the same 42 42 osg::Node* readPlyFile( const char* file, const bool ignoreColors = false ); 43 43 44 44 // to set the flag for using inverted face 45 45 void useInvertedFaces() { _invertFaces = true; } 46 46 47 47 private: 48 48 … … 60 60 // Function which reads all the vertices and colors if color info is 61 61 // given and also if the user wants that information 62 void readVertices( PlyFile* file, const int nVertices, 62 void readVertices( PlyFile* file, const int nVertices, 63 63 const int vertexFields ); 64 64 … … 70 70 // otherwise per triangle means per face 71 71 void _calculateNormals( const bool vertexNormals = true ); 72 72 73 73 bool _invertFaces; 74 74
