21 PolygonalizationShader___doc__,
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)
65 "PolygonalizationShader",
83 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
84 PolygonalizationShader___doc__,
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :arg inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :arg inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
static int PolygonalizationShader___init__(BPy_PolygonalizationShader *self, PyObject *args, PyObject *kwds)
PyTypeObject PolygonalizationShader_Type
PyTypeObject StrokeShader_Type
Class gathering basic stroke shaders.
PyObject_HEAD Freestyle::StrokeShader * ss