Changeset 1135 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 07/17/06 09:59:26 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1112 r1135 39 39 for (int j = 0; j < n; ++ j) 40 40 { 41 const Vector3 scale2((float)j * 0.8 / n + 0.1, 0.05, (float)i * 0.8 / (float)n + 0.1);41 const Vector3 scale2((float)j * 0.8f / n + 0.1f, 0.05f, (float)i * 0.8f / (float)n + 0.1f); 42 42 43 43 const Vector3 pt2 = sceneBox.Min() + scale2 * (sceneBox.Max() - sceneBox.Min()); … … 58 58 for (int j = 0; j < n; ++ j) 59 59 { 60 const Vector3 scale2(0.15 , (float)j * 0.8 / n + 0.1, (float)i * 0.8 / (float)n + 0.1);60 const Vector3 scale2(0.15f, (float)j * 0.8f / n + 0.1f, (float)i * 0.8f / (float)n + 0.1f); 61 61 62 62 Vector3 pt2 = sceneBox.Min() + scale2 * (sceneBox.Max() - sceneBox.Min()); 63 63 64 Vector3 boxSize = sceneBox.Size() * Vector3(0.0025 , 0.01, 0.0025);64 Vector3 boxSize = sceneBox.Size() * Vector3(0.0025f, 0.01f, 0.0025f); 65 65 AxisAlignedBox3 box(pt2, pt2 + boxSize); 66 66 Mesh *mesh = CreateMeshFromBox(box); … … 75 75 for (int i = 0; i < n; ++ i) 76 76 { 77 const Vector3 scale2(2, 0.2 , (float)i * 0.8 / (float)n + 0.1);77 const Vector3 scale2(2, 0.2f, (float)i * 0.8f / (float)n + 0.1f); 78 78 79 79 Vector3 pt2 = sceneBox.Min() + scale2 * (sceneBox.Max() - sceneBox.Min()); 80 80 81 81 //Vector3 boxSize = sceneBox.Size() * Vector3(0.0025, 0.01, 0.0025); 82 Vector3 boxSize = sceneBox.Size() * Vector3(0.005 , 0.02, 0.005);83 84 AxisAlignedBox3 box(pt2 + 0.1 , pt2 + boxSize);82 Vector3 boxSize = sceneBox.Size() * Vector3(0.005f, 0.02f, 0.005f); 83 84 AxisAlignedBox3 box(pt2 + 0.1f, pt2 + boxSize); 85 85 Mesh *mesh = CreateMeshFromBox(box); 86 86 … … 97 97 if (1) 98 98 { 99 const Vector3 scale(1.0 , 0.0, 0);99 const Vector3 scale(1.0f, 0.0, 0); 100 100 101 101 Vector3 pt = sceneBox.Min() + scale * (sceneBox.Max() - sceneBox.Min());
Note: See TracChangeset
for help on using the changeset viewer.