Revision: | 1501 |
Committed: | Tue Sep 28 23:24:25 2004 UTC (19 years, 11 months ago) by tim |
Original Path: | trunk/OOPSE-3.0/src/applications/simpleBuilder/BaseLattice.cpp |
File size: | 545 byte(s) |
Log Message: | change directory structure of application. Every executable file is replaced in seperate directory |
# | Content |
---|---|
1 | #include "applications/simpleBuilder/BaseLattice.hpp" |
2 | void BaseLattice::getLatticePointsPos(vector<Vector3d>& latticePos, int nx, int ny, int nz){ |
3 | |
4 | latticePos.resize(nCellSites); |
5 | |
6 | for( int i=0;i < nCellSites;i++){ |
7 | |
8 | latticePos[i].x = origin.x + cellSitesPos[i].x + cellLen.x * (double(nx) - 0.5); |
9 | latticePos[i].y = origin.y + cellSitesPos[i].y + cellLen.y * (double(ny) - 0.5); |
10 | latticePos[i].z = origin.z + cellSitesPos[i].z + cellLen.z * (double(nz) - 0.5); |
11 | } |
12 | |
13 | } |
14 |