Changeset 1967 for trunk/GSASIIplot.py
- Timestamp:
- Aug 29, 2015 9:03:56 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1966 r1967 592 592 # V /= np.sqrt(np.sum(V**2)) 593 593 # A = np.arccos(np.sum(V*V0)) 594 # Q = G2mth.AV2Q(A,viewChoice[key][1])595 drawingData['Quaternion'] = [-1,0,0,0] #the old stuff always gave this...594 Q = G2mth.AV2Q(np.pi/2.,viewChoice[key][1]) 595 drawingData['Quaternion'] = Q 596 596 elif key in 'Z': 597 597 Data['Zone'] = not Data['Zone'] … … 909 909 glViewport(0,0,VS[0],VS[1]) 910 910 gluPerspective(20.,aspect,cPos-Zclip,cPos+Zclip) 911 vDir = drawingData['viewDir'] 912 vUp = drawingData['viewUp'] 913 # gluLookAt(0,0,cPos,0,0,0,0,1,0) 914 gluLookAt(vDir[0]*cPos,vDir[1]*cPos,vDir[2]*cPos, 0,0,0, vUp[0],vUp[1],vUp[2]) 911 gluLookAt(0,0,cPos,0,0,0,0,1,0) 915 912 SetLights() 916 913
Note: See TracChangeset
for help on using the changeset viewer.