From cd5e4a999be8aa79d8d8ea1a5b468cbb2364f91c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 27 Jun 2014 15:55:02 +0000 Subject: [PATCH] Removed unused method. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14317 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgUtil/DelaunayTriangulator.cpp | 29 ---------------------------- 1 file changed, 29 deletions(-) diff --git a/src/osgUtil/DelaunayTriangulator.cpp b/src/osgUtil/DelaunayTriangulator.cpp index 8c0a9ea55..78c9b83af 100644 --- a/src/osgUtil/DelaunayTriangulator.cpp +++ b/src/osgUtil/DelaunayTriangulator.cpp @@ -219,35 +219,6 @@ public: } return isedge; } - // GWM July 2005 add test for triangle intersected by p1-p2. - // return true for unused edge - - bool intersected(const unsigned int ip1,const unsigned int ip2,const osg::Vec2 p1 ,const osg::Vec2 p2,const int iedge, osg::Vec3Array *points) const - { - // return true if edge iedge of triangle is intersected by ip1,ip2 - Vertex_index ie1,ie2; - if (iedge==0) - { - ie1=a(); - ie2=b(); - } - else if (iedge==1) - { - ie1=b(); - ie2=c(); - } - else if (iedge==2) - { - ie1=c(); - ie2=a(); - } - if (ip1==ie1 || ip2==ie1) return false; - if (ip1==ie2 || ip2==ie2) return false; - - osg::Vec2 tp1((*points)[ie1].x(),(*points)[ie1].y()); - osg::Vec2 tp2((*points)[ie2].x(),(*points)[ie2].y()); - return intersect(tp1,tp2,p1,p2); - } bool intersectedby(const osg::Vec2 p1,const osg::Vec2 p2,osg::Vec3Array *points) const { // true if line [p1,p2] cuts at least one edge of this triangle