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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3233 - (download) (annotate)
Tue Aug 11 15:07:12 2015 UTC (4 years, 1 month ago) by cchiw
File size: 396 byte(s)
call to curl/hess and added example
input real stepSize;
input int imgResU;
input int imgResV;
input fem#0(2)[] m;


field#0(2)[] F =toField(m);

strand RayCast (int ui, int vi) {
    vec2 pos=[ui,imgResV-vi]*stepSize;    //flip y
    output real out=0.0;
   
    update {
        if(inside(pos,F)){
            out= F(pos);
        }
        stabilize;
    }
}
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