|
Blender V4.3
|
#include <AdvancedStrokeShaders.h>
Inherits Freestyle::StrokeShader.
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 |
Public Member Functions inherited from Freestyle::StrokeShader | |
| 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 | |
Public Attributes inherited from Freestyle::StrokeShader | |
| 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 93 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 152 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _carricatureFactor, _factorCurvature, _factorCurvatureDifference, _factorPoint, and _nbIterations.
|
inlinevirtual |
Destructor.
Definition at line 123 of file AdvancedStrokeShaders.h.
The shading method.
Reimplemented from Freestyle::StrokeShader.
Definition at line 171 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _carricatureFactor, _factorCurvature, _factorCurvatureDifference, _factorPoint, _nbIterations, and Freestyle::Smoother::smooth().
|
protected |
Definition at line 135 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().
|
protected |
Definition at line 136 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 131 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 132 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 130 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().
|
protected |
Definition at line 129 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SmoothingShader().