- Timestamp:
- 01/22/07 16:59:09 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.cpp
r2003 r2014 767 767 if (!node->IsLeaf()) 768 768 { 769 KdInterior *in = dynamic_cast<KdInterior *>(node);769 KdInterior *in = (KdInterior *)node; 770 770 position = in->mPosition; 771 771 axis = in->mAxis; … … 812 812 { 813 813 // compute intersection with all objects in this leaf 814 KdLeaf *leaf = dynamic_cast<KdLeaf *>(node);814 KdLeaf *leaf = (KdLeaf *)node; 815 815 816 816 // add view cell to intersections -
GTP/trunk/Lib/Vis/Preprocessing/src/Makefile
r2013 r2014 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.2) on: po 22. I 16: 06:2920073 # Generated by qmake (2.00a) (Qt 4.1.2) on: po 22. I 16:16:03 2007 4 4 # Project: preprocessor.pro 5 5 # Template: app -
GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.cpp
r2013 r2014 235 235 int hits = 0; 236 236 237 237 238 #if DEBUG_RAYCAST 238 239 static int id=0; … … 291 292 292 293 if (!pruneInvalidRays || hitA.mObject) { 294 #if DEBUG_RAYCAST 295 Debug<<"PR2a"<<flush; 296 #endif 297 293 298 VssRay *vssRay = mVssRayPool.Alloc(); 294 cerr<<vssRay<<endl; 299 300 #if DEBUG_RAYCAST 301 Debug<<"PR2b"<<flush; 302 #endif 295 303 *vssRay = VssRay( 296 304 !castDoubleRay ? simpleRay.mOrigin : clipB, … … 301 309 simpleRay.mPdf 302 310 ); 311 #if DEBUG_RAYCAST 312 Debug<<"PR2c"<<flush; 313 #endif 303 314 304 315 if (validA) … … 320 331 { 321 332 VssRay *vssRay = mVssRayPool.Alloc(); 322 cerr<<vssRay<<endl;323 333 324 334 *vssRay = VssRay( -
GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h
r2013 r2014 5 5 #include <string> 6 6 #include "Vector3.h" 7 #include "VssRay.h" 7 8 8 9 using namespace std; … … 68 69 // pool of vss rays to be used in one pass of the sampling 69 70 struct VssRayPool { 70 VssRayPool():mRays(), mIndex(0) {} 71 71 VssRayPool():mRays(NULL), mIndex(0) {} 72 ~VssRayPool() { 73 if (mRays) 74 delete mRays; 75 } 76 72 77 void Reserve(const int number) { 73 mRays.reserve(number); 78 if (mRays) 79 delete mRays; 80 mRays = new VssRay[number]; 74 81 } 82 75 83 void Clear() { 76 84 mIndex = 0; 77 85 } 78 86 VssRay *Alloc() { 79 VssRay *result = &mRays[mIndex]; 80 mIndex++; 81 return result; 87 return mRays + mIndex++; 82 88 } 83 vector<VssRay> mRays; 89 90 VssRay *mRays; 84 91 int mIndex; 85 92 }; -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2004 r2014 25 25 #include "SceneGraph.h" 26 26 27 #include "PerfTimer.h" 27 28 28 29 … … 2366 2367 return 0.0f; 2367 2368 2368 ViewCellContainer viewCells; 2369 2369 static ViewCellContainer viewCells; 2370 2371 2370 2372 static Ray hray; 2371 2373 hray.Init(ray); … … 2383 2385 ViewCell::NewMail(); 2384 2386 2387 viewCells.clear(); 2388 2385 2389 // traverse the view space subdivision 2386 2390 CastLineSegment(origin, termination, viewCells); -
GTP/trunk/Lib/Vis/Preprocessing/src/VssRay.h
r1989 r2014 93 93 KdNode *mOriginNode; 94 94 95 95 VssRay() {} 96 96 97 VssRay( 97 98 const Vector3 &origin, -
GTP/trunk/Lib/Vis/Preprocessing/src/preprocessor.pro
r1989 r2014 25 25 unix:INCLUDEPATH += ../support/src/xerces-c-src_2_7_0/include 26 26 27 INCLUDEPATH += ../src ../src/ QtInterface $$NONGTP/Xerces/xerces/include $$NONGTP/Zlib/include $$NONGTP/Boost $$NONGTP/Devil/include27 INCLUDEPATH += ../src ../src/Timer ../src/QtInterface $$NONGTP/Xerces/xerces/include $$NONGTP/Zlib/include $$NONGTP/Boost $$NONGTP/Devil/include 28 28 29 29 win32:LIBPATH += GL $$NONGTP/Xerces/xerces/lib $$NONGTP/Devil/lib \ -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test2
r2013 r2014 2 2 3 3 #COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 4 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- "4 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -samples_per_pass=1000000" 5 5 6 6 #SCENE="../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d" … … 55 55 -preprocessor_histogram_file=$PREFIX-i-mixed-bvh-n4i.hlog 56 56 57 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \58 -rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \59 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4i.xml \60 -preprocessor_stats=$PREFIX-i-mixed-b1-n4i.log \61 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4i.hlog57 #$COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 58 # -rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \ 59 # -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4i.xml \ 60 # -preprocessor_stats=$PREFIX-i-mixed-b1-n4i.log \ 61 # -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4i.hlog 62 62 63 63
Note: See TracChangeset
for help on using the changeset viewer.