Freestyle: removed WOEdge::getVec3r() which in effect was a duplicate of WOEdge::GetVec().

This commit is contained in:
Tamito Kajiyama 2014-06-19 14:19:09 +09:00
parent 22a961317a
commit 70b8a8daf8
3 changed files with 1 additions and 8 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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();