source: trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp @ 534

Revision 534, 18.4 KB checked in by bittner, 18 years ago (diff)

vss preprocessor void space identification fixed - by default it is off

Line 
1#include "SceneGraph.h"
2#include "KdTree.h"
3#include "VssPreprocessor.h"
4#include "X3dExporter.h"
5#include "Environment.h"
6#include "MutualVisibility.h"
7#include "Polygon3.h"
8#include "ViewCell.h"
9#include "VssRay.h"
10#include "VssTree.h"
11#include "ViewCellsManager.h"
12#include "RenderSimulator.h"
13#include "Beam.h"
14#include "GlRenderer.h"
15
16bool use2dSampling = false;
17bool useViewspacePlane = false;
18
19VssPreprocessor::VssPreprocessor():
20  mPass(0),
21  mVssRays()
22{
23  // this should increase coherence of the samples
24  environment->GetIntValue("VssPreprocessor.samplesPerPass", mSamplesPerPass);
25  environment->GetIntValue("VssPreprocessor.initialSamples", mInitialSamples);
26  environment->GetIntValue("VssPreprocessor.vssSamples", mVssSamples);
27  environment->GetIntValue("VssPreprocessor.vssSamplesPerPass", mVssSamplesPerPass);
28  environment->GetBoolValue("VssPreprocessor.useImportanceSampling", mUseImportanceSampling);
29  environment->GetBoolValue("ViewCells.delayedConstruction", mDelayedViewCellsConstruction);
30
31  environment->GetBoolValue("VssPreprocessor.loadInitialSamples", mLoadInitialSamples);
32  environment->GetBoolValue("VssPreprocessor.storeInitialSamples", mStoreInitialSamples);
33  environment->GetBoolValue("VssPreprocessor.useViewSpaceBox", mUseViewSpaceBox);
34  environment->GetBoolValue("VssPreprocessor.testBeamSampling", mTestBeamSampling);
35
36  useViewspacePlane = mUseViewSpaceBox; //hack
37
38  mStats.open("stats.log");
39}
40
41VssPreprocessor::~VssPreprocessor()
42{
43  CLEAR_CONTAINER(mVssRays);
44}
45
46void
47VssPreprocessor::SetupRay(Ray &ray,
48                                                  const Vector3 &point,
49                                                  const Vector3 &direction
50                                                  )
51{
52  ray.Clear();
53  // do not store anything else then intersections at the ray
54  ray.Init(point, direction, Ray::LOCAL_RAY);
55}
56
57int
58VssPreprocessor::CastRay(
59                                                 Vector3 &viewPoint,
60                                                 Vector3 &direction,
61                                                 VssRayContainer &vssRays
62                                                 )
63{
64
65    int hits = 0;
66  static Ray ray;
67  AxisAlignedBox3 box = mKdTree->GetBox();
68
69  AxisAlignedBox3 sbox = box;
70  sbox.Enlarge(Vector3(-Limits::Small));
71  if (!sbox.IsInside(viewPoint))
72        return 0;
73       
74  SetupRay(ray, viewPoint, direction);
75  // cast ray to KD tree to find intersection with other objects
76  Intersectable *objectA, *objectB;
77  Vector3 pointA, pointB;
78  float bsize = Magnitude(box.Size());
79
80
81  if (!mDetectEmptyViewSpace)
82        ray.mFlags &= ~Ray::CULL_BACKFACES;
83 
84  if (mKdTree->CastRay(ray)) {
85        objectA = ray.intersections[0].mObject;
86        pointA = ray.Extrap(ray.intersections[0].mT);
87  } else {
88        objectA = NULL;
89        // compute intersection with the scene bounding box
90        float tmin, tmax;
91        if (box.ComputeMinMaxT(ray, &tmin, &tmax) && tmin < tmax)
92          pointA = ray.Extrap(tmax);
93        else
94          return 0;
95  }
96
97       
98  if (mDetectEmptyViewSpace) {
99        SetupRay(ray, pointA, -direction);
100  } else
101        SetupRay(ray, viewPoint, -direction);
102 
103  if (!mDetectEmptyViewSpace)
104        ray.mFlags &= ~Ray::CULL_BACKFACES;
105
106  if (mKdTree->CastRay(ray)) {
107        objectB = ray.intersections[0].mObject;
108        pointB = ray.Extrap(ray.intersections[0].mT);
109  } else {
110        objectB = NULL;
111        float tmin, tmax;
112        if (box.ComputeMinMaxT(ray, &tmin, &tmax) && tmin < tmax)
113          pointB = ray.Extrap(tmax);
114        else
115          return 0;
116  }
117 
118  //  if (objectA == NULL && objectB != NULL) {
119  if (mDetectEmptyViewSpace) {
120        // cast again to ensure that there is no objectA
121        SetupRay(ray, pointB, direction);
122        if (mKdTree->CastRay(ray)) {
123          objectA = ray.intersections[0].mObject;
124          pointA = ray.Extrap(ray.intersections[0].mT);
125        }
126  }
127
128 
129  VssRay *vssRay  = NULL;
130
131  bool validSample = (objectA != objectB);
132  if (0 && mDetectEmptyViewSpace) {   // consider all samples valid
133        // check if the viewpoint lies on the line segment AB
134        if (Distance(pointA, pointB) <
135                Distance(viewPoint, pointA) + Distance(viewPoint, pointB) - Limits::Small) {
136          validSample = false;
137        }
138  }
139       
140  if (validSample) {
141        if (objectA) {
142          vssRay = new VssRay(pointB,
143                                                  pointA,
144                                                  objectB,
145                                                  objectA,
146                                                  mPass
147                                                  );
148          vssRays.push_back(vssRay);
149          hits ++;
150        }
151       
152        if (objectB) {
153          vssRay = new VssRay(pointA,
154                                                  pointB,
155                                                  objectA,
156                                                  objectB,
157                                                  mPass
158                                                  );
159          vssRays.push_back(vssRay);
160          hits ++;
161        }
162  }
163       
164  return hits;
165}
166
167
168Vector3
169VssPreprocessor::GetViewpoint(AxisAlignedBox3 *viewSpaceBox)
170{
171  AxisAlignedBox3 box;
172
173  if (viewSpaceBox)
174        box =*viewSpaceBox;
175  else
176        box = mKdTree->GetBox();
177
178  // shrink the box in the y direction
179  return box.GetRandomPoint();
180}
181
182Vector3
183VssPreprocessor::GetDirection(const Vector3 &viewpoint,
184                                                          AxisAlignedBox3 *viewSpaceBox
185                                                          )
186{
187  Vector3 point;
188  if (!use2dSampling) {
189        if (0) {
190          Vector3 normal;
191          int i = Random((int)mObjects.size());
192          Intersectable *object = mObjects[i];
193          object->GetRandomSurfacePoint(point, normal);
194        } else
195          point = mKdTree->GetBox().GetRandomPoint();
196        //        point = viewpoint + UniformRandomVector();
197
198  } else {
199        AxisAlignedBox3 box;
200
201        if (viewSpaceBox)
202          box =*viewSpaceBox;
203        else
204          box = mKdTree->GetBox();
205
206        point = box.GetRandomPoint();
207        point.y = viewpoint.y;
208  }
209
210  return point - viewpoint;
211}
212
213int
214VssPreprocessor::GenerateImportanceRays(VssTree *vssTree,
215                                                                                const int desiredSamples,
216                                                                                SimpleRayContainer &rays
217                                                                                )
218{
219  int num;
220  if (0) {
221        float minRayContribution;
222        float maxRayContribution;
223        float avgRayContribution;
224
225        vssTree->GetRayContributionStatistics(minRayContribution,
226                                                                                  maxRayContribution,
227                                                                                  avgRayContribution);
228
229        cout<<
230          "#MIN_RAY_CONTRIB\n"<<minRayContribution<<endl<<
231          "#MAX_RAY_CONTRIB\n"<<maxRayContribution<<endl<<
232          "#AVG_RAY_CONTRIB\n"<<avgRayContribution<<endl;
233
234        float p = desiredSamples/(float)(avgRayContribution*vssTree->stat.Leaves());
235        num = vssTree->GenerateRays(p, rays);
236  } else {
237        int leaves = vssTree->stat.Leaves();
238        num = vssTree->GenerateRays(desiredSamples, leaves, rays);
239  }
240
241  cout<<"Generated "<<num<<" rays."<<endl;
242
243  return num;
244}
245
246
247bool
248VssPreprocessor::ExportRays(const char *filename,
249                                                        const VssRayContainer &vssRays,
250                                                        const int number
251                                                        )
252{
253  cout<<"Exporting vss rays..."<<endl<<flush;
254
255  Exporter *exporter = NULL;
256  exporter = Exporter::GetExporter(filename);
257  //    exporter->SetWireframe();
258  //    exporter->ExportKdTree(*mKdTree);
259  exporter->SetFilled();
260  exporter->ExportScene(mSceneGraph->mRoot);
261  exporter->SetWireframe();
262
263  if (mViewSpaceBox) {
264        exporter->SetForcedMaterial(RgbColor(1,0,1));
265        exporter->ExportBox(*mViewSpaceBox);
266        exporter->ResetForcedMaterial();
267  }
268
269  VssRayContainer rays;
270  vssRays.SelectRays(number, rays);
271 
272  exporter->ExportRays(rays, RgbColor(1, 0, 0));
273
274  delete exporter;
275
276  cout<<"done."<<endl<<flush;
277
278  return true;
279}
280
281
282bool
283VssPreprocessor::ExportVssTree(char *filename,
284                                                           VssTree *tree,
285                                                           const Vector3 &dir
286                                                           )
287{
288  Exporter *exporter = Exporter::GetExporter(filename);
289  exporter->SetFilled();
290  exporter->ExportScene(mSceneGraph->mRoot);
291  //  exporter->SetWireframe();
292  bool result = exporter->ExportVssTree2( *tree, dir );
293  delete exporter;
294  return result;
295}
296
297bool
298VssPreprocessor::ExportVssTreeLeaf(char *filename,
299                                                                   VssTree *tree,
300                                                                   VssTreeLeaf *leaf)
301{
302  Exporter *exporter = NULL;
303  exporter = Exporter::GetExporter(filename);
304  exporter->SetWireframe();
305  exporter->ExportKdTree(*mKdTree);
306
307  if (mViewSpaceBox) {
308        exporter->SetForcedMaterial(RgbColor(1,0,0));
309        exporter->ExportBox(*mViewSpaceBox);
310        exporter->ResetForcedMaterial();
311  }
312
313  exporter->SetForcedMaterial(RgbColor(0,0,1));
314  exporter->ExportBox(tree->GetBBox(leaf));
315  exporter->ResetForcedMaterial();
316
317  VssRayContainer rays[4];
318  for (int i=0; i < leaf->rays.size(); i++) {
319        int k = leaf->rays[i].GetRayClass();
320        rays[k].push_back(leaf->rays[i].mRay);
321  }
322
323  // SOURCE RAY
324  exporter->ExportRays(rays[0], RgbColor(1, 0, 0));
325  // TERMINATION RAY
326  exporter->ExportRays(rays[1], RgbColor(1, 1, 1));
327  // PASSING_RAY
328  exporter->ExportRays(rays[2], RgbColor(1, 1, 0));
329  // CONTAINED_RAY
330  exporter->ExportRays(rays[3], RgbColor(0, 0, 1));
331
332  delete exporter;
333  return true;
334}
335
336void
337VssPreprocessor::ExportVssTreeLeaves(VssTree *tree, const int number)
338{
339  vector<VssTreeLeaf *> leaves;
340  tree->CollectLeaves(leaves);
341
342  int num = 0;
343  int i;
344  float p = number / (float)leaves.size();
345  for (i=0; i < leaves.size(); i++) {
346        if (RandomValue(0,1) < p) {
347          char filename[64];
348          sprintf(filename, "vss-leaf-%04d.x3d", num);
349          ExportVssTreeLeaf(filename, tree, leaves[i]);
350          num++;
351        }
352        if (num >= number)
353          break;
354  }
355}
356
357
358void VssPreprocessor::TestBeamCasting(VssTree *tree, ViewCellsManager *vm)
359{
360        vector<VssTreeLeaf *> leaves;
361        tree->CollectLeaves(leaves);
362
363        for (int i = 0; i < 10; ++i)
364        {
365                const int index = (int)RandomValue(0, (Real)((int)leaves.size() - 1));
366                VssTreeLeaf *leaf = leaves[index];
367
368                Beam beam;
369                AxisAlignedBox3 dirBox =tree->GetDirBBox(leaf);
370                AxisAlignedBox3 box = tree->GetBBox(leaf);
371               
372                beam.Construct(dirBox, box);
373
374                // collect kd leaves and view cells
375                mKdTree->CastBeam(beam);
376                vm->CastBeam(beam);
377
378                Debug << "found " << beam.mViewCells.size() << " view cells and "
379                          << beam.mKdNodes.size() << " kd nodes" << endl;
380
381                Intersectable *sourceObj = mObjects[5];
382                BeamSampleStatistics stats;
383                renderer->SampleBeamContributions(sourceObj,
384                                                                                  beam,
385                                                                                  10000,
386                                                                                  stats);
387
388                Debug << "beam statistics: " << stats << endl << endl;
389        }
390
391}
392
393float
394VssPreprocessor::GetAvgPvsSize(VssTree *tree,
395                                                           const vector<AxisAlignedBox3> &viewcells
396                                                           )
397{
398  vector<AxisAlignedBox3>::const_iterator it, it_end = viewcells.end();
399
400  int sum = 0;
401  for (it = viewcells.begin(); it != it_end; ++ it)
402        sum += tree->GetPvsSize(*it);
403
404  return sum/(float)viewcells.size();
405}
406
407bool
408VssPreprocessor::ComputeVisibility()
409{
410
411
412  long startTime = GetTime();
413
414  int totalSamples = 0;
415
416
417  AxisAlignedBox3 *box = new AxisAlignedBox3(mKdTree->GetBox());
418 
419  if (!useViewspacePlane) {
420        float size = 0.05f;
421        float s = 0.5f - size;
422        float olds = Magnitude(box->Size());
423        box->Enlarge(box->Size()*Vector3(-s));
424        Vector3 translation = Vector3(-olds*0.1f, 0, 0);
425        box->SetMin(box->Min() + translation);
426        box->SetMax(box->Max() + translation);
427  } else {
428
429        // sample city like heights
430        box->SetMin(1, box->Min(1) + box->Size(1)*0.2f);
431        box->SetMax(1, box->Min(1) + box->Size(1)*0.3f);
432  }
433
434  if (use2dSampling)
435        box->SetMax(1, box->Min(1));
436
437  cout<<"mUseViewSpaceBox="<<mUseViewSpaceBox<<endl;
438  if (mUseViewSpaceBox)
439  {
440        mViewSpaceBox = box;
441        mViewCellsManager->SetViewSpaceBox(*box);
442  }
443  else
444  {
445        mViewSpaceBox = NULL;
446        mViewCellsManager->SetViewSpaceBox(mKdTree->GetBox());
447  }
448 
449  //-- load view cells from file if requested
450  if (mLoadViewCells)
451  {     
452          // load now because otherwise bounding box not correct
453          mViewCellsManager->LoadViewCells(mViewCellsFilename, &mObjects);
454  }
455
456
457  VssTree *vssTree = NULL;
458
459  mSceneGraph->CollectObjects(&mObjects);
460
461  long initialTime = GetTime();
462
463  if (mLoadInitialSamples)
464  {
465          cout << "Loading samples from file ... ";
466          LoadSamples(mVssRays, mObjects);
467          cout << "finished\n" << endl;
468          totalSamples = (int)mVssRays.size();
469  }
470  else
471  {
472       
473        while (totalSamples < mInitialSamples) {
474                int passContributingSamples = 0;
475                int passSampleContributions = 0;
476                int passSamples = 0;
477
478                int index = 0;
479
480                int sampleContributions;
481
482                int s = Min(mSamplesPerPass, mInitialSamples);
483                for (int k=0; k < s; k++) {
484                        // changed by matt
485                        Vector3 viewpoint;
486                        //                      viewpoint = GetViewpoint(mViewSpaceBox);
487                        mViewCellsManager->GetViewPoint(viewpoint);
488                        Vector3 direction = GetDirection(viewpoint, mViewSpaceBox);
489
490                        sampleContributions = CastRay(viewpoint, direction, mVssRays);
491
492                        if (sampleContributions) {
493                                passContributingSamples ++;
494                                passSampleContributions += sampleContributions;
495                        }
496                        passSamples++;
497                        totalSamples++;
498                }
499
500                mPass++;
501                int pvsSize = 0;
502                float avgRayContrib = (passContributingSamples > 0) ?
503                        passSampleContributions/(float)passContributingSamples : 0;
504
505                cout << "#Pass " << mPass << " : t = " << TimeDiff(startTime, GetTime())*1e-3 << "s" << endl;
506                cout << "#TotalSamples=" << totalSamples/1000
507                        << "k   #SampleContributions=" << passSampleContributions << " ("
508                        << 100*passContributingSamples/(float)passSamples<<"%)" << " avgPVS="
509                        << pvsSize/(float)mObjects.size() << endl
510                        << "avg ray contrib=" << avgRayContrib << endl;
511
512                mStats <<
513                        "#Pass\n" <<mPass<<endl<<
514                        "#Time\n" << TimeDiff(startTime, GetTime())*1e-3 << endl<<
515                        "#TotalSamples\n" << totalSamples<< endl<<
516                        "#SampleContributions\n" << passSampleContributions << endl <<
517                        "#PContributingSamples\n"<<100*passContributingSamples/(float)passSamples<<endl <<
518                        "#AvgPVS\n"<< pvsSize/(float)mObjects.size() << endl <<
519                        "#AvgRayContrib\n" << avgRayContrib << endl;
520          }
521 
522          cout << "#totalPvsSize=" << mKdTree->CollectLeafPvs() << endl;
523
524
525         
526  }
527 
528  cout << "#totalRayStackSize=" << (int)mVssRays.size() << endl << flush;
529  Debug << (int)mVssRays.size() << " rays generated in "
530            << TimeDiff(initialTime, GetTime()) * 1e-3 << " seconds" << endl;
531
532  if (mStoreInitialSamples)
533  {
534          cout << "Writing " << (int)mVssRays.size() << " samples to file ... ";
535          ExportSamples(mVssRays);
536          cout << "finished\n" << endl;
537
538          /*VssRayContainer dummyRays;
539          LoadSamples(dummyRays, mObjects);
540          Debug << "rays " << (int)mVssRays.size() << " " << dummyRays.size() << endl;
541
542          for (int i = 0; i < (int)mVssRays.size(); ++ i)
543          {
544                  Debug << mVssRays[i]->GetOrigin() << " " << mVssRays[i]->GetTermination() << " " << mVssRays[i]->mOriginObject << " " << mVssRays[i]->mTerminationObject << endl;
545                  Debug << dummyRays[i]->GetOrigin() << " " << dummyRays[i]->GetTermination() << " " << dummyRays[i]->mOriginObject << " " << dummyRays[i]->mTerminationObject << endl << endl;
546          }*/
547  }
548
549 
550  int numExportRays = 5000;
551  //int numExportRays = 0;
552
553  if (numExportRays) {
554        char filename[64];
555        sprintf(filename, "vss-rays-initial.x3d");
556        ExportRays(filename, mVssRays, numExportRays);
557  }
558
559  /// compute view cell contribution of rays if view cells manager already constructed
560  mViewCellsManager->ComputeSampleContributions(mVssRays);
561
562  // construct view cells
563  if (!mDelayedViewCellsConstruction)
564        mViewCellsManager->Construct(mObjects, mVssRays);
565 
566  vssTree = new VssTree;
567  // viewcells = Construct(mVssRays);
568
569  vssTree->Construct(mVssRays, mViewSpaceBox);
570  cout<<"VssTree root PVS size = "<<vssTree->GetRootPvsSize()<<endl;
571
572  if (0)
573  {
574          ExportVssTree("vss-tree-100.x3d", vssTree, Vector3(1,0,0));
575          ExportVssTree("vss-tree-001.x3d", vssTree, Vector3(0,0,1));
576          ExportVssTree("vss-tree-101.x3d", vssTree, Vector3(1,0,1));
577          ExportVssTree("vss-tree-101m.x3d", vssTree, Vector3(-1,0,-1));
578          ExportVssTreeLeaves(vssTree, 10);
579  }
580
581  // viewcells->UpdatePVS(newVssRays);
582  // get viewcells as kd tree boxes
583  vector<AxisAlignedBox3> kdViewcells;
584  if (0) {
585        vector<KdLeaf *> leaves;
586        mKdTree->CollectLeaves(leaves);
587        vector<KdLeaf *>::const_iterator it;
588        int targetLeaves = 50;
589        float prob = targetLeaves/(float)leaves.size();
590        for (it = leaves.begin(); it != leaves.end(); ++it)
591          if (RandomValue(0.0f,1.0f) < prob)
592                kdViewcells.push_back(mKdTree->GetBox(*it));
593
594        float avgPvs = GetAvgPvsSize(vssTree, kdViewcells);
595        cout<<"Initial average PVS size = "<<avgPvs<<endl;
596  }
597
598
599  int samples = 0;
600  int pass = 0;
601
602  if (mTestBeamSampling)
603          TestBeamCasting(vssTree, mViewCellsManager);
604
605  // cast view cell samples
606  while (1) {
607        int num = mVssSamplesPerPass;
608        SimpleRayContainer rays;
609        VssRayContainer vssRays;
610
611        if (!mUseImportanceSampling) {
612          for (int j=0; j < num; j++) {
613            // changed by matt
614                //Vector3 viewpoint = GetViewpoint(mViewSpaceBox);
615                Vector3 viewpoint;
616                mViewCellsManager->GetViewPoint(viewpoint);
617                Vector3 direction = GetDirection(viewpoint, mViewSpaceBox);
618                rays.push_back(SimpleRay(viewpoint, direction));
619          }
620        } else {
621          num = GenerateImportanceRays(vssTree, num, rays);
622        }
623
624        for (int i=0; i < rays.size(); i++)
625          CastRay(rays[i].mOrigin, rays[i].mDirection, vssRays);
626
627        vssTree->AddRays(vssRays);
628
629        if (0) {
630          int subdivided = vssTree->UpdateSubdivision();
631          cout<<"subdivided leafs = "<<subdivided<<endl;
632        }
633
634        float avgPvs = GetAvgPvsSize(vssTree, kdViewcells);
635        cout<<"Average PVS size = "<<avgPvs<<endl;
636
637        //Debug << "samples: " << samples << " construction samples " << mViewCellsManager->GetConstructionSamples() << endl;
638        // construct view cells after vss
639        if (!mViewCellsManager->ViewCellsConstructed() &&
640                (samples + mInitialSamples >  mViewCellsManager->GetConstructionSamples()))
641        {
642                VssRayContainer constructionRays;
643                vssTree->CollectRays(constructionRays,
644                                                         mViewCellsManager->GetConstructionSamples());
645                mViewCellsManager->Construct(mObjects, constructionRays);
646        }
647
648        /// compute view cell contribution of rays
649        mViewCellsManager->ComputeSampleContributions(vssRays);
650       
651        if (numExportRays) {
652          char filename[64];
653          if (mUseImportanceSampling)
654                sprintf(filename, "vss-rays-i%04d.x3d", pass);
655          else
656                sprintf(filename, "vss-rays-%04d.x3d", pass);
657
658          ExportRays(filename, vssRays, numExportRays);
659        }
660
661        samples+=num;
662        float pvs = vssTree->GetAvgPvsSize();
663        cout<<"*****************************\n";
664        cout<<samples<<" avgPVS ="<<pvs<<endl;
665        cout<<"VssTree root PVS size = "<<vssTree->GetRootPvsSize()<<endl;
666        cout<<"*****************************\n";
667        if (samples >= mVssSamples)
668          break;
669        pass++;
670  }
671
672
673  VssRayContainer viewCellRays;
674 
675  // compute rays used for view cells construction
676  int numRays = Max(mViewCellsManager->GetPostProcessSamples(),
677                                        mViewCellsManager->GetVisualizationSamples());
678
679  vssTree->CollectRays(viewCellRays, numRays);
680 
681  //-- post process view cells
682  mViewCellsManager->PostProcess(mObjects, viewCellRays);
683
684  //-- several visualizations and statistics
685  Debug << "\nview cells after post processing: " << endl;
686  mViewCellsManager->PrintStatistics(Debug);
687
688  mViewCellsManager->Visualize(mObjects, viewCellRays);
689 
690  //-- render simulation after merge
691  cout << "\nevaluating bsp view cells render time after merge ... ";
692  mRenderSimulator->RenderScene();
693  SimulationStatistics ss;
694  mRenderSimulator->GetStatistics(ss);
695 
696  cout << " finished" << endl;
697  cout << ss << endl;
698  Debug << ss << endl;
699
700  delete vssTree;
701 
702  return true;
703}
Note: See TracBrowser for help on using the repository browser.