Changeset 181 for trunk/VUT/GtpVisibilityPreprocessor
- Timestamp:
- 07/18/05 21:22:46 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Camera.cpp
r179 r181 19 19 20 20 21 22 // QImage image(mWidth, mHeight, 32); changed by matt 21 #if QT_VERSION < 0x040000 22 QImage image(mWidth, mHeight, 32); 23 #else 23 24 QImage image(mWidth, mHeight, QImage::Format_RGB32); 25 #endif 24 26 25 27 vector<Ray> rays; -
trunk/VUT/GtpVisibilityPreprocessor/src/KdTree.cpp
r177 r181 674 674 return NULL; 675 675 } 676 677 int 678 KdTree::FindNeighbors(KdNode *n, 679 vector<KdNode *> &neighbors, 680 bool onlyUnmailed 681 ) 682 { 683 stack<KdNode *> nodeStack; 684 685 nodeStack.push(mRoot); 686 687 AxisAlignedBox3 box = GetBox(n); 688 689 while (!nodeStack.empty()) { 690 KdNode *node = nodeStack.top(); 691 nodeStack.pop(); 692 if (node->IsLeaf()) { 693 if ( node != n && (!onlyUnmailed || !node->Mailed()) ) 694 neighbors.push_back(node); 695 } else { 696 KdInterior *interior = (KdInterior *)node; 697 if (interior->mPosition > box.Max(interior->mAxis)) 698 nodeStack.push(interior->mBack); 699 else 700 if (interior->mPosition < box.Min(interior->mAxis)) 701 nodeStack.push(interior->mFront); 702 else { 703 // random decision 704 nodeStack.push(interior->mBack); 705 nodeStack.push(interior->mFront); 706 } 707 } 708 } 709 710 return neighbors.size(); 711 } -
trunk/VUT/GtpVisibilityPreprocessor/src/Makefile
r177 r181 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (1.07a) (Qt 3.3.2) on: Sat Jul 16 12:10:5920053 # Generated by qmake (1.07a) (Qt 3.3.2) on: Mon Jul 18 20:55:14 2005 4 4 # Project: preprocessor.pro 5 5 # Template: app … … 13 13 LEX = flex 14 14 YACC = byacc 15 CFLAGS = -nologo -Zm200 -W0 -MD -O2 -GX -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG16 CXXFLAGS = -nologo -Zm200 -W0 -MD -O2 -GX -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG15 CFLAGS = -nologo -Zm200 -W0 -MDd -Zi -GX -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT 16 CXXFLAGS = -nologo -Zm200 -W0 -MDd -Zi -GX -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT 17 17 LEXFLAGS = 18 18 YACCFLAGS =-d 19 19 INCPATH = -I"..\src" -I"..\support\xerces\include" -I"..\support\zlib\include" -I"..\support\boost" -I"$(QTDIR)\include" -I"d:\gametools\svn\trunk\VUT\GtpVisibilityPreprocessor\src" -I"C:\Qt\3.3.2\mkspecs\win32-msvc" 20 20 LINK = link 21 LFLAGS = /NOLOGO delayimp.lib /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll /SUBSYSTEM:console /LIBPATH:"../support/expat/lib"/LIBPATH:"../support/xerces/lib" /LIBPATH:"$(QTDIR)\lib"21 LFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:console /LIBPATH:"../support/xerces/lib" /LIBPATH:"$(QTDIR)\lib" 22 22 LIBS = "qt-mt332.lib" "qtmain.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "imm32.lib" "winmm.lib" "wsock32.lib" "winspool.lib" "xerces-c_2.lib" "opengl32.lib" "glu32.lib" "delayimp.lib" 23 23 MOC = $(QTDIR)\bin\moc.exe … … 167 167 -$(DEL_FILE) MeshKdTree.obj 168 168 -$(DEL_FILE) Pvs.obj 169 -$(DEL_FILE) preprocessor.pdb 170 -$(DEL_FILE) preprocessor.ilk 171 -$(DEL_FILE) vc*.pdb 172 -$(DEL_FILE) vc*.idb 173 169 174 170 175 -
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r179 r181 81 81 82 82 int pvsSize = object->mKdPvs.GetSize(); 83 84 if (0 && pvsSize) { 83 84 85 if (pvsSize) { 85 86 // mail all nodes from the pvs 86 87 Intersectable::NewMail(); … … 102 103 } 103 104 104 if ( pvsSize) {105 if (0 && pvsSize) { 105 106 // mail all nodes from the pvs 106 107 Intersectable::NewMail(); -
trunk/VUT/GtpVisibilityPreprocessor/src/preprocessor.pro
r177 r181 13 13 14 14 # debuc config 15 CONFIG += console warn_off thread release15 CONFIG += console warn_off thread debug 16 16 17 17 # RELEASE CONFIG
Note: See TracChangeset
for help on using the changeset viewer.