1#ifndef _BBM_PYTHON_FRESNEL_H_
2#define _BBM_PYTHON_FRESNEL_H_
22 void fresnel(py::module& m,
const std::string& prefix =
"")
24 py::class_<ior::ior<T>>(m, (prefix +
"Ior").c_str())
25 .def(py::init<
const remove_diff_t<T>&>())
29 py::class_<ior::reflectance<T>>(m, (prefix +
"Reflectance").c_str())
30 .def(py::init<
const remove_diff_t<T>&>())
34 py::implicitly_convertible<remove_diff_t<T>,
ior::ior<T>>();
35 py::implicitly_convertible<ior::reflectance<T>,
ior::ior<T>>();
50 py::class_<ior::complex_ior<T>>(m, (prefix +
"ComplexIor").c_str())
51 .def(py::init<
const remove_diff_t<T>&>())
52 .def(py::init<
const remove_diff_t<T>&,
const remove_diff_t<T>&>())
54 .def(py::init<
const vec2d<T>&>())
Defines 'ior' and 'reflectance' types.
void fresnel(py::module &m, const std::string &prefix="")
Define a python interface for ior::ior and ior::reflectance given a value type T.
Definition: py_fresnel.h:22
void complex_fresnel(py::module &m, const std::string &prefix="")
Define a python interface for ior::complex given a value type T.
Definition: py_fresnel.h:48
Definition: aggregatebsdf.h:29
std::string toString(const T &)
toString alias
Definition: stringconvert.h:594
Base declaration of attribute; further specialized below.
Definition: attribute.h:26