Blender
V3.3
|
#include <BasicStrokeShaders.h>
Public Member Functions | |
GuidingLinesShader (float iOffset) | |
virtual string | getName () const |
virtual int | shade (Stroke &stroke) const |
![]() | |
StrokeShader () | |
virtual | ~StrokeShader () |
Additional Inherited Members | |
![]() | |
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 526 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 537 of file BasicStrokeShaders.h.
|
inlinevirtual |
Returns the string corresponding to the shader's name.
Reimplemented from Freestyle::StrokeShader.
Definition at line 542 of file BasicStrokeShaders.h.
|
virtual |
The shading method
Reimplemented from Freestyle::StrokeShader.
Definition at line 597 of file BasicStrokeShaders.cpp.
References Freestyle::StrokeShaders::CurvePiece::A, Freestyle::a, Freestyle::StrokeShaders::CurvePiece::B, usdtokens::b(), Freestyle::StrokeShaders::CurvePiece::error(), Freestyle::VecMat::Vec< T, N >::normalize(), offset, Freestyle::UnaryFunction1D< T >::result, size(), Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::strokeVerticesSize(), Freestyle::Stroke::UpdateLength(), v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().