Changeset 6183
- Timestamp:
- Mar 22, 2016 11:07:59 PM (7 years ago)
- Location:
- vtkvis/branches/1.8
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/branches/1.8
- Property svn:mergeinfo changed
/vtkvis/trunk merged: 5966-5968
- Property svn:mergeinfo changed
-
vtkvis/branches/1.8/Math.h
r3744 r6183 80 80 f *= 2; 81 81 82 mat [0][0] = xx*f + s;83 mat [1][0] = (xy + wz)*f;84 mat [2][0] = (xz - wy)*f;85 86 mat [0][1] = (xy - wz)*f;87 mat [1][1] = yy*f + s;88 mat [2][1] = (yz + wx)*f;89 90 mat [0][2] = (xz + wy)*f;91 mat [1][2] = (yz - wx)*f;92 mat [2][2] = zz*f + s;82 mat.SetElement(0, 0, xx*f + s); 83 mat.SetElement(1, 0, (xy + wz)*f); 84 mat.SetElement(2, 0, (xz - wy)*f); 85 86 mat.SetElement(0, 1, (xy - wz)*f); 87 mat.SetElement(1, 1, yy*f + s); 88 mat.SetElement(2, 1, (yz + wx)*f); 89 90 mat.SetElement(0, 2, (xz + wy)*f); 91 mat.SetElement(1, 2, (yz - wx)*f); 92 mat.SetElement(2, 2, zz*f + s); 93 93 } 94 94 … … 121 121 f *= 2; 122 122 123 mat [0][0] = xx*f + s;124 mat [0][1] = (xy + wz)*f;125 mat [0][2] = (xz - wy)*f;126 127 mat [1][0] = (xy - wz)*f;128 mat [1][1] = yy*f + s;129 mat [1][2] = (yz + wx)*f;130 131 mat [2][0] = (xz + wy)*f;132 mat [2][1] = (yz - wx)*f;133 mat [2][2] = zz*f + s;123 mat.SetElement(0, 0, xx*f + s); 124 mat.SetElement(0, 1, (xy + wz)*f); 125 mat.SetElement(0, 2, (xz - wy)*f); 126 127 mat.SetElement(1, 0, (xy - wz)*f); 128 mat.SetElement(1, 1, yy*f + s); 129 mat.SetElement(1, 2, (yz + wx)*f); 130 131 mat.SetElement(2, 0, (xz + wy)*f); 132 mat.SetElement(2, 1, (yz - wx)*f); 133 mat.SetElement(2, 2, zz*f + s); 134 134 } 135 135 -
vtkvis/branches/1.8/Renderer.cpp
r6180 r6183 2544 2544 double d = camera->GetDistance(); 2545 2545 double vu[3]; 2546 vu[0] = mat [1][0];2547 vu[1] = mat [1][1];2548 vu[2] = mat [1][2];2546 vu[0] = mat.GetElement(1, 0); 2547 vu[1] = mat.GetElement(1, 1); 2548 vu[2] = mat.GetElement(1, 2); 2549 2549 double trans[3]; 2550 trans[0] = mat [0][3];2551 trans[1] = mat [1][3];2552 trans[2] = mat [2][3];2553 mat [0][3] = 0;2554 mat [1][3] = 0;2555 mat [2][3] = 0;2556 double vpn[3] = {mat [2][0], mat[2][1], mat[2][2]};2550 trans[0] = mat.GetElement(0, 3); 2551 trans[1] = mat.GetElement(1, 3); 2552 trans[2] = mat.GetElement(2, 3); 2553 mat.SetElement(0, 3, 0.0); 2554 mat.SetElement(1, 3, 0.0); 2555 mat.SetElement(2, 3, 0.0); 2556 double vpn[3] = {mat.GetElement(2, 0), mat.GetElement(2, 1), mat.GetElement(2, 2)}; 2557 2557 double pos[3]; 2558 2558 // With translation removed, we have an orthogonal matrix, -
vtkvis/branches/1.8/Volume.cpp
r5836 r6183 14 14 #include <vtkVolumeProperty.h> 15 15 #include <vtkGPUVolumeRayCastMapper.h> 16 #ifndef USE_GPU_RAYCAST_MAPPER 16 17 #include <vtkVolumeTextureMapper3D.h> 18 #endif 17 19 #include <vtkRectilinearGrid.h> 18 20 #include <vtkStructuredGrid.h>
Note: See TracChangeset
for help on using the changeset viewer.