25 PolygonalizationShader___doc__,
26 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`PolygonalizationShader`\n"
30 ".. method:: __init__(error)\n"
32 " Builds a PolygonalizationShader object.\n"
34 " :arg error: The error we want our polygonal approximation to have\n"
35 " with respect to the original geometry. The smaller, the closer\n"
36 " the new stroke is to the original one. This error corresponds to\n"
37 " the maximum distance between the new stroke and the old one.\n"
38 " :type error: float\n"
40 ".. method:: shade(stroke)\n"
42 " Modifies the Stroke geometry so that it looks more \"polygonal\".\n"
43 " The basic idea is to start from the minimal stroke approximation\n"
44 " consisting in a line joining the first vertex to the last one and\n"
45 " to subdivide using the original stroke vertices until a certain\n"
46 " error is reached.\n"
48 " :arg stroke: A Stroke object.\n"
49 " :type stroke: :class:`freestyle.types.Stroke`\n");
55 static const char *kwlist[] = {
"error",
nullptr};
58 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"f", (
char **)kwlist, &f)) {
68 PyVarObject_HEAD_INIT(
nullptr, 0)
69 "PolygonalizationShader",
87 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
88 PolygonalizationShader___doc__,
PyDoc_STRVAR(PolygonalizationShader___doc__, "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`PolygonalizationShader`\n" "\n" "[Geometry shader]\n" "\n" ".. method:: __init__(error)\n" "\n" " Builds a PolygonalizationShader object.\n" "\n" " :arg error: The error we want our polygonal approximation to have\n" " with respect to the original geometry. The smaller, the closer\n" " the new stroke is to the original one. This error corresponds to\n" " the maximum distance between the new stroke and the old one.\n" " :type error: float\n" "\n" ".. method:: shade(stroke)\n" "\n" " Modifies the Stroke geometry so that it looks more \"polygonal\".\n" " The basic idea is to start from the minimal stroke approximation\n" " consisting in a line joining the first vertex to the last one and\n" " to subdivide using the original stroke vertices until a certain\n" " error is reached.\n" "\n" " :arg stroke: A Stroke object.\n" " :type stroke: :class:`freestyle.types.Stroke`\n")
static int PolygonalizationShader___init__(BPy_PolygonalizationShader *self, PyObject *args, PyObject *kwds)
PyTypeObject PolygonalizationShader_Type
PyTypeObject StrokeShader_Type
Class gathering basic stroke shaders.