Skip to content

Reply To: Extract Lattice data

#5839
Adrian
Keymaster

The [iC, iX, iY] you get from the cuboid geometry loop are lattice coordinates that can be converted to physical coordinates via getPhysR. The additional lines physCord[0] = double(iX)*cuboidGeometry.getMinDeltaR(); are wrong – you would also need to add the cuboid start point. However, simply use getPhysR with latticeR set to [iC, iX, iY].

  • This reply was modified 2 years, 12 months ago by Adrian.