Skip to content
Snippets Groups Projects
Commit 5cb203cb authored by Sebastien Blaise's avatar Sebastien Blaise
Browse files

setOrderN preserves partitioning information (2)

parent f04a176a
Branches
Tags
No related merge requests found
...@@ -801,9 +801,9 @@ static void setHighOrder(GEdge *ge, edgeContainer &edgeVertices, bool linear, ...@@ -801,9 +801,9 @@ static void setHighOrder(GEdge *ge, edgeContainer &edgeVertices, bool linear,
std::vector<MVertex*> ve; std::vector<MVertex*> ve;
getEdgeVertices(ge, l, ve, edgeVertices, linear, nbPts); getEdgeVertices(ge, l, ve, edgeVertices, linear, nbPts);
if(nbPts == 1) if(nbPts == 1)
lines2.push_back(new MLine3(l->getVertex(0), l->getVertex(1), ve[0])); lines2.push_back(new MLine3(l->getVertex(0), l->getVertex(1), ve[0], l->getPartition()));
else else
lines2.push_back(new MLineN(l->getVertex(0), l->getVertex(1), ve)); lines2.push_back(new MLineN(l->getVertex(0), l->getVertex(1), ve, l->getPartition()));
delete l; delete l;
} }
ge->lines = lines2; ge->lines = lines2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment