equal
deleted
inserted
replaced
620 return NULL; |
620 return NULL; |
621 |
621 |
622 printf("[pyrit] Running ray tracer\n"); |
622 printf("[pyrit] Running ray tracer\n"); |
623 ((RaytracerObject *)self)->raytracer->getTop()->optimize(); |
623 ((RaytracerObject *)self)->raytracer->getTop()->optimize(); |
624 data = (Float *) malloc(w*h*3*sizeof(Float)); |
624 data = (Float *) malloc(w*h*3*sizeof(Float)); |
625 ((RaytracerObject *)self)->raytracer->render(w, h, data); |
625 DefaultSampler sampler(data, w, h); |
|
626 ((RaytracerObject *)self)->raytracer->setSampler(&sampler); |
|
627 ((RaytracerObject *)self)->raytracer->render(); |
626 if (!data) { |
628 if (!data) { |
627 Py_INCREF(Py_None); |
629 Py_INCREF(Py_None); |
628 return Py_None; |
630 return Py_None; |
629 } |
631 } |
630 |
632 |