Go to the source code of this file.
|
| | PyDoc_STRVAR (PolygonalizationShader___doc__, "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`PolygonalizationShader`\n" "\n" "[Geometry shader]\n" "\n" ".. method:: __init__(error)\n" "\n" " Builds a PolygonalizationShader object.\n" "\n" " :arg error: The error we want our polygonal approximation to have\n" " with respect to the original geometry. The smaller, the closer\n" " the new stroke is to the original one. This error corresponds to\n" " the maximum distance between the new stroke and the old one.\n" " :type error: float\n" "\n" ".. method:: shade(stroke)\n" "\n" " Modifies the Stroke geometry so that it looks more \"polygonal\".\n" " The basic idea is to start from the minimal stroke approximation\n" " consisting in a line joining the first vertex to the last one and\n" " to subdivide using the original stroke vertices until a certain\n" " error is reached.\n" "\n" " :arg stroke: A Stroke object.\n" " :type stroke: :class:`freestyle.types.Stroke`\n") |
| |
| static int | PolygonalizationShader___init__ (BPy_PolygonalizationShader *self, PyObject *args, PyObject *kwds) |
| |
◆ PolygonalizationShader___init__()
◆ PyDoc_STRVAR()
| PyDoc_STRVAR |
( |
PolygonalizationShader___doc__ | , |
|
|
"Class hierarchy: :class:`freestyle.types.StrokeShader` | , |
|
|
:class:`PolygonalizationShader`\n" "\n" "\n" "\n" ".. method::__init__(error)\n" "\n" " Builds a PolygonalizationShader object.\n" "\n" " :arg error:The error we want our polygonal approximation to have\n" " with respect to the original geometry. The | smaller[Geometry shader], |
|
|
the closer\n" " the new stroke is to the original one. This error corresponds to\n" " the maximum distance between the new stroke and the old one.\n" " :type error:float\n" "\n" ".. method::shade(stroke)\n" "\n" " Modifies the Stroke geometry so that it looks more \"polygonal\".\n" " The basic idea is to start from the minimal stroke approximation\n" " consisting in a line joining the first vertex to the last one and\n" " to subdivide using the original stroke vertices until a certain\n" " error is reached.\n" "\n" " :arg stroke: A Stroke object.\n" " :type stroke: :class:`freestyle.types.Stroke`\n" | ) |
◆ PolygonalizationShader_Type
| PyTypeObject PolygonalizationShader_Type |