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:
parent
667dc10af6
commit
637cacfa29
1 changed files with 8 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue