Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/zslice-k1k2.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/zslice-k1k2.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 870, Tue Apr 19 22:58:29 2011 UTC revision 871, Tue Apr 19 23:28:20 2011 UTC
# Line 39  Line 39 
39                real k1 = (trace(G) + disc)/2.0;                real k1 = (trace(G) + disc)/2.0;
40                real k2 = (trace(G) - disc)/2.0;                real k2 = (trace(G) - disc)/2.0;
41                // correct curvature computation ends here                // correct curvature computation ends here
42                k1 = max(-0.99, min(0.99, 4.0*k1));                k1 = max(-0.99, min(0.99, 4.2*k1));
43                k2 = max(-0.99, min(0.99, 4.0*k2));                k2 = max(-0.99, min(0.99, 4.2*k2));
44                vec2 kk = [k1,k2];                vec2 kk = [k1,k2];
45                rgb = [RR@kk,GG@kk,BB@kk] if inside(kk,RR)                rgb = [RR@kk,GG@kk,BB@kk] if inside(kk,RR)
46                      else [0.0,0.0,0.0];                      else [0.0,0.0,0.0];

Legend:
Removed from v.870  
changed lines
  Added in v.871

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0