9 #include "../../stroke/BasicStrokeShaders.h"
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`PolygonalizationShader`\n"
26 ".. method:: __init__(error)\n"
28 " Builds a PolygonalizationShader object.\n"
30 " :arg error: The error we want our polygonal approximation to have\n"
31 " with respect to the original geometry. The smaller, the closer\n"
32 " the new stroke is to the original one. This error corresponds to\n"
33 " the maximum distance between the new stroke and the old one.\n"
34 " :type error: float\n"
36 ".. method:: shade(stroke)\n"
38 " Modifies the Stroke geometry so that it looks more \"polygonal\".\n"
39 " The basic idea is to start from the minimal stroke approximation\n"
40 " consisting in a line joining the first vertex to the last one and\n"
41 " to subdivide using the original stroke vertices until a certain\n"
42 " error is reached.\n"
44 " :arg stroke: A Stroke object.\n"
45 " :type stroke: :class:`freestyle.types.Stroke`\n";
51 static const char *kwlist[] = {
"error",
nullptr};
54 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"f", (
char **)kwlist, &f)) {
64 PyVarObject_HEAD_INIT(
nullptr, 0)
"PolygonalizationShader",
82 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