mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 01:47:12 +08:00
Merge pull request #18487 from aitikgupta:unnecessary-variable
This commit is contained in:
commit
6add3b9161
@ -758,7 +758,6 @@ void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const
|
||||
triangleList.clear();
|
||||
int i, total = (int)(qedges.size()*4);
|
||||
std::vector<bool> edgemask(total, false);
|
||||
const bool filterPoints = true;
|
||||
Rect2f rect(topLeft.x, topLeft.y, bottomRight.x - topLeft.x, bottomRight.y - topLeft.y);
|
||||
|
||||
for( i = 4; i < total; i += 2 )
|
||||
@ -768,15 +767,15 @@ void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const
|
||||
Point2f a, b, c;
|
||||
int edge_a = i;
|
||||
edgeOrg(edge_a, &a);
|
||||
if (filterPoints && !rect.contains(a))
|
||||
if ( !rect.contains(a) )
|
||||
continue;
|
||||
int edge_b = getEdge(edge_a, NEXT_AROUND_LEFT);
|
||||
edgeOrg(edge_b, &b);
|
||||
if (filterPoints && !rect.contains(b))
|
||||
if ( !rect.contains(b) )
|
||||
continue;
|
||||
int edge_c = getEdge(edge_b, NEXT_AROUND_LEFT);
|
||||
edgeOrg(edge_c, &c);
|
||||
if (filterPoints && !rect.contains(c))
|
||||
if ( !rect.contains(c) )
|
||||
continue;
|
||||
edgemask[edge_a] = true;
|
||||
edgemask[edge_b] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user