Changeset 755 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Sep 8, 2012 10:14:53 AM (10 years ago)
Author:
vondreele
Message:

fix rotation about view direction
eliminate divide by zero error in quaternion stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r754 r755  
    15641564            'vdwScale':0.67,'ellipseProb':50,'sizeH':0.50,'unitCellBox':False,
    15651565            'showABC':True,'selectedAtoms':[],'Atoms':[],'oldxy':[],
    1566             'Quaternion':[0.0,0.0,1.0,0.0],'bondList':{},'viewDir':[0,0,1]}
     1566            'Quaternion':[1.0,0.0,0.0,0.0],'bondList':{},'viewDir':[0,0,1]}
    15671567        try:
    15681568            drawingData = data['Drawing']
     
    15771577            drawingData['viewDir'] = [0,0,1]
    15781578        if 'Quaternion' not in drawingData:
    1579             drawingData['Quaternion'] = [0.0,0.0,1.0,0.0]
     1579            drawingData['Quaternion'] = [1.0,0.0,0.0,0.0]
    15801580        cx,ct,cs,ci = [0,0,0,0]
    15811581        if generalData['Type'] == 'nuclear':
Note: See TracChangeset for help on using the changeset viewer.