23 #include "../../stroke/BasicStrokeShaders.h"
36 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`GuidingLinesShader`\n"
40 ".. method:: __init__(offset)\n"
42 " Builds a GuidingLinesShader object.\n"
44 " :arg offset: The line that replaces the stroke is initially in the\n"
45 " middle of the initial stroke bounding box. offset is the value\n"
46 " of the displacement which is applied to this line along its\n"
48 " :type offset: float\n"
50 ".. method:: shade(stroke)\n"
52 " Shader to modify the Stroke geometry so that it corresponds to its\n"
53 " main direction line. This shader must be used together with the\n"
54 " splitting operator using the curvature criterion. Indeed, the\n"
55 " precision of the approximation will depend on the size of the\n"
56 " stroke's pieces. The bigger the pieces are, the rougher the\n"
57 " approximation is.\n"
59 " :arg stroke: A Stroke object.\n"
60 " :type stroke: :class:`freestyle.types.Stroke`\n";
66 static const char *kwlist[] = {
"offset",
nullptr};
69 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"f", (
char **)kwlist, &f)) {
79 PyVarObject_HEAD_INIT(
nullptr, 0)
"GuidingLinesShader",
97 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyTypeObject GuidingLinesShader_Type
static char GuidingLinesShader___doc__[]
static int GuidingLinesShader___init__(BPy_GuidingLinesShader *self, PyObject *args, PyObject *kwds)
PyTypeObject StrokeShader_Type