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

SCM Repository

[diderot] Annotation of /branches/fem/examples/simple_d2s/simple_d2s.diderot
ViewVC logotype

Annotation of /branches/fem/examples/simple_d2s/simple_d2s.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3234 - (view) (download)

1 : cchiw 3233 input real stepSize;
2 :     input int imgResU;
3 :     input int imgResV;
4 :    
5 :    
6 : cchiw 3234 input fem#0(2)[] m;
7 : cchiw 3233 field#0(2)[] F =toField(m);
8 :    
9 :     strand RayCast (int ui, int vi) {
10 :     vec2 pos=[ui,imgResV-vi]*stepSize; //flip y
11 :     output real out=0.0;
12 :    
13 :     update {
14 :     if(inside(pos,F)){
15 :     out= F(pos);
16 :     }
17 :     stabilize;
18 :     }
19 :     }
20 :     initially [ RayCast(ui, vi) | vi in 0..imgResV-1, ui in 0..imgResU-1];

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