Changeset 382

Show
Ignore:
Timestamp:
06/29/08 21:45:06 (3 months ago)
Author:
powell
Message:

Move x and z settings to their rightful place.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/matml/src/ternary/book.c

    r354 r382  
    5353          points[index].C2 = (double) i/resolution; 
    5454          points[index].C3 = (double) j/resolution; 
    55           points[index].x = points[index].C2 + 0.5*points[index].C3; 
    56           points[index].z = (1. - points[index].C3) * sqrt(3)/2.; 
    5755        } 
    5856      /* Make sure these are exactly on the C2+C3=1 boundary */ 
     
    6058      points[index].C2 = (double) i/resolution; 
    6159      points[index].C3 = 1. - points[index].C2; 
    62       points[index].x = points[index].C2 + 0.5*points[index].C3; 
    63       points[index].z = (1. - points[index].C3) * sqrt(3)/2.; 
    6460    } 
    6561  index = (resolution+1)*(resolution+2)/2-1; 
    6662  points[index].C2 = 1.; 
    6763  points[index].C3 = 0.; 
    68   points[index].x = 1.; 
    69   points[index].z = sqrt(3)/2.; 
    7064 
    7165  return 0; 
     
    197191  for (i=0; i<num_points; i++) 
    198192    { 
     193      points[i].x = points[i].C2 + 0.5*points[i].C3; 
    199194      points[i].y = Grel(points[i].G); 
     195      points[i].z = (1. - points[i].C3) * sqrt(3)/2.; 
    200196      points[i].red   = RED   (Grel (points[i].G)); 
    201197      points[i].green = GREEN (Grel (points[i].G)); 




About | Terms of Use | Contact | Privacy Policy