fixed coordinate system convention to be right handed always instead of random left and right handed assignment
This commit is contained in:
parent
2daad7542e
commit
06405bc251
|
@ -78,6 +78,8 @@ for name in filenames:
|
||||||
for type, data in items.iteritems():
|
for type, data in items.iteritems():
|
||||||
for column in data['column']:
|
for column in data['column']:
|
||||||
(u,v) = np.linalg.eigh(np.array(map(float,table.data[column:column+data['dim']])).reshape(data['shape']))
|
(u,v) = np.linalg.eigh(np.array(map(float,table.data[column:column+data['dim']])).reshape(data['shape']))
|
||||||
|
if np.dot(np.cross(v[:,0], v[:,1]), v[:,2]) < 0.0 :
|
||||||
|
v[:, 2] *= -1.0
|
||||||
table.data_append(list(u))
|
table.data_append(list(u))
|
||||||
table.data_append(list(v.transpose().reshape(data['dim'])))
|
table.data_append(list(v.transpose().reshape(data['dim'])))
|
||||||
outputAlive = table.data_write() # output processed line
|
outputAlive = table.data_write() # output processed line
|
||||||
|
|
Loading…
Reference in New Issue