Panda3D

eggParameters.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file eggParameters.h
10 * @author drose
11 * @date 1999-01-16
12 */
13
14 #ifndef EGGPARAMETERS_H
15 #define EGGPARAMETERS_H
16
17 #include "pandabase.h"
18
19 #include "numeric_types.h"
20
21 /**
22 * The values stored in this structure are global parameters that control some
23 * aspects of the egg library. User code may adjust these parameters by
24 * meddling with the values in structure directly, or by fiddling with the
25 * pointer to completely replace the structure.
26 *
27 * However, these parameters should not be changed at any time during the
28 * processing of any egg structure: set the parameters, load an egg file,
29 * process it, and write the egg file out again before resetting the
30 * parameters again.
31 */
32 class EXPCL_PANDA_EGG EggParameters {
33 public:
34 constexpr EggParameters() = default;
35
36 // The per-component difference below which two vertices are deemed to be at
37 // the same position.
38 double _pos_threshold = 0.0001;
39
40 // The per-component difference below which two vertices are deemed to have
41 // the same normal.
42 double _normal_threshold = 0.0001;
43
44 // The per-component difference below which two vertices are deemed to have
45 // the same texture coordinates.
46 double _uv_threshold = 0.0001;
47
48 // The per-component difference below which two vertices are deemed to have
49 // the same color.
50 PN_stdfloat _color_threshold = 1.0/256.0;
51
52 // The per-component difference below which two anim table values are deemed
53 // to be equivalent.
54 double _table_threshold = 0.0001;
55 };
56
57 extern EXPCL_PANDA_EGG EggParameters *egg_parameters;
58
59 #endif
EggParameters
The values stored in this structure are global parameters that control some aspects of the egg librar...
Definition: eggParameters.h:32
numeric_types.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.