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

PolygonalizationShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for PolygonalizationShader:

StrokeShader 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.


Public Member Functions

 PolygonalizationShader (float iError)
virtual void shade (Stroke &stroke) const

Constructor & Destructor Documentation

PolygonalizationShader float  iError  )  [inline]
 

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 shading method

Reimplemented from StrokeShader.


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