Changeset 1967 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Aug 29, 2015 9:03:56 AM (8 years ago)
Author:
vondreele
Message:

fix zone view rotations of 3D hkls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1966 r1967  
    592592#            V /= np.sqrt(np.sum(V**2))
    593593#            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
    596596        elif key in 'Z':
    597597            Data['Zone'] = not Data['Zone']
     
    909909        glViewport(0,0,VS[0],VS[1])
    910910        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)
    915912        SetLights()           
    916913           
Note: See TracChangeset for help on using the changeset viewer.