- Timestamp:
- 08/04/05 19:59:30 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBSP.h
r195 r197 38 38 { 39 39 public: 40 BSPInterior(Plane3 *plane): mPlane(plane) {} 40 41 /** @return false since it is an interior node */ 41 42 bool IsLeaf() const; -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r195 r197 83 83 84 84 BSPNode *node = SubdivideNode(dynamic_cast<BSPLeaf *>(data.mNode), 85 data.mParent, 85 86 data.mParent, 86 87 data.mDepth, … … 103 104 Plane3 *BSPTree::SelectPlane(Mesh *viewcell) 104 105 { 105 return viewcell->GetFacePlane(0);106 return &viewcell->GetFacePlane(0); 106 107 } 107 108 … … 115 116 return leaf; 116 117 117 // add the new nodes to the tree 118 BSPInterior *node = new BSPInterior; 118 // add the new nodes to the tree + select subdivision plane 119 Plane3 *plane = SelectPlane(viewCell); 120 BSPInterior *node = new BSPInterior(&plane); // ERROR!! 119 121 120 // select subdivision plane121 node->mPlane = SelectPlane(viewCell);122 122 123 123 FaceContainer::const_iterator fi;
Note: See TracChangeset
for help on using the changeset viewer.