diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-06-19 09:19:09 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-06-19 09:19:09 +0400 |
commit | 70b8a8daf86bcc1d78a46f8aef90597e9befdb60 (patch) | |
tree | 2a5fa78d3979241ad444f80623184bb647a997ce | |
parent | 22a961317a1c0405f41966205e22f70fb3769799 (diff) |
Freestyle: removed WOEdge::getVec3r() which in effect was a duplicate of WOEdge::GetVec().
-rw-r--r-- | source/blender/freestyle/intern/winged_edge/Curvature.cpp | 2 | ||||
-rw-r--r-- | source/blender/freestyle/intern/winged_edge/WEdge.cpp | 5 | ||||
-rw-r--r-- | source/blender/freestyle/intern/winged_edge/WEdge.h | 2 |
3 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/Curvature.cpp b/source/blender/freestyle/intern/winged_edge/Curvature.cpp index 4a910099bff..38941b23357 100644 --- a/source/blender/freestyle/intern/winged_edge/Curvature.cpp +++ b/source/blender/freestyle/intern/winged_edge/Curvature.cpp @@ -539,7 +539,7 @@ inline static real angle(WOEdge *h) { const Vec3r& n1 = h->GetbFace()->GetNormal(); const Vec3r& n2 = h->GetaFace()->GetNormal(); - const Vec3r v = h->getVec3r(); + const Vec3r v = h->GetVec(); real sine = (n1 ^ n2) * v / v.norm(); if (sine >= 1.0) { return M_PI / 2.0; diff --git a/source/blender/freestyle/intern/winged_edge/WEdge.cpp b/source/blender/freestyle/intern/winged_edge/WEdge.cpp index 461df7bbf27..de166531d8b 100644 --- a/source/blender/freestyle/intern/winged_edge/WEdge.cpp +++ b/source/blender/freestyle/intern/winged_edge/WEdge.cpp @@ -211,11 +211,6 @@ WOEdge *WOEdge::duplicate() return clone; } -Vec3r WOEdge::getVec3r () -{ - return Vec3r(_pbVertex->GetVertex() - _paVertex->GetVertex()); -} - WOEdge *WOEdge::twin () { return GetOwner()->GetOtherOEdge(this); diff --git a/source/blender/freestyle/intern/winged_edge/WEdge.h b/source/blender/freestyle/intern/winged_edge/WEdge.h index 54461a6e8a6..6699a8113b6 100644 --- a/source/blender/freestyle/intern/winged_edge/WEdge.h +++ b/source/blender/freestyle/intern/winged_edge/WEdge.h @@ -525,8 +525,6 @@ public: /*! Retrieves the list of edges in CW order */ inline void RetrieveCWOrderedEdges(vector<WEdge*>& oEdges); - /*! returns the vector between the two vertices */ - Vec3r getVec3r (); WOEdge *twin (); WOEdge *getPrevOnFace(); |