Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-07-22 01:24:37 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-22 01:24:37 +0400
commit7426a3e35bb6ebc5c08eb307c0f9d30ef51ae570 (patch)
tree20ca168e42005a447ce4a89f37b3a238a92942cb /source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp
parentab722884d3684808b17f76ae742ef59dccf4f8e2 (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/winged_edge/WingedEdgeBuilder.cpp')
-rwxr-xr-xsource/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp b/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp
index e611c1106f2..c95231a72dc 100755
--- a/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp
+++ b/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp
@@ -28,8 +28,8 @@ using namespace std;
void WingedEdgeBuilder::visitIndexedFaceSet(IndexedFaceSet& ifs) {
WShape *shape = new WShape;
buildWShape(*shape, ifs);
- shape->SetId(ifs.getId().getFirst());
- //ifs.SetId(shape->GetId());
+ shape->setId(ifs.getId().getFirst());
+ //ifs.setId(shape->GetId());
}
void WingedEdgeBuilder::visitNodeShape(NodeShape& ns) {
@@ -93,14 +93,14 @@ void WingedEdgeBuilder::buildWShape(WShape& shape, IndexedFaceSet& ifs) {
const Material*const* mats = ifs.materials();
for(unsigned i=0; i<ifs.msize(); ++i)
materials.push_back(*(mats[i]));
- shape.SetMaterials(materials);
+ shape.setMaterials(materials);
}
// const Material * mat = (ifs.material());
// if (mat)
- // shape.SetMaterial(*mat);
+ // shape.setMaterial(*mat);
// else if(_current_material)
- // shape.SetMaterial(*_current_material);
+ // shape.setMaterial(*_current_material);
// sets the current WShape to shape
_current_wshape = &shape;
@@ -193,7 +193,7 @@ void WingedEdgeBuilder::buildWShape(WShape& shape, IndexedFaceSet& ifs) {
++fit;
}
if(normalsSet.size()!=1){
- (*wv)->SetSmooth(false);
+ (*wv)->setSmooth(false);
}
}
// Adds the new WShape to the WingedEdge structure
@@ -208,7 +208,7 @@ void WingedEdgeBuilder::buildWVertices(WShape& shape,
vertex = new WVertex(Vec3r(vertices[i],
vertices[i + 1],
vertices[i + 2]));
- vertex->SetId(i / 3);
+ vertex->setId(i / 3);
shape.AddVertex(vertex);
}
}