23 #include "../../stroke/BasicStrokeShaders.h"
36 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`PolygonalizationShader`\n"
40 ".. method:: __init__(error)\n"
42 " Builds a PolygonalizationShader object.\n"
44 " :arg error: The error we want our polygonal approximation to have\n"
45 " with respect to the original geometry. The smaller, the closer\n"
46 " the new stroke is to the original one. This error corresponds to\n"
47 " the maximum distance between the new stroke and the old one.\n"
48 " :type error: float\n"
50 ".. method:: shade(stroke)\n"
52 " Modifies the Stroke geometry so that it looks more \"polygonal\".\n"
53 " The basic idea is to start from the minimal stroke approximation\n"
54 " consisting in a line joining the first vertex to the last one and\n"
55 " to subdivide using the original stroke vertices until a certain\n"
56 " error is reached.\n"
58 " :arg stroke: A Stroke object.\n"
59 " :type stroke: :class:`freestyle.types.Stroke`\n";
65 static const char *kwlist[] = {
"error",
nullptr};
68 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"f", (
char **)kwlist, &f)) {
78 PyVarObject_HEAD_INIT(
nullptr, 0)
"PolygonalizationShader",
96 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static int PolygonalizationShader___init__(BPy_PolygonalizationShader *self, PyObject *args, PyObject *kwds)
static char PolygonalizationShader___doc__[]
PyTypeObject PolygonalizationShader_Type
PyTypeObject StrokeShader_Type