23 #include "../../stroke/BasicStrokeShaders.h"
36 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`BezierCurveShader`\n"
40 ".. method:: __init__(error=4.0)\n"
42 " Builds a BezierCurveShader object.\n"
44 " :arg error: The error we're allowing for the approximation. This\n"
45 " error is the max distance allowed between the new curve and the\n"
46 " original geometry.\n"
47 " :type error: float\n"
49 ".. method:: shade(stroke)\n"
51 " Transforms the stroke backbone geometry so that it corresponds to a\n"
52 " Bezier Curve approximation of the original backbone geometry.\n"
54 " :arg stroke: A Stroke object.\n"
55 " :type stroke: :class:`freestyle.types.Stroke`\n";
59 static const char *kwlist[] = {
"error",
nullptr};
62 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|f", (
char **)kwlist, &f)) {
72 PyVarObject_HEAD_INIT(
nullptr, 0)
"BezierCurveShader",
90 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static char BezierCurveShader___doc__[]
static int BezierCurveShader___init__(BPy_BezierCurveShader *self, PyObject *args, PyObject *kwds)
PyTypeObject BezierCurveShader_Type
PyTypeObject StrokeShader_Type