|
|
@ -733,6 +733,26 @@ void Subdiv2D::getEdgeList(std::vector<Vec4f>& edgeList) const |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Subdiv2D::getLeadingEdgeList(std::vector<int>& leadingEdgeList) const |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
leadingEdgeList.clear(); |
|
|
|
|
|
|
|
int i, total = (int)(qedges.size()*4); |
|
|
|
|
|
|
|
std::vector<bool> edgemask(total, false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for( i = 4; i < total; i += 2 ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if( edgemask[i] ) |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
int edge = i; |
|
|
|
|
|
|
|
edgemask[edge] = true; |
|
|
|
|
|
|
|
edge = getEdge(edge, NEXT_AROUND_LEFT); |
|
|
|
|
|
|
|
edgemask[edge] = true; |
|
|
|
|
|
|
|
edge = getEdge(edge, NEXT_AROUND_LEFT); |
|
|
|
|
|
|
|
edgemask[edge] = true; |
|
|
|
|
|
|
|
leadingEdgeList.push_back(i); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const |
|
|
|
void Subdiv2D::getTriangleList(std::vector<Vec6f>& triangleList) const |
|
|
|
{ |
|
|
|
{ |
|
|
|
triangleList.clear(); |
|
|
|
triangleList.clear(); |
|
|
|