9 #include "../../../stroke/AdvancedFunctions0D.h"
22 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
23 ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`LocalAverageDepthF0D`\n"
25 ".. method:: __init__(mask_size=5.0)\n"
27 " Builds a LocalAverageDepthF0D object.\n"
29 " :arg mask_size: The size of the mask.\n"
30 " :type mask_size: float\n"
32 ".. method:: __call__(it)\n"
34 " Returns the average depth around the\n"
35 " :class:`freestyle.types.Interface0D` pointed by the\n"
36 " Interface0DIterator. The result is obtained by querying the depth\n"
37 " buffer on a window around that point.\n"
39 " :arg it: An Interface0DIterator object.\n"
40 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
41 " :return: The average depth around the pointed Interface0D.\n"
48 static const char *kwlist[] = {
"mask_size",
nullptr};
51 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|d", (
char **)kwlist, &d)) {
55 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)
self;
62 PyVarObject_HEAD_INIT(
nullptr, 0)
"LocalAverageDepthF0D",
80 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyTypeObject LocalAverageDepthF0D_Type
static int LocalAverageDepthF0D___init__(BPy_LocalAverageDepthF0D *self, PyObject *args, PyObject *kwds)
static char LocalAverageDepthF0D___doc__[]
PyTypeObject UnaryFunction0DDouble_Type