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-17 10:35:30 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-17 10:35:30 +0400
commite4748940c0a61171d5c4e45d8d5a9637d05ac429 (patch)
tree12485e1e989e7e1f766c370f92d379ef565599c5 /source/blender/freestyle/intern/winged_edge/WEdge.h
parentcc1a6b398da9bd2cec78c4242c5b205f079aa4a6 (diff)
soc-2008-mxcurioni: SWIG removal - completed SVertex and CurvePoint classes migration. Stabilized a lot of the code for C++ -> Python conversion. Added the correct rich comparison operator and tested it. Corrected 'dupplicate' typo and changde to __copy__ for Python API.
From now on, when a set should be output (PySet_Type), it is given as a list (PyList_Type). The reason is that it doesn't really matter what we bring back to the Python interpreter. The set is guaranteed in memory on the C++ side. For the CurvePoint class, the userdata variable is not yet ported (and will probably available as a list or a dictionary). The CurvePoint implementation works except for the initialization from other CurvePoints: somehow, the inner variables don't seem to be correctly handled. I do not know if it is a bug in Freestyle or if the CurvePoint object's state is correct for my test case. CurvePoint needs more testing.
Diffstat (limited to 'source/blender/freestyle/intern/winged_edge/WEdge.h')
-rwxr-xr-xsource/blender/freestyle/intern/winged_edge/WEdge.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/WEdge.h b/source/blender/freestyle/intern/winged_edge/WEdge.h
index 1ab37246469..b4c6a38f5bd 100755
--- a/source/blender/freestyle/intern/winged_edge/WEdge.h
+++ b/source/blender/freestyle/intern/winged_edge/WEdge.h
@@ -68,7 +68,7 @@ public:
inline WVertex(const Vec3r &v) {_Id = 0; _Vertex = v; userdata = NULL; _Shape = NULL;_Smooth=true;_Border=-1;}
/*! Copy constructor */
WVertex(WVertex& iBrother);
- virtual WVertex * dupplicate();
+ virtual WVertex * duplicate();
virtual ~WVertex() {}
/*! accessors */
@@ -314,7 +314,7 @@ public:
/*! copy constructor */
WOEdge(WOEdge& iBrother);
- virtual WOEdge * dupplicate();
+ virtual WOEdge * duplicate();
/*! accessors */
// inline WOEdge *GetaCWEdge() {return _paCWEdge;}
@@ -393,7 +393,7 @@ public:
/*! Copy constructor */
WEdge(WEdge& iBrother);
- virtual WEdge * dupplicate();
+ virtual WEdge * duplicate();
virtual ~WEdge()
{
@@ -502,7 +502,7 @@ public:
inline WFace() {userdata = NULL;_MaterialIndex = 0;}
/*! copy constructor */
WFace(WFace& iBrother);
- virtual WFace * dupplicate();
+ virtual WFace * duplicate();
virtual ~WFace() {}
/*! accessors */
@@ -709,7 +709,7 @@ public:
inline WShape() {_meanEdgeSize = 0;_Id = _SceneCurrentId; _SceneCurrentId++;}
/*! copy constructor */
WShape(WShape& iBrother);
- virtual WShape * dupplicate();
+ virtual WShape * duplicate();
virtual ~WShape()
{
if(_EdgeList.size() != 0)