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 3234 - (download) (annotate)
Fri Aug 14 13:35:44 2015 UTC (4 years, 1 month ago) by cchiw
File size: 396 byte(s)
updated examples
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 {
            out= F(pos);
initially [ RayCast(ui, vi) | vi in 0..imgResV-1, ui in 0..imgResU-1];

ViewVC Help
Powered by ViewVC 1.0.0