Blender V4.3
Freestyle::Smoother Class Reference

#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
 

Detailed Description

Definition at line 139 of file AdvancedStrokeShaders.h.

Constructor & Destructor Documentation

◆ Smoother()

◆ ~Smoother()

Freestyle::Smoother::~Smoother ( )
virtual

Definition at line 211 of file AdvancedStrokeShaders.cpp.

References _curvature, _normal, and _vertex.

Member Function Documentation

◆ computeCurvature()

◆ copyVertices()

void Freestyle::Smoother::copyVertices ( )
protected

◆ iteration()

◆ smooth()

void Freestyle::Smoother::smooth ( int nbIterations,
real iFactorPoint,
real ifactorCurvature,
real iFactorCurvatureDifference,
real iAnisoPoint,
real iAnisoNormal,
real iAnisoCurvature,
real icarricatureFactor )

Member Data Documentation

◆ _anisoCurvature

real Freestyle::Smoother::_anisoCurvature
protected

Definition at line 162 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _anisoNormal

real Freestyle::Smoother::_anisoNormal
protected

Definition at line 161 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _anisoPoint

real Freestyle::Smoother::_anisoPoint
protected

Definition at line 160 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _carricatureFactor

real Freestyle::Smoother::_carricatureFactor
protected

Definition at line 163 of file AdvancedStrokeShaders.h.

Referenced by copyVertices(), and smooth().

◆ _curvature

real* Freestyle::Smoother::_curvature
protected

Definition at line 172 of file AdvancedStrokeShaders.h.

Referenced by computeCurvature(), iteration(), Smoother(), and ~Smoother().

◆ _factorCurvature

real Freestyle::Smoother::_factorCurvature
protected

Definition at line 158 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _factorCurvatureDifference

real Freestyle::Smoother::_factorCurvatureDifference
protected

Definition at line 159 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _factorPoint

real Freestyle::Smoother::_factorPoint
protected

Definition at line 157 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _isClosedCurve

bool Freestyle::Smoother::_isClosedCurve
protected

Definition at line 175 of file AdvancedStrokeShaders.h.

Referenced by computeCurvature(), iteration(), and Smoother().

◆ _isFixedVertex

bool* Freestyle::Smoother::_isFixedVertex
protected

Definition at line 173 of file AdvancedStrokeShaders.h.

◆ _nbVertices

int Freestyle::Smoother::_nbVertices
protected

Definition at line 169 of file AdvancedStrokeShaders.h.

Referenced by computeCurvature(), iteration(), and Smoother().

◆ _normal

Vec2r* Freestyle::Smoother::_normal
protected

Definition at line 171 of file AdvancedStrokeShaders.h.

Referenced by computeCurvature(), iteration(), Smoother(), and ~Smoother().

◆ _safeTest

bool Freestyle::Smoother::_safeTest
protected

Definition at line 176 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and Smoother().

◆ _stroke

Stroke* Freestyle::Smoother::_stroke
protected

Definition at line 168 of file AdvancedStrokeShaders.h.

Referenced by copyVertices(), and Smoother().

◆ _vertex

Vec2r* Freestyle::Smoother::_vertex
protected

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