Blender V4.3
BPy_PolygonalizationShader.cpp File Reference

Go to the source code of this file.

Functions

 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)
 

Variables

PyTypeObject PolygonalizationShader_Type
 

Function Documentation

◆ PolygonalizationShader___init__()

static int PolygonalizationShader___init__ ( BPy_PolygonalizationShader * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 51 of file BPy_PolygonalizationShader.cpp.

References self.

◆ 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"  )

Variable Documentation

◆ PolygonalizationShader_Type

PyTypeObject PolygonalizationShader_Type

Definition at line 67 of file BPy_PolygonalizationShader.cpp.

Referenced by StrokeShader_Init().