h o m e | d o c u m e n t a t i o n | c l a s s h i e r a r c h y |
#include <BasicStrokeShaders.h>
Inheritance diagram for PolygonalizationShader:
Public Member Functions | |
PolygonalizationShader (float iError) | |
virtual void | shade (Stroke &stroke) const |
PolygonalizationShader | ( | float | iError | ) | [inline] |
Builds the shader.
iError | The error we want our polygonal approximation to have with respect to the original geometry. The smaller, the closer the new stroke to the orinal one. This error corresponds to the maximum distance between the new stroke and the old one. |
virtual void shade | ( | Stroke & | stroke | ) | const [virtual] |
The shading method
Reimplemented from StrokeShader.