23 #include "../../stroke/AdvancedPredicates1D.h"
36 "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`DensityLowerThanUP1D`\n"
38 ".. method:: __init__(threshold, sigma=2.0)\n"
40 " Builds a DensityLowerThanUP1D object.\n"
42 " :arg threshold: The value of the threshold density. Any Interface1D\n"
43 " having a density lower than this threshold will match.\n"
44 " :type threshold: float\n"
45 " :arg sigma: The sigma value defining the density evaluation window\n"
46 " size used in the :class:`freestyle.functions.DensityF0D` functor.\n"
47 " :type sigma: float\n"
49 ".. method:: __call__(inter)\n"
51 " Returns true if the density evaluated for the Interface1D is less\n"
52 " than a user-defined density value.\n"
54 " :arg inter: An Interface1D object.\n"
55 " :type inter: :class:`freestyle.types.Interface1D`\n"
56 " :return: True if the density is lower than a threshold.\n"
63 static const char *kwlist[] = {
"threshold",
"sigma",
nullptr};
66 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"d|d", (
char **)kwlist, &d1, &d2)) {
76 PyVarObject_HEAD_INIT(
nullptr, 0)
"DensityLowerThanUP1D",
94 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyTypeObject DensityLowerThanUP1D_Type
static char DensityLowerThanUP1D___doc__[]
static int DensityLowerThanUP1D___init__(BPy_DensityLowerThanUP1D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryPredicate1D_Type