Blender V4.3
Freestyle::SmoothingShader Class Reference

#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
 

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 93 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 152 of file AdvancedStrokeShaders.cpp.

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

◆ ~SmoothingShader()

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

Destructor.

Definition at line 123 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 135 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _anisoNormal

real Freestyle::SmoothingShader::_anisoNormal
protected

Definition at line 134 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _anisoPoint

real Freestyle::SmoothingShader::_anisoPoint
protected

Definition at line 133 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _carricatureFactor

real Freestyle::SmoothingShader::_carricatureFactor
protected

Definition at line 136 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _factorCurvature

real Freestyle::SmoothingShader::_factorCurvature
protected

Definition at line 131 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _factorCurvatureDifference

real Freestyle::SmoothingShader::_factorCurvatureDifference
protected

Definition at line 132 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _factorPoint

real Freestyle::SmoothingShader::_factorPoint
protected

Definition at line 130 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().

◆ _nbIterations

int Freestyle::SmoothingShader::_nbIterations
protected

Definition at line 129 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SmoothingShader().


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