23 #include "../../../view_map/Functions0D.h"
36 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
37 ":class:`freestyle.types.UnaryFunction0DMaterial` > :class:`MaterialF0D`\n"
39 ".. method:: __init__()\n"
41 " Builds a MaterialF0D object.\n"
43 ".. method:: __call__(it)\n"
45 " Returns the material of the object evaluated at the\n"
46 " :class:`freestyle.types.Interface0D` pointed by the\n"
47 " Interface0DIterator. This evaluation can be ambiguous (in the case of\n"
48 " a :class:`freestyle.types.TVertex` for example. This functor tries to\n"
49 " remove this ambiguity using the context offered by the 1D element to\n"
50 " which the Interface0DIterator belongs to and by arbitrary choosing the\n"
51 " material of the face that lies on its left when following the 1D\n"
52 " element if there are two different materials on each side of the\n"
53 " point. However, there still can be problematic cases, and the user\n"
54 " willing to deal with this cases in a specific way should implement its\n"
55 " own getMaterial functor.\n"
57 " :arg it: An Interface0DIterator object.\n"
58 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
59 " :return: The material of the object evaluated at the pointed\n"
61 " :rtype: :class:`freestyle.types.Material`\n";
65 static const char *kwlist[] = {
nullptr};
67 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
71 self->py_uf0D_material.uf0D_material->py_uf0D = (PyObject *)
self;
78 PyVarObject_HEAD_INIT(
nullptr, 0)
"MaterialF0D",
96 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static char MaterialF0D___doc__[]
PyTypeObject MaterialF0D_Type
static int MaterialF0D___init__(BPy_MaterialF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject UnaryFunction0DMaterial_Type