Panda3D
 All Classes Functions Variables Enumerations
eggParameters.cxx
1 // Filename: eggParameters.cxx
2 // Created by: drose (16Jan99)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "eggParameters.h"
16 
17 #include <string>
18 
19 static EggParameters default_egg_parameters;
20 EggParameters *egg_parameters = &default_egg_parameters;
21 
22 
23 ////////////////////////////////////////////////////////////////////
24 // Function: EggParameters::Constructor
25 // Access: Public
26 // Description: Initializes all the parameters with default values.
27 ////////////////////////////////////////////////////////////////////
30  _pos_threshold = 0.0001;
31  _normal_threshold = 0.0001;
32  _uv_threshold = 0.0001;
33  _color_threshold = 1.0/256.0;
34 
35  _table_threshold = 0.0001;
36 }
37 
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: EggParameters::Copy Constructor
41 // Access: Public
42 // Description:
43 ////////////////////////////////////////////////////////////////////
45 EggParameters(const EggParameters &other) {
46  memcpy(this, &other, sizeof(EggParameters));
47 }
EggParameters()
Initializes all the parameters with default values.
The values stored in this structure are global parameters that control some aspects of the egg librar...
Definition: eggParameters.h:37