9 #include "../../../view_map/Functions0D.h"
22 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
23 ":class:`freestyle.types.UnaryFunction0DMaterial` > :class:`MaterialF0D`\n"
25 ".. method:: __init__()\n"
27 " Builds a MaterialF0D object.\n"
29 ".. method:: __call__(it)\n"
31 " Returns the material of the object evaluated at the\n"
32 " :class:`freestyle.types.Interface0D` pointed by the\n"
33 " Interface0DIterator. This evaluation can be ambiguous (in the case of\n"
34 " a :class:`freestyle.types.TVertex` for example. This functor tries to\n"
35 " remove this ambiguity using the context offered by the 1D element to\n"
36 " which the Interface0DIterator belongs to and by arbitrary choosing the\n"
37 " material of the face that lies on its left when following the 1D\n"
38 " element if there are two different materials on each side of the\n"
39 " point. However, there still can be problematic cases, and the user\n"
40 " willing to deal with this cases in a specific way should implement its\n"
41 " own getMaterial functor.\n"
43 " :arg it: An Interface0DIterator object.\n"
44 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
45 " :return: The material of the object evaluated at the pointed\n"
47 " :rtype: :class:`freestyle.types.Material`\n";
51 static const char *kwlist[] = {
nullptr};
53 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
57 self->py_uf0D_material.uf0D_material->py_uf0D = (PyObject *)
self;
64 PyVarObject_HEAD_INIT(
nullptr, 0)
"MaterialF0D",
82 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