mitsuba-python: added Integrator bindings

metadata
Wenzel Jakob 2013-10-29 00:03:12 +01:00
parent 5aa247c89d
commit 77a220bee4
1 changed files with 8 additions and 0 deletions

View File

@ -434,6 +434,14 @@ void export_render() {
.def("setFarClip", &ProjectiveCamera::setFarClip)
.def("setFocusDistance", &ProjectiveCamera::setFocusDistance);
BP_CLASS(Integrator, ConfigurableObject, bp::no_init)
.def("preprocess", &Integrator::preprocess)
.def("render", &Integrator::render)
.def("cancel", &Integrator::cancel)
.def("postprocess", &Integrator::postprocess)
.def("configureSampler", &Integrator::configureSampler)
.def("getSubIntegrator", &Integrator::getSubIntegrator, BP_RETURN_VALUE);
BP_STRUCT(BSDFSamplingRecord, (bp::init<const Intersection &, Sampler *, ETransportMode>()))
.def(bp::init<const Intersection &, const Vector &, ETransportMode>())
.def(bp::init<const Intersection &, const Vector &, const Vector &, ETransportMode>())