|
Blender V4.3
|
#include <BasicStrokeShaders.h>
Inherits 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 | |
| void * | py_ss |
[ 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 518 of file BasicStrokeShaders.h.
|
inline |
Builds a Guiding Lines shader
| iOffset | The 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 529 of file BasicStrokeShaders.h.
|
inlinevirtual |
Returns the string corresponding to the shader's name.
Reimplemented from Freestyle::StrokeShader.
Definition at line 534 of file BasicStrokeShaders.h.
The shading method
Reimplemented from Freestyle::StrokeShader.
Definition at line 608 of file BasicStrokeShaders.cpp.
References Freestyle::StrokeShaders::CurvePiece::A, Freestyle::StrokeShaders::CurvePiece::B, b, Freestyle::StrokeShaders::CurvePiece::error(), Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::UnaryFunction1D< T >::result, Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::strokeVerticesSize(), Freestyle::Stroke::UpdateLength(), v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().