00001 // Filename: eggParameters.h 00002 // Created by: drose (16Jan99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef EGGPARAMETERS_H 00020 #define EGGPARAMETERS_H 00021 00022 #include <pandabase.h> 00023 00024 /////////////////////////////////////////////////////////////////// 00025 // Class : EggParameters 00026 // Description : The values stored in this structure are global 00027 // parameters that control some aspects of the egg 00028 // library. User code may adjust these parameters by 00029 // meddling with the values in structure directly, or by 00030 // fiddling with the pointer to completely replace the 00031 // structure. 00032 // 00033 // However, these parameters should not be changed at 00034 // any time during the processing of any egg structure: 00035 // set the parameters, load an egg file, process it, and 00036 // write the egg file out again before resetting the 00037 // parameters again. 00038 //////////////////////////////////////////////////////////////////// 00039 class EXPCL_PANDAEGG EggParameters { 00040 public: 00041 EggParameters(); 00042 EggParameters(const EggParameters ©); 00043 00044 // The per-component difference below which two vertices are deemed 00045 // to be at the same position. 00046 double _pos_threshold; 00047 00048 // The per-component difference below which two vertices are deemed 00049 // to have the same normal. 00050 double _normal_threshold; 00051 00052 // The per-component difference below which two vertices are deemed 00053 // to have the same texture coordinates. 00054 double _uv_threshold; 00055 00056 // The per-component difference below which two vertices are deemed 00057 // to have the same color. 00058 float _color_threshold; 00059 00060 // The per-component difference below which two anim table values 00061 // are deemed to be equivalent. 00062 double _table_threshold; 00063 }; 00064 00065 extern EggParameters *egg_parameters; 00066 00067 #endif