23 #include "../../stroke/AdvancedStrokeShaders.h"
36 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`SmoothingShader`\n"
40 ".. method:: __init__(num_iterations=100, factor_point=0.1, \\\n"
41 " factor_curvature=0.0, factor_curvature_difference=0.2, \\\n"
42 " aniso_point=0.0, aniso_normal=0.0, aniso_curvature=0.0, \\\n"
43 " carricature_factor=1.0)\n"
45 " Builds a SmoothingShader object.\n"
47 " :arg num_iterations: The number of iterations.\n"
48 " :type num_iterations: int\n"
49 " :arg factor_point: 0.1\n"
50 " :type factor_point: float\n"
51 " :arg factor_curvature: 0.0\n"
52 " :type factor_curvature: float\n"
53 " :arg factor_curvature_difference: 0.2\n"
54 " :type factor_curvature_difference: float\n"
55 " :arg aniso_point: 0.0\n"
56 " :type aniso_point: float\n"
57 " :arg aniso_normal: 0.0\n"
58 " :type aniso_normal: float\n"
59 " :arg aniso_curvature: 0.0\n"
60 " :type aniso_curvature: float\n"
61 " :arg carricature_factor: 1.0\n"
62 " :type carricature_factor: float\n"
64 ".. method:: shade(stroke)\n"
66 " Smoothes the stroke by moving the vertices to make the stroke\n"
67 " smoother. Uses curvature flow to converge towards a curve of\n"
68 " constant curvature. The diffusion method we use is anisotropic to\n"
69 " prevent the diffusion across corners.\n"
71 " :arg stroke: A Stroke object.\n"
72 " :type stroke: :class:`freestyle.types.Stroke`\n";
76 static const char *kwlist[] = {
80 "factor_curvature_difference",
88 double d2 = 0.1, d3 = 0.0, d4 = 0.2, d5 = 0.0, d6 = 0.0, d7 = 0.0, d8 = 1.0;
90 if (!PyArg_ParseTupleAndKeywords(
91 args, kwds,
"|iddddddd", (
char **)kwlist, &
i1, &d2, &d3, &d4, &d5, &d6, &d7, &d8)) {
101 PyVarObject_HEAD_INIT(
nullptr, 0)
"SmoothingShader",
119 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static char SmoothingShader___doc__[]
static int SmoothingShader___init__(BPy_SmoothingShader *self, PyObject *args, PyObject *kwds)
PyTypeObject SmoothingShader_Type
PyTypeObject StrokeShader_Type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint i1