1 /* 2 * Copyright 2006 Sony Computer Entertainment Inc. 3 * 4 * Licensed under the MIT Open Source License, for details please see license.txt or the website 5 * http://www.opensource.org/licenses/mit-license.php 6 * 7 */ 8 9 #ifndef COLLADA_CONDITIONER 10 #define COLLADA_CONDITIONER 11 12 #include <dae.h> 13 #include <dom/domConstants.h> 14 #include <dom/domCOLLADA.h> 15 16 class ColladaConditioner { 17 18 private: 19 unsigned int getMaxOffset( domInputLocalOffset_Array &input_array ); 20 void createTrianglesFromPolylist( domMesh *thisMesh, domPolylist *thisPolylist ); 21 void createTrianglesFromPolygons( domMesh *thisMesh, domPolygons *thisPolygons ); 22 23 public: 24 bool triangulate(DAE *dae); 25 bool triangulate(const char *inputFile); 26 bool stripGeometry(DAE *dae); 27 bool stripGeometry(const char *inputFile); 28 }; 29 30 #endif //COLLADA_CONDITIONER 31