Blender
V3.3
|
#include <AdvancedStrokeShaders.h>
Public Member Functions | |
Smoother (Stroke &ioStroke) | |
virtual | ~Smoother () |
void | smooth (int nbIterations, real iFactorPoint, real ifactorCurvature, real iFactorCurvatureDifference, real iAnisoPoint, real iAnisoNormal, real iAnisoCurvature, real icarricatureFactor) |
void | computeCurvature () |
Protected Member Functions | |
void | iteration () |
void | copyVertices () |
Protected Attributes | |
real | _factorPoint |
real | _factorCurvature |
real | _factorCurvatureDifference |
real | _anisoPoint |
real | _anisoNormal |
real | _anisoCurvature |
real | _carricatureFactor |
Stroke * | _stroke |
int | _nbVertices |
Vec2r * | _vertex |
Vec2r * | _normal |
real * | _curvature |
bool * | _isFixedVertex |
bool | _isClosedCurve |
bool | _safeTest |
Definition at line 143 of file AdvancedStrokeShaders.h.
Freestyle::Smoother::Smoother | ( | Stroke & | ioStroke | ) |
Definition at line 186 of file AdvancedStrokeShaders.cpp.
References _curvature, _isClosedCurve, _nbVertices, _normal, _safeTest, _stroke, _vertex, Freestyle::M_EPSILON, Freestyle::VecMat::Vec< T, N >::norm(), Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), v, and Freestyle::Stroke::vertices_size().
|
virtual |
Definition at line 206 of file AdvancedStrokeShaders.cpp.
References _curvature, _normal, and _vertex.
void Freestyle::Smoother::computeCurvature | ( | ) |
Definition at line 286 of file AdvancedStrokeShaders.cpp.
References _curvature, _isClosedCurve, _nbVertices, _normal, _vertex, Freestyle::M_EPSILON, Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::VecMat::Vec< T, N >::normalizeSafe().
Referenced by iteration().
|
protected |
Definition at line 336 of file AdvancedStrokeShaders.cpp.
References _carricatureFactor, _stroke, _vertex, Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::UpdateLength(), and v.
Referenced by smooth().
|
protected |
Definition at line 244 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _curvature, _factorCurvature, _factorCurvatureDifference, _factorPoint, _isClosedCurve, _nbVertices, _normal, _safeTest, _vertex, computeCurvature(), Freestyle::edgeStopping(), v1, and v2.
Referenced by smooth().
void Freestyle::Smoother::smooth | ( | int | nbIterations, |
real | iFactorPoint, | ||
real | ifactorCurvature, | ||
real | iFactorCurvatureDifference, | ||
real | iAnisoPoint, | ||
real | iAnisoNormal, | ||
real | iAnisoCurvature, | ||
real | icarricatureFactor | ||
) |
Definition at line 213 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _carricatureFactor, _factorCurvature, _factorCurvatureDifference, _factorPoint, copyVertices(), and iteration().
Referenced by Freestyle::SmoothingShader::shade().
|
protected |
Definition at line 166 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 165 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 164 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 167 of file AdvancedStrokeShaders.h.
Referenced by copyVertices(), and smooth().
|
protected |
Definition at line 176 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), Smoother(), and ~Smoother().
|
protected |
Definition at line 162 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 163 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 161 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 179 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), and Smoother().
|
protected |
Definition at line 177 of file AdvancedStrokeShaders.h.
|
protected |
Definition at line 173 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), and Smoother().
|
protected |
Definition at line 175 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), Smoother(), and ~Smoother().
|
protected |
Definition at line 180 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and Smoother().
|
protected |
Definition at line 172 of file AdvancedStrokeShaders.h.
Referenced by copyVertices(), and Smoother().
|
protected |
Definition at line 174 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), copyVertices(), iteration(), Smoother(), and ~Smoother().