Blender  V3.3
Functions | Variables
BPy_PolygonalizationShader.cpp File Reference
#include "BPy_PolygonalizationShader.h"
#include "../../stroke/BasicStrokeShaders.h"

Go to the source code of this file.

Functions

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

Variables

static char PolygonalizationShader___doc__ []
 
PyTypeObject PolygonalizationShader_Type
 

Function Documentation

◆ PolygonalizationShader___init__()

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

Definition at line 47 of file BPy_PolygonalizationShader.cpp.

Variable Documentation

◆ PolygonalizationShader___doc__

char PolygonalizationShader___doc__[]
static
Initial value:
=
"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"

Definition at line 21 of file BPy_PolygonalizationShader.cpp.

◆ PolygonalizationShader_Type

PyTypeObject PolygonalizationShader_Type

Definition at line 63 of file BPy_PolygonalizationShader.cpp.

Referenced by StrokeShader_Init().