Changeset 384 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.cpp
- Timestamp:
- 11/07/05 01:27:32 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.cpp
r372 r384 65 65 ViewCell *ViewCell::ExtrudeViewCell(const Triangle3 &baseTri, const float height) 66 66 { 67 int i; 68 // one mesh per view cell 67 // one mesh per view cell 69 68 Mesh *mesh = new Mesh(); 70 69 … … 86 85 87 86 // add base vertices and calculate top vertices 88 for (i = 0; i < 3; ++ i)89 87 for (int i = 0; i < 3; ++ i) 88 mesh->mVertices.push_back(baseTri.mVertices[i]); 90 89 91 90 // add top vertices 92 for (i = 0; i < 3; ++ i)91 for (int i = 0; i < 3; ++ i) 93 92 mesh->mVertices.push_back(baseTri.mVertices[i] + height * triNorm); 94 93
Note: See TracChangeset
for help on using the changeset viewer.