Panda3D
 All Classes Functions Variables Enumerations
eggParameters.cxx
00001 // Filename: eggParameters.cxx
00002 // Created by:  drose (16Jan99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "eggParameters.h"
00016 
00017 #include <string>
00018 
00019 static EggParameters default_egg_parameters;
00020 EggParameters *egg_parameters = &default_egg_parameters;
00021 
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //     Function: EggParameters::Constructor
00025 //       Access: Public
00026 //  Description: Initializes all the parameters with default values.
00027 ////////////////////////////////////////////////////////////////////
00028 EggParameters::
00029 EggParameters() {
00030   _pos_threshold = 0.0001;
00031   _normal_threshold = 0.0001;
00032   _uv_threshold = 0.0001;
00033   _color_threshold = 1.0/256.0;
00034 
00035   _table_threshold = 0.0001;
00036 }
00037 
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: EggParameters::Copy Constructor
00041 //       Access: Public
00042 //  Description:
00043 ////////////////////////////////////////////////////////////////////
00044 EggParameters::
00045 EggParameters(const EggParameters &other) {
00046   memcpy(this, &other, sizeof(EggParameters));
00047 }
 All Classes Functions Variables Enumerations