|
Blender V4.3
|
#include <AdvancedStrokeShaders.h>
Inherited by Freestyle::Omitter.
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 139 of file AdvancedStrokeShaders.h.
| Freestyle::Smoother::Smoother | ( | Stroke & | ioStroke | ) |
Definition at line 190 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 211 of file AdvancedStrokeShaders.cpp.
References _curvature, _normal, and _vertex.
| void Freestyle::Smoother::computeCurvature | ( | ) |
Definition at line 291 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 341 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 249 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _curvature, _factorCurvature, _factorCurvatureDifference, _factorPoint, _isClosedCurve, _nbVertices, _normal, _safeTest, _vertex, computeCurvature(), Freestyle::edgeStopping(), Freestyle::VecMat::Vec< T, N >::norm(), 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 218 of file AdvancedStrokeShaders.cpp.
References _anisoCurvature, _anisoNormal, _anisoPoint, _carricatureFactor, _factorCurvature, _factorCurvatureDifference, _factorPoint, copyVertices(), and iteration().
Referenced by Freestyle::SmoothingShader::shade().
|
protected |
Definition at line 162 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 160 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 163 of file AdvancedStrokeShaders.h.
Referenced by copyVertices(), and smooth().
|
protected |
Definition at line 172 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), Smoother(), and ~Smoother().
|
protected |
Definition at line 158 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 159 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 157 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and smooth().
|
protected |
Definition at line 175 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), and Smoother().
|
protected |
Definition at line 173 of file AdvancedStrokeShaders.h.
|
protected |
Definition at line 169 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), and Smoother().
|
protected |
Definition at line 171 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), iteration(), Smoother(), and ~Smoother().
|
protected |
Definition at line 176 of file AdvancedStrokeShaders.h.
Referenced by iteration(), and Smoother().
|
protected |
Definition at line 168 of file AdvancedStrokeShaders.h.
Referenced by copyVertices(), and Smoother().
|
protected |
Definition at line 170 of file AdvancedStrokeShaders.h.
Referenced by computeCurvature(), copyVertices(), iteration(), Smoother(), and ~Smoother().