21 DensityLowerThanUP1D___doc__,
22 "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`DensityLowerThanUP1D`\n"
24 ".. method:: __init__(threshold, sigma=2.0)\n"
26 " Builds a DensityLowerThanUP1D object.\n"
28 " :arg threshold: The value of the threshold density. Any Interface1D\n"
29 " having a density lower than this threshold will match.\n"
30 " :type threshold: float\n"
31 " :arg sigma: The sigma value defining the density evaluation window\n"
32 " size used in the :class:`freestyle.functions.DensityF0D` functor.\n"
33 " :type sigma: float\n"
35 ".. method:: __call__(inter)\n"
37 " Returns true if the density evaluated for the Interface1D is less\n"
38 " than a user-defined density value.\n"
40 " :arg inter: An Interface1D object.\n"
41 " :type inter: :class:`freestyle.types.Interface1D`\n"
42 " :return: True if the density is lower than a threshold.\n"
48 static const char *kwlist[] = {
"threshold",
"sigma",
nullptr};
51 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"d|d", (
char **)kwlist, &d1, &d2)) {
61 PyVarObject_HEAD_INIT(
nullptr, 0)
62 "DensityLowerThanUP1D",
80 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
81 DensityLowerThanUP1D___doc__,
Class gathering stroke creation algorithms.
PyTypeObject DensityLowerThanUP1D_Type
static int DensityLowerThanUP1D___init__(BPy_DensityLowerThanUP1D *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(DensityLowerThanUP1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryPredicate1D` > :class:`DensityLowerThanUP1D`\n" "\n" ".. method:: __init__(threshold, sigma=2.0)\n" "\n" " Builds a DensityLowerThanUP1D object.\n" "\n" " :arg threshold: The value of the threshold density. Any Interface1D\n" " having a density lower than this threshold will match.\n" " :type threshold: float\n" " :arg sigma: The sigma value defining the density evaluation window\n" " size used in the :class:`freestyle.functions.DensityF0D` functor.\n" " :type sigma: float\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns true if the density evaluated for the Interface1D is less\n" " than a user-defined density value.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: True if the density is lower than a threshold.\n" " :rtype: bool\n")
PyTypeObject UnaryPredicate1D_Type