mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
primitiveMeshEdges: Added support for edges with duplicate vertices
Patch contributed by Mattijs Janssens Resolves bug-report http://bugs.openfoam.org/view.php?id=2301
This commit is contained in:
@ -56,7 +56,14 @@ Foam::label Foam::primitiveMesh::getEdge
|
||||
// Make new edge.
|
||||
label edgeI = es.size();
|
||||
pe[pointi].append(edgeI);
|
||||
pe[nextPointi].append(edgeI);
|
||||
|
||||
if (nextPointi != pointi)
|
||||
{
|
||||
// Very occasionally (e.g. blockMesh) a face can have duplicate
|
||||
// vertices. Make sure we register pointEdges only once.
|
||||
pe[nextPointi].append(edgeI);
|
||||
}
|
||||
|
||||
if (pointi < nextPointi)
|
||||
{
|
||||
es.append(edge(pointi, nextPointi));
|
||||
|
||||
Reference in New Issue
Block a user