Blender
V3.3
|
#include <AdvancedStrokeShaders.h>
Public Member Functions | |
SmoothingShader (int iNbIteration, real iFactorPoint, real ifactorCurvature, real iFactorCurvatureDifference, real iAnisoPoint, real iAnisoNormal, real iAnisoCurvature, real icarricatureFactor) | |
virtual | ~SmoothingShader () |
virtual int | shade (Stroke &ioStroke) const |
![]() | |
StrokeShader () | |
virtual | ~StrokeShader () |
virtual string | getName () const |
Protected Attributes | |
int | _nbIterations |
real | _factorPoint |
real | _factorCurvature |
real | _factorCurvatureDifference |
real | _anisoPoint |
real | _anisoNormal |
real | _anisoCurvature |
real | _carricatureFactor |
Additional Inherited Members | |
![]() | |
void * | py_ss |
[ Geometry Shader ]. Smooths the stroke. (Moves the vertices to make the stroke smoother). Uses curvature flow to converge towards a curve of constant curvature. The diffusion method we use is anisotropic to prevent the diffusion across corners.
Definition at line 95 of file AdvancedStrokeShaders.h.
Freestyle::SmoothingShader::SmoothingShader | ( | int | iNbIteration, |
real | iFactorPoint, | ||
real | ifactorCurvature, | ||
real | iFactorCurvatureDifference, | ||
real | iAnisoPoint, | ||
real | iAnisoNormal, | ||
real | iAnisoCurvature, | ||
real | icarricatureFactor | ||
) |
Builds the shader.
iNbIteration | The number of iterations. (400) |
iFactorPoint | 0 |
ifactorCurvature | 0 |
iFactorCurvatureDifference | 0.2 |
iAnisoPoint | 0 |
iAnisoNormal | 0 |
iAnisoCurvature | 0 |
icarricatureFactor | 1 |
Definition at line 148 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _carricatureFactor, _factorCurvature, _factorCurvatureDifference, _factorPoint, and _nbIterations.
|
inlinevirtual |
Destructor.
Definition at line 125 of file AdvancedStrokeShaders.h.
|
virtual |
The shading method.
Reimplemented from Freestyle::StrokeShader.
Definition at line 167 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _carricatureFactor, _factorCurvature, _factorCurvatureDifference, _factorPoint, _nbIterations, and Freestyle::Smoother::smooth().
|
protected |
Definition at line 139 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 138 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 137 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 140 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 135 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 136 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 134 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 133 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().