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

#include <AdvancedStrokeShaders.h>

Inheritance diagram for Freestyle::Smoother:
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 143 of file AdvancedStrokeShaders.h.

Constructor & Destructor Documentation

◆ Smoother()

Freestyle::Smoother::Smoother ( Stroke ioStroke)

◆ ~Smoother()

Freestyle::Smoother::~Smoother ( )
virtual

Definition at line 206 of file AdvancedStrokeShaders.cpp.

References _curvature, _normal, and _vertex.

Member Function Documentation

◆ computeCurvature()

void Freestyle::Smoother::computeCurvature ( )

◆ copyVertices()

void Freestyle::Smoother::copyVertices ( )
protected

◆ iteration()

void Freestyle::Smoother::iteration ( )
protected

◆ 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 166 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _anisoNormal

real Freestyle::Smoother::_anisoNormal
protected

Definition at line 165 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _anisoPoint

real Freestyle::Smoother::_anisoPoint
protected

Definition at line 164 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _carricatureFactor

real Freestyle::Smoother::_carricatureFactor
protected

Definition at line 167 of file AdvancedStrokeShaders.h.

Referenced by copyVertices(), and smooth().

◆ _curvature

real* Freestyle::Smoother::_curvature
protected

Definition at line 176 of file AdvancedStrokeShaders.h.

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

◆ _factorCurvature

real Freestyle::Smoother::_factorCurvature
protected

Definition at line 162 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _factorCurvatureDifference

real Freestyle::Smoother::_factorCurvatureDifference
protected

Definition at line 163 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _factorPoint

real Freestyle::Smoother::_factorPoint
protected

Definition at line 161 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and smooth().

◆ _isClosedCurve

bool Freestyle::Smoother::_isClosedCurve
protected

Definition at line 179 of file AdvancedStrokeShaders.h.

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

◆ _isFixedVertex

bool* Freestyle::Smoother::_isFixedVertex
protected

Definition at line 177 of file AdvancedStrokeShaders.h.

◆ _nbVertices

int Freestyle::Smoother::_nbVertices
protected

Definition at line 173 of file AdvancedStrokeShaders.h.

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

◆ _normal

Vec2r* Freestyle::Smoother::_normal
protected

Definition at line 175 of file AdvancedStrokeShaders.h.

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

◆ _safeTest

bool Freestyle::Smoother::_safeTest
protected

Definition at line 180 of file AdvancedStrokeShaders.h.

Referenced by iteration(), and Smoother().

◆ _stroke

Stroke* Freestyle::Smoother::_stroke
protected

Definition at line 172 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: