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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/vr-curv-quad.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/vr-curv-quad.diderot

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

revision 1100, Wed May 4 20:03:36 2011 UTC revision 1101, Wed May 4 20:52:56 2011 UTC
# Line 59  Line 59 
59                vec3 norm = normalize(grad);                vec3 norm = normalize(grad);
60                // begin curvature computation                // begin curvature computation
61                tensor[3,3] H = ∇(∇F)(pos);                tensor[3,3] H = ∇(∇F)(pos);
62                // HEY (BUG) replace with: identity[3] - norm⊗norm                tensor[3,3] P = identity[3] - norm⊗norm;
               // when 3x3 matrix subtraction is working  
               tensor[3,3] P = identity[3] + (-1.0*norm⊗norm);  
63                tensor[3,3] G = -(P•H•P)/|grad|;                tensor[3,3] G = -(P•H•P)/|grad|;
64                real disc = max(0.0, sqrt(2.0*|G|^2 - trace(G)^2));                real disc = max(0.0, sqrt(2.0*|G|^2 - trace(G)^2));
65                real k1 = (trace(G) + disc)/2.0;                real k1 = (trace(G) + disc)/2.0;

Legend:
Removed from v.1100  
changed lines
  Added in v.1101

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