9 #include "../../stroke/BasicStrokeShaders.h"
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`BezierCurveShader`\n"
26 ".. method:: __init__(error=4.0)\n"
28 " Builds a BezierCurveShader object.\n"
30 " :arg error: The error we're allowing for the approximation. This\n"
31 " error is the max distance allowed between the new curve and the\n"
32 " original geometry.\n"
33 " :type error: float\n"
35 ".. method:: shade(stroke)\n"
37 " Transforms the stroke backbone geometry so that it corresponds to a\n"
38 " Bezier Curve approximation of the original backbone geometry.\n"
40 " :arg stroke: A Stroke object.\n"
41 " :type stroke: :class:`freestyle.types.Stroke`\n";
45 static const char *kwlist[] = {
"error",
nullptr};
48 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|f", (
char **)kwlist, &f)) {
58 PyVarObject_HEAD_INIT(
nullptr, 0)
"BezierCurveShader",
76 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