Blender
V3.3
|
#include <BasicStrokeShaders.h>
Public Member Functions | |
BezierCurveShader (float error=4.0) | |
virtual string | getName () const |
virtual int | shade (Stroke &stroke) const |
! Bezier curve stroke shader More... | |
![]() | |
StrokeShader () | |
virtual | ~StrokeShader () |
Additional Inherited Members | |
![]() | |
void * | py_ss |
[ Geometry Shader ]. Transforms the stroke backbone geometry so that it corresponds to a Bezier Curve approximation of the original backbone geometry.
Definition at line 465 of file BasicStrokeShaders.h.
|
inline |
Builds the shader.
error | The error we're allowing for the approximation. This error is the max distance allowed between the new curve and the original geometry. |
Definition at line 475 of file BasicStrokeShaders.h.
References error().
|
inlinevirtual |
Returns the string corresponding to the shader's name.
Reimplemented from Freestyle::StrokeShader.
Definition at line 480 of file BasicStrokeShaders.h.
|
virtual |
! Bezier curve stroke shader
The shading method
Reimplemented from Freestyle::StrokeShader.
Definition at line 362 of file BasicStrokeShaders.cpp.
References Freestyle::a, Freestyle::StrokeVertex::attribute(), Freestyle::Stroke::ComputeSampling(), data, fabs(), blender::math::floor(), G, G_DEBUG_FREESTYLE, Freestyle::Stroke::getId(), Freestyle::StrokeInternal::StrokeVertexIterator::isEnd(), Freestyle::M_EPSILON, Freestyle::Stroke::RemoveVertex(), Freestyle::Stroke::Resample(), Freestyle::BezierCurve::segments(), Freestyle::StrokeVertex::setX(), Freestyle::StrokeVertex::setY(), Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::strokeVerticesSize(), Freestyle::Stroke::UpdateLength(), and v.