PolygonalizationShader Class Reference
#include <BasicStrokeShaders.h>
Inheritance diagram for PolygonalizationShader:
List of all members.
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.
Constructor & Destructor Documentation
|
Builds the shader. - Parameters:
-
| 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. |
|
Member Function Documentation
virtual void shade |
( |
Stroke & |
stroke |
) |
const [virtual] |
|
The documentation for this class was generated from the following file: