diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2008-07-22 01:24:37 +0400 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2008-07-22 01:24:37 +0400 |
commit | 7426a3e35bb6ebc5c08eb307c0f9d30ef51ae570 (patch) | |
tree | 20ca168e42005a447ce4a89f37b3a238a92942cb /source/blender/freestyle/intern/stroke/Operators.cpp | |
parent | ab722884d3684808b17f76ae742ef59dccf4f8e2 (diff) |
Added StrokeAttribute class. Beginning of StrokeVertex.
IMPORTANT: The setters functions' names were normalized due to constant confusion regarding capitalization. All the function names start with set... instead of Set.... This convention was changed all throughout Freestyle. To use Freestyle as an external renderer, the SWIG library MUST be regenerated.
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Operators.cpp')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/Operators.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/stroke/Operators.cpp b/source/blender/freestyle/intern/stroke/Operators.cpp index 8e34d9c5197..cfdd72ac839 100755 --- a/source/blender/freestyle/intern/stroke/Operators.cpp +++ b/source/blender/freestyle/intern/stroke/Operators.cpp @@ -756,7 +756,7 @@ void Operators::sort(BinaryPredicate1D& pred) { Stroke* createStroke(Interface1D& inter) { Stroke* stroke = new Stroke; - stroke->SetId(inter.getId()); + stroke->setId(inter.getId()); float currentCurvilignAbscissa = 0.f; @@ -784,7 +784,7 @@ Stroke* createStroke(Interface1D& inter) { current = stroke_vertex->point2d(); Vec3r vec_tmp(current - previous); currentCurvilignAbscissa += vec_tmp.norm(); - stroke_vertex->SetCurvilinearAbscissa(currentCurvilignAbscissa); + stroke_vertex->setCurvilinearAbscissa(currentCurvilignAbscissa); stroke->push_back(stroke_vertex); previous = current; ++it; @@ -805,10 +805,10 @@ Stroke* createStroke(Interface1D& inter) { current = stroke_vertex->point2d(); Vec3r vec_tmp(current - previous); currentCurvilignAbscissa += vec_tmp.norm(); - stroke_vertex->SetCurvilinearAbscissa(currentCurvilignAbscissa); + stroke_vertex->setCurvilinearAbscissa(currentCurvilignAbscissa); stroke->push_back(stroke_vertex); } - stroke->SetLength(currentCurvilignAbscissa); + stroke->setLength(currentCurvilignAbscissa); return stroke; } |