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

SCM Repository

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

Diff of /branches/charisee/test/zslice-k1k2.diderot

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

revision 2839, Tue Nov 25 19:45:46 2014 UTC revision 2840, Tue Nov 25 19:46:43 2014 UTC
# Line 27  Line 27 
27             // it is true when within one of the quadratic patches             // it is true when within one of the quadratic patches
28             if (g[2] > 0.10) {             if (g[2] > 0.10) {
29                vec3 n = normalize(g);                vec3 n = normalize(g);
30                tensor[3,3] H = -∇(∇F)(pos);                tensor[3,3] H = -∇⊗(∇F)(pos);
31                tensor[3,3] P = identity[3] - n⊗n;                tensor[3,3] P = identity[3] - n⊗n;
32                tensor[3,3] G = (P•H•P)/|g|;                tensor[3,3] G = (P•H•P)/|g|;
33                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));

Legend:
Removed from v.2839  
changed lines
  Added in v.2840

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