00001 // Filename: eggParameters.cxx 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 #include "eggParameters.h" 00020 00021 #include <string> 00022 00023 static EggParameters default_egg_parameters; 00024 EggParameters *egg_parameters = &default_egg_parameters; 00025 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: EggParameters::Constructor 00029 // Access: Public 00030 // Description: Initializes all the parameters with default values. 00031 //////////////////////////////////////////////////////////////////// 00032 EggParameters:: 00033 EggParameters() { 00034 _pos_threshold = 0.0001; 00035 _normal_threshold = 0.0001; 00036 _uv_threshold = 0.0001; 00037 _color_threshold = 1.0/256.0; 00038 00039 _table_threshold = 0.0001; 00040 } 00041 00042 00043 //////////////////////////////////////////////////////////////////// 00044 // Function: EggParameters::Copy Constructor 00045 // Access: Public 00046 // Description: 00047 //////////////////////////////////////////////////////////////////// 00048 EggParameters:: 00049 EggParameters(const EggParameters &other) { 00050 memcpy(this, &other, sizeof(EggParameters)); 00051 }