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

SCM Repository

[diderot] Diff of /branches/charisee_dev/examples/moe/moe-vr-can2.diderot
ViewVC logotype

Diff of /branches/charisee_dev/examples/moe/moe-vr-can2.diderot

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

revision 3312, Fri Oct 16 20:11:52 2015 UTC revision 3313, Sat Oct 17 00:33:40 2015 UTC
# Line 16  Line 16 
16  input real thickness = 0.3;  input real thickness = 0.3;
17    
18  field#4(3)[] V = bspln5 ⊛ image("moe-iso-b3i5-small.nrrd");  field#4(3)[] V = bspln5 ⊛ image("moe-iso-b3i5-small.nrrd");
   
19  field#2(3)[] S = ∇V/|∇V| • ∇⊗∇(|∇V|) • ∇V/|∇V|;  field#2(3)[] S = ∇V/|∇V| • ∇⊗∇(|∇V|) • ∇V/|∇V|;
20  field#2(3)[] F = -∇(|∇V|) • ∇V/|∇V|;  field#2(3)[] F = -∇(|∇V|) • ∇V/|∇V|;
21  input real smax = -10;  input real smax = -10;
22    
23  function real alpha(real v, real g) = clamp(0, 1, 1.3*(1 - |v|/(g*thickness)));  function real alpha(real v, real g) = clamp(0, 1, 1.3*(1 - |v|/(g*thickness)));
24    
25  field#0(1)[3] cmap = tent ⊛ image("moe-isobow.nrrd");  field#0(1)[3] cmap = tent ⊛ image("moe-isobow.nrrd");
26  function vec3 color(vec3 x) = cmap(clamp(-1200,3300,V(x)));  function vec3 color(vec3 x) = cmap(clamp(-1200,3300,V(x)));
27  function real mask(vec3 x) = 1.0 if (S(x) < smax) else 0.0; // NOTISO  function real mask(vec3 x) = 1.0 if (S(x) < smax) else 0.0; // NOTISO

Legend:
Removed from v.3312  
changed lines
  Added in v.3313

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