Changeset 1074cb
- Timestamp:
- Feb 10, 2010, 2:47:24 PM (16 years ago)
- Children:
- 850e50
- Parents:
- 2bc06b
- File:
-
- 1 edited
-
util/src/NanoCreator.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/src/NanoCreator.c
r2bc06b r1074cb 1422 1422 halfaxis[i] = factors[0]*Norm(Tubevector[axis[0]])/Norm(Tubevector[i]); 1423 1423 1424 double arg, radius; 1424 double arg; 1425 const double radius = 1./(2.*M_PI); // is length of sheet in units of axis vector, divide by pi to get radius (from circumference) 1425 1426 for (i=0;i<numbersheet;i++) { 1426 1427 // scan next atom … … 1435 1436 // roll up (project (x,y,z) on cylindrical coordinates (radius,arg,z)) 1436 1437 arg = 2.*M_PI*x[axis[0]]/(factors[0]) - M_PI; // is angle 1437 radius = 1./(2.*M_PI); // is length of sheet in units of axis vector, divide by pi to get radius (from circumference)1438 1438 // fprintf(stdout, "arg: %5.2f (c%2.2f,s%2.2f)\t",$arg, cos($arg), sin($arg)); 1439 1439 x[axis[0]] = cos(arg)*halfaxis[axis[0]]*(radius+x[axis[2]]/halfaxis[axis[2]]); // as both vectors are not normalized additional betrag has to be taken into account!
Note:
See TracChangeset
for help on using the changeset viewer.
