Blender  V3.3
Public Member Functions | List of all members
Freestyle::StrokeShaders::PolygonalizationShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for Freestyle::StrokeShaders::PolygonalizationShader:
Freestyle::StrokeShader

Public Member Functions

 PolygonalizationShader (float iError)
 
virtual string getName () const
 
virtual int shade (Stroke &stroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
voidpy_ss
 

Detailed Description

[ Geometry Shader ]. Shader to modify the Stroke geometry so that it looks more "polygonal". The basic idea is to start from the minimal stroke approximation consisting in a line joining the first vertex to the last one and to subdivide using the original stroke vertices until a certain error is reached.

Definition at line 495 of file BasicStrokeShaders.h.

Constructor & Destructor Documentation

◆ PolygonalizationShader()

Freestyle::StrokeShaders::PolygonalizationShader::PolygonalizationShader ( float  iError)
inline

Builds the shader.

Parameters
iErrorThe error we want our polygonal approximation to have with respect to the original geometry. The smaller, the closer the new stroke to the original one. This error corresponds * to the maximum distance between the new stroke and the old one.

Definition at line 506 of file BasicStrokeShaders.h.

Member Function Documentation

◆ getName()

virtual string Freestyle::StrokeShaders::PolygonalizationShader::getName ( ) const
inlinevirtual

Returns the string corresponding to the shader's name.

Reimplemented from Freestyle::StrokeShader.

Definition at line 511 of file BasicStrokeShaders.h.

◆ shade()

int Freestyle::StrokeShaders::PolygonalizationShader::shade ( Stroke stroke) const
virtual

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