Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
Freestyle::SmoothingShader Class Reference

#include <AdvancedStrokeShaders.h>

Inheritance diagram for Freestyle::SmoothingShader:
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
voidpy_ss
 

Detailed Description

[ 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.

See also
smoothing/smoothing.html

Definition at line 95 of file AdvancedStrokeShaders.h.

Constructor & Destructor Documentation

◆ SmoothingShader()

Freestyle::SmoothingShader::SmoothingShader ( int  iNbIteration,
real  iFactorPoint,
real  ifactorCurvature,
real  iFactorCurvatureDifference,
real  iAnisoPoint,
real  iAnisoNormal,
real  iAnisoCurvature,
real  icarricatureFactor 
)

Builds the shader.

Parameters
iNbIterationThe number of iterations. (400)
iFactorPoint0
ifactorCurvature0
iFactorCurvatureDifference0.2
iAnisoPoint0
iAnisoNormal0
iAnisoCurvature0
icarricatureFactor1

Definition at line 148 of file AdvancedStrokeShaders.cpp.

References _anisoCurvature, _anisoNormal, _anisoPoint, _carricatureFactor, _factorCurvature, _factorCurvatureDifference, _factorPoint, and _nbIterations.

◆ ~SmoothingShader()

virtual Freestyle::SmoothingShader::~SmoothingShader ( )
inlinevirtual

Destructor.

Definition at line 125 of file AdvancedStrokeShaders.h.

Member Function Documentation

◆ shade()

int Freestyle::SmoothingShader::shade ( Stroke ioStroke) const
virtual

Member Data Documentation

◆ _anisoCurvature

real Freestyle::SmoothingShader::_anisoCurvature
protected

Definition at line 139 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _anisoNormal

real Freestyle::SmoothingShader::_anisoNormal
protected

Definition at line 138 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _anisoPoint

real Freestyle::SmoothingShader::_anisoPoint
protected

Definition at line 137 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _carricatureFactor

real Freestyle::SmoothingShader::_carricatureFactor
protected

Definition at line 140 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _factorCurvature

real Freestyle::SmoothingShader::_factorCurvature
protected

Definition at line 135 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _factorCurvatureDifference

real Freestyle::SmoothingShader::_factorCurvatureDifference
protected

Definition at line 136 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _factorPoint

real Freestyle::SmoothingShader::_factorPoint
protected

Definition at line 134 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _nbIterations

int Freestyle::SmoothingShader::_nbIterations
protected

Definition at line 133 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().


The documentation for this class was generated from the following files: