9 #include "../../stroke/AdvancedStrokeShaders.h"
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`SmoothingShader`\n"
26 ".. method:: __init__(num_iterations=100, factor_point=0.1, \\\n"
27 " factor_curvature=0.0, factor_curvature_difference=0.2, \\\n"
28 " aniso_point=0.0, aniso_normal=0.0, aniso_curvature=0.0, \\\n"
29 " carricature_factor=1.0)\n"
31 " Builds a SmoothingShader object.\n"
33 " :arg num_iterations: The number of iterations.\n"
34 " :type num_iterations: int\n"
35 " :arg factor_point: 0.1\n"
36 " :type factor_point: float\n"
37 " :arg factor_curvature: 0.0\n"
38 " :type factor_curvature: float\n"
39 " :arg factor_curvature_difference: 0.2\n"
40 " :type factor_curvature_difference: float\n"
41 " :arg aniso_point: 0.0\n"
42 " :type aniso_point: float\n"
43 " :arg aniso_normal: 0.0\n"
44 " :type aniso_normal: float\n"
45 " :arg aniso_curvature: 0.0\n"
46 " :type aniso_curvature: float\n"
47 " :arg carricature_factor: 1.0\n"
48 " :type carricature_factor: float\n"
50 ".. method:: shade(stroke)\n"
52 " Smooths the stroke by moving the vertices to make the stroke\n"
53 " smoother. Uses curvature flow to converge towards a curve of\n"
54 " constant curvature. The diffusion method we use is anisotropic to\n"
55 " prevent the diffusion across corners.\n"
57 " :arg stroke: A Stroke object.\n"
58 " :type stroke: :class:`freestyle.types.Stroke`\n";
62 static const char *kwlist[] = {
66 "factor_curvature_difference",
74 double d2 = 0.1, d3 = 0.0, d4 = 0.2, d5 = 0.0, d6 = 0.0, d7 = 0.0, d8 = 1.0;
76 if (!PyArg_ParseTupleAndKeywords(
77 args, kwds,
"|iddddddd", (
char **)kwlist, &
i1, &d2, &d3, &d4, &d5, &d6, &d7, &d8)) {
87 PyVarObject_HEAD_INIT(
nullptr, 0)
"SmoothingShader",
105 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