Changeset 2701 for GTP/trunk/Lib/Vis/Preprocessing
- Timestamp:
- 05/23/08 15:39:19 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Makefile
r2700 r2701 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.2) on: pá 23. V 1 4:49:3720083 # Generated by qmake (2.00a) (Qt 4.1.2) on: pá 23. V 15:20:40 2008 4 4 # Project: preprocessor.pro 5 5 # Template: app … … 7 7 ############################################################################# 8 8 9 first: debug10 install: debug-install11 uninstall: debug-uninstall9 first: release 10 install: release-install 11 uninstall: release-uninstall 12 12 MAKEFILE = Makefile 13 13 QMAKE = qmake … … 27 27 MKDIR = mkdir 28 28 SUBTARGETS = \ 29 debug\30 release29 release \ 30 debug 31 31 32 release: $(MAKEFILE).Release FORCE 33 $(MAKE) -f $(MAKEFILE).Release 34 release-make_default: $(MAKEFILE).Release FORCE 35 $(MAKE) -f $(MAKEFILE).Release 36 release-make_first: $(MAKEFILE).Release FORCE 37 $(MAKE) -f $(MAKEFILE).Release first 38 release-all: $(MAKEFILE).Release FORCE 39 $(MAKE) -f $(MAKEFILE).Release all 40 release-clean: $(MAKEFILE).Release FORCE 41 $(MAKE) -f $(MAKEFILE).Release clean 42 release-distclean: $(MAKEFILE).Release FORCE 43 $(MAKE) -f $(MAKEFILE).Release distclean 44 release-install: $(MAKEFILE).Release FORCE 45 $(MAKE) -f $(MAKEFILE).Release install 46 release-uninstall: $(MAKEFILE).Release FORCE 47 $(MAKE) -f $(MAKEFILE).Release uninstall 32 48 debug: $(MAKEFILE).Debug FORCE 33 49 $(MAKE) -f $(MAKEFILE).Debug … … 46 62 debug-uninstall: $(MAKEFILE).Debug FORCE 47 63 $(MAKE) -f $(MAKEFILE).Debug uninstall 48 release: $(MAKEFILE).Release FORCE49 $(MAKE) -f $(MAKEFILE).Release50 release-make_default: $(MAKEFILE).Release FORCE51 $(MAKE) -f $(MAKEFILE).Release52 release-make_first: $(MAKEFILE).Release FORCE53 $(MAKE) -f $(MAKEFILE).Release first54 release-all: $(MAKEFILE).Release FORCE55 $(MAKE) -f $(MAKEFILE).Release all56 release-clean: $(MAKEFILE).Release FORCE57 $(MAKE) -f $(MAKEFILE).Release clean58 release-distclean: $(MAKEFILE).Release FORCE59 $(MAKE) -f $(MAKEFILE).Release distclean60 release-install: $(MAKEFILE).Release FORCE61 $(MAKE) -f $(MAKEFILE).Release install62 release-uninstall: $(MAKEFILE).Release FORCE63 $(MAKE) -f $(MAKEFILE).Release uninstall64 64 65 65 Makefile: preprocessor.pro C:/Qt/4.1.2/mkspecs/win32-msvc2005\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \ … … 68 68 C:\Qt\4.1.2\mkspecs\features\default_pre.prf \ 69 69 C:\Qt\4.1.2\mkspecs\features\win32\default_pre.prf \ 70 C:\Qt\4.1.2\mkspecs\features\ debug.prf \70 C:\Qt\4.1.2\mkspecs\features\release.prf \ 71 71 C:\Qt\4.1.2\mkspecs\features\debug_and_release.prf \ 72 72 C:\Qt\4.1.2\mkspecs\features\default_post.prf \ … … 89 89 C:\Qt\4.1.2\mkspecs\features\default_pre.prf: 90 90 C:\Qt\4.1.2\mkspecs\features\win32\default_pre.prf: 91 C:\Qt\4.1.2\mkspecs\features\ debug.prf:91 C:\Qt\4.1.2\mkspecs\features\release.prf: 92 92 C:\Qt\4.1.2\mkspecs\features\debug_and_release.prf: 93 93 C:\Qt\4.1.2\mkspecs\features\default_post.prf: … … 109 109 qmake_all: FORCE 110 110 111 make_default: debug-make_default release-make_default FORCE112 make_first: debug-make_first release-make_first FORCE113 all: debug-all release-all FORCE114 clean: debug-clean release-clean FORCE111 make_default: release-make_default debug-make_default FORCE 112 make_first: release-make_first debug-make_first FORCE 113 all: release-all debug-all FORCE 114 clean: release-clean debug-clean FORCE 115 115 -$(DEL_FILE) "..\bin\release"\preprocessor.exp 116 -$(DEL_FILE) "..\bin\release"\preprocessor.pdb 117 -$(DEL_FILE) "..\bin\release"\preprocessor.ilk 118 -$(DEL_FILE) vc*.pdb 119 -$(DEL_FILE) vc*.idb 120 distclean: debug-distclean release-distclean FORCE 116 distclean: release-distclean debug-distclean FORCE 121 117 -$(DEL_FILE) Makefile 122 118 119 release-mocclean: $(MAKEFILE).Release 120 $(MAKE) -f $(MAKEFILE).Release mocclean 123 121 debug-mocclean: $(MAKEFILE).Debug 124 122 $(MAKE) -f $(MAKEFILE).Debug mocclean 125 release-mocclean: $(MAKEFILE).Release 126 $(MAKE) -f $(MAKEFILE).Release mocclean 127 mocclean: debug-mocclean release-mocclean 123 mocclean: release-mocclean debug-mocclean 128 124 125 release-mocables: $(MAKEFILE).Release 126 $(MAKE) -f $(MAKEFILE).Release mocables 129 127 debug-mocables: $(MAKEFILE).Debug 130 128 $(MAKE) -f $(MAKEFILE).Debug mocables 131 release-mocables: $(MAKEFILE).Release 132 $(MAKE) -f $(MAKEFILE).Release mocables 133 mocables: debug-mocables release-mocables 129 mocables: release-mocables debug-mocables 134 130 FORCE: 135 131 132 $(MAKEFILE).Release: Makefile 136 133 $(MAKEFILE).Debug: Makefile 137 $(MAKEFILE).Release: Makefile -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2700 r2701 1053 1053 else 1054 1054 hr = reinterpret_cast<HavranRayCaster*>(mRayCaster); 1055 1056 string ktbFilename = internKdTree; 1057 int l = (int)ktbFilename.length(); 1058 ktbFilename[l-1] = 't'; 1059 ktbFilename[l-2] = 'b'; 1060 ktbFilename[l-3] = 'k'; 1061 1062 cout << "Trying to load tree from file " << ktbFilename << endl; 1063 if (hr->ImportBinTree(ktbFilename, this->mObjects)) { 1064 cout << "Loading failed - building kd-tree" << endl; 1065 hr->Build(this->mObjects); 1066 cout << "Exporting kd-tree to file " << ktbFilename << endl; 1067 hr->ExportBinTree(ktbFilename); 1068 } 1069 else 1070 cout << " done." << endl; 1055 1056 hr->Build(this->mObjects); 1071 1057 } 1058 1072 1059 #endif 1073 1060 -
GTP/trunk/Lib/Vis/Preprocessing/src/havran/ktbs.cpp
r2686 r2701 1167 1167 int axis = d->axis; 1168 1168 AxisAlignedBox3 obox; 1169 for (ObjectContainer::iterator it = d->objlist->begin(); it != endit; it++) {1169 for (ObjectContainer::iterator it = d->objlist->begin(); it != endit; ) { 1170 1170 Intersectable *obj = *it; 1171 1171 obox = obj->GetBox(); … … 1179 1179 // we simply shorten the list - this object belongs only to the right list 1180 1180 (*it) = *(endit-1); 1181 it--;1182 1181 endit--; 1182 continue; 1183 1183 } 1184 1184 else { … … 1187 1187 d->tightbox.Include(obox); 1188 1188 } 1189 it++; 1189 1190 } // for 1190 1191 } -
GTP/trunk/Lib/Vis/Preprocessing/src/preprocessor.pro
r2700 r2701 1 #CONFIG += release2 CONFIG += debug1 CONFIG += release 2 #CONFIG += debug 3 3 CONFIG += console warn_off thread mlrt qt 4 4 -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test2
r2700 r2701 4 4 5 5 #COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 6 COMMAND="../scripts/preprocessor -debug.sh -preprocessor_quit_on_finish- -preprocessor_use_gl_renderer+ -preprocessor_evaluate_filter- -samples_per_evaluation=50000000 -samples_per_pass=1000000 -total_samples=20000000 -mutation_use_pass_importance- -mutation_silhouette_search_steps=3 -preprocessor_detect_empty_viewspace+ -total_time=140"6 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish- -preprocessor_use_gl_renderer+ -preprocessor_evaluate_filter- -samples_per_evaluation=50000000 -samples_per_pass=1000000 -total_samples=20000000 -mutation_use_pass_importance- -mutation_silhouette_search_steps=3 -preprocessor_detect_empty_viewspace+ -total_time=140" 7 7 8 8 #SCENE="../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d"
Note: See TracChangeset
for help on using the changeset viewer.