d2::align::diff_stat_t: Add structures and methods for storing and sorting error...
[Ale.git] / d3 / scene.cc
blob999235f0f257b5e98dd0f0e4ff5a29c1d8004c1f
1 // Copyright 2003, 2004, 2005 David Hilvert <dhilvert@gmail.com>,
2 // <dhilvert@auricle.dyndns.org>,
3 // <dhilvert@ugcs.caltech.edu>
5 /* This file is part of the Anti-Lamenessing Engine.
7 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with the Anti-Lamenessing Engine; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "scene.h"
25 * See scene.h for details on these variables.
28 scene::lod_images *scene::al;
29 ale_pos scene::front_clip = 0;
30 int scene::input_decimation_lower = 0;
31 int scene::output_decimation_preferred = 0;
32 int scene::primary_decimation_upper = 0;
33 int scene::output_clip = 0;
34 ale_pos scene::rear_clip = 0;
35 const char *scene::load_model_name = NULL;
36 const char *scene::save_model_name = NULL;
37 const ale_real scene::nearness = 0.01;
39 scene::spatial_info_map_t scene::spatial_info_map;
41 // scene::spatial_info *scene::tracked_space = NULL;
43 unsigned long scene::total_ambiguity = 0;
44 unsigned long scene::total_pixels = 0;
45 unsigned long scene::total_divisions = 0;
46 unsigned long scene::total_tsteps = 0;
48 double scene::occ_att = 0.50;
50 int scene::normalize_weights = 1;
51 int scene::use_filter = 1;
52 const char *scene::d3chain_type = "";
54 double scene::falloff_exponent = 1;
55 double scene::tc_multiplier = 0;
56 unsigned int scene::ou_iterations = 10;
57 unsigned int scene::pairwise_ambiguity = 3;
58 const char *scene::pairwise_comparisons = "auto";
59 int scene::d3px_count;
60 double *scene::d3px_parameters;
61 double scene::encounter_threshold = 0;
62 double scene::depth_median_radius = 0;
63 double scene::diff_median_radius = 0;
64 int scene::subspace_traverse = 0;
67 * Precision discriminator
69 * For some reason, colors that should be identical are calculated differently
70 * along different computational pathways, either due to a compiler idiosyncrasy,
71 * or due to an as-of-yet undiscovered bug in the code. We use the following
72 * constant in an effort to winnow out these discrepancies, which can sometimes
73 * cause cycles in the adjustment preference function.
76 #define DISCRIMINATOR 1e-5
79 * Functions.