Dear Ovito users,

Hi,

I'm trying to use python in ovito to calculate the BAD. However, I have non-periodicity in z direction. For the whole periodicity I have this as a part of my code:

.

.

.

bond_vectors = particle_positions[bonds_array[:,1]] - particle_positions[bonds_array[:,0]]

bond_vectors += np.dot(data.cell.matrix[:,:3], data.bonds.pbc_vectors.T).T

bond_vectors /= np.linalg.norm(bond_vectors, axis=1).reshape(-1,1)

.

.

.

But, how can I modify it to have non-periodicity in z direction ?

Thanks in advance,

Ali