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

SCM Repository

[diderot] View of /branches/charisee_dev/examples/det3/det-1-byhand.diderot
ViewVC logotype

View of /branches/charisee_dev/examples/det3/det-1-byhand.diderot

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3303 - (download) (annotate)
Fri Oct 16 18:47:00 2015 UTC (5 years, 8 months ago) by cchiw
File size: 442 byte(s)
add to examples
int ires=200;
field#2(3)[3,3] V= c4hexic ⊛ image("slab-c4h-ten9-small.nrrd");

strand raycast(int ui, int vi) {
vec3 pos=[ui,vi,1];
tensor[3,3] F=V(pos);
real d=F[1,0];
real e=F[1,1];
real f=F[1,2];
real g=F[2,0];
real h=F[2,1];
real i=F[2,2];

output tensor[3,3] out=((F[0,0]*(e*i- f*g))-(F[0,1]*(d*i-f*g))+(F[0,1]*(d*h-e*g)))*V(pos);

  update {

initially [ raycast(ui, vi) | vi in 0..ires-1, ui in 0..ires-1 ];

ViewVC Help
Powered by ViewVC 1.0.0