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

#include <BasicStrokeShaders.h>

Inherits 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
void * py_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 509 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 520 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 525 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: