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

#include <BasicStrokeShaders.h>

Inheritance diagram for Freestyle::StrokeShaders::GuidingLinesShader:
Freestyle::StrokeShader

Public Member Functions

 GuidingLinesShader (float iOffset)
 
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 corresponds to its main direction line. This shader must be used together with the splitting operator using the curvature criterion. Indeed, the precision of the approximation will depend on the size of the stroke's pieces. The bigger the pieces, the rougher the approximation.

Definition at line 526 of file BasicStrokeShaders.h.

Constructor & Destructor Documentation

◆ GuidingLinesShader()

Freestyle::StrokeShaders::GuidingLinesShader::GuidingLinesShader ( float  iOffset)
inline

Builds a Guiding Lines shader

Parameters
iOffsetThe line that replaces the stroke is initially in the middle of the initial stroke "bbox". iOffset is the value of the displacement which is applied to this line along its normal.

Definition at line 537 of file BasicStrokeShaders.h.

Member Function Documentation

◆ getName()

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

Returns the string corresponding to the shader's name.

Reimplemented from Freestyle::StrokeShader.

Definition at line 542 of file BasicStrokeShaders.h.

◆ shade()

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

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