9 #include "../../stroke/BasicStrokeShaders.h"
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`GuidingLinesShader`\n"
26 ".. method:: __init__(offset)\n"
28 " Builds a GuidingLinesShader object.\n"
30 " :arg offset: The line that replaces the stroke is initially in the\n"
31 " middle of the initial stroke bounding box. offset is the value\n"
32 " of the displacement which is applied to this line along its\n"
34 " :type offset: float\n"
36 ".. method:: shade(stroke)\n"
38 " Shader to modify the Stroke geometry so that it corresponds to its\n"
39 " main direction line. This shader must be used together with the\n"
40 " splitting operator using the curvature criterion. Indeed, the\n"
41 " precision of the approximation will depend on the size of the\n"
42 " stroke's pieces. The bigger the pieces are, the rougher the\n"
43 " approximation is.\n"
45 " :arg stroke: A Stroke object.\n"
46 " :type stroke: :class:`freestyle.types.Stroke`\n";
52 static const char *kwlist[] = {
"offset",
nullptr};
55 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"f", (
char **)kwlist, &f)) {
65 PyVarObject_HEAD_INIT(
nullptr, 0)
"GuidingLinesShader",
83 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