21 SmoothingShader___doc__,
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`SmoothingShader`\n"
26 ".. method:: __init__(num_iterations=100, factor_point=0.1, "
27 "factor_curvature=0.0, factor_curvature_difference=0.2, "
28 "aniso_point=0.0, aniso_normal=0.0, aniso_curvature=0.0, "
29 "carricature_factor=1.0)\n"
31 " Builds a SmoothingShader object.\n"
33 " :param num_iterations: The number of iterations.\n"
34 " :type num_iterations: int\n"
35 " :param factor_point: 0.1\n"
36 " :type factor_point: float\n"
37 " :param factor_curvature: 0.0\n"
38 " :type factor_curvature: float\n"
39 " :param factor_curvature_difference: 0.2\n"
40 " :type factor_curvature_difference: float\n"
41 " :param aniso_point: 0.0\n"
42 " :type aniso_point: float\n"
43 " :param aniso_normal: 0.0\n"
44 " :type aniso_normal: float\n"
45 " :param aniso_curvature: 0.0\n"
46 " :type aniso_curvature: float\n"
47 " :param 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 " :param stroke: A Stroke object.\n"
58 " :type stroke: :class:`freestyle.types.Stroke`\n");
61 static const char *kwlist[] = {
65 "factor_curvature_difference",
73 double d2 = 0.1, d3 = 0.0, d4 = 0.2, d5 = 0.0, d6 = 0.0, d7 = 0.0, d8 = 1.0;
75 if (!PyArg_ParseTupleAndKeywords(args,
106 PyVarObject_HEAD_INIT(
nullptr, 0)
125 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
126 SmoothingShader___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" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
static int SmoothingShader___init__(BPy_SmoothingShader *self, PyObject *args, PyObject *kwds)
PyTypeObject SmoothingShader_Type
PyTypeObject StrokeShader_Type
SmoothingShader(int iNbIteration, real iFactorPoint, real ifactorCurvature, real iFactorCurvatureDifference, real iAnisoPoint, real iAnisoNormal, real iAnisoCurvature, real icarricatureFactor)
PyObject_HEAD Freestyle::StrokeShader * ss