Commit 4558e2c9 by Christophe Geuzaine

Merge branch 'FixMultipleDegeneratedEdgesOnSameVertex' into 'master'

Fix multiple degenerated edges on same vertex See merge request !97
parents c58f0101 36e3ee42
Pipeline #1379 passed with stage
in 37 minutes 0 seconds
......@@ -271,7 +271,7 @@ static void getEdgeVertices(GEdge *ge, MElement *ele, std::vector<MVertex*> &ve,
else
edgeVertices[p].insert(edgeVertices[p].end(), veEdge.rbegin(), veEdge.rend());
}
else { // Vertices already exist
else if (p.first != p.second) { // Vertices already exist and edge is not a degenerated edge
Msg::Error("Edges from different entities share vertices: create a finer mesh");
}
ve.insert(ve.end(), veEdge.begin(), veEdge.end());
......
SetFactory("OpenCASCADE");
a() = ShapeFromFile("full_sphere.brep");
Mesh.Algorithm = 2;
Mesh.Algorithm3D = 2;
Mesh.ElementOrder = 2;
lc = 5;
Mesh.CharacteristicLengthMin = lc;
Mesh.CharacteristicLengthMax = lc;
Mesh 3;
nbtets = Mesh.NbTetrahedra;
If(nbtets == 0)
Error("No tetrahedral elements created!");
EndIf
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment