Skip to content

Commit

Permalink
FEM: Mesh ViewProvider, fix faces count for penta6 and penta15
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Apr 9, 2016
1 parent 2ecab3a commit 06e6f04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
Expand Up @@ -746,9 +746,11 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop,

int numTries;
if(ShowFaces)
numTries = numTria+numQuad/*+numPoly*/+numTetr*4+numHexa*6+numPyrd*5+numPris*6;
numTries = numTria+numQuad/*+numPoly*/+numTetr*4+numHexa*6+numPyrd*5+numPris*5;
else
numTries = numTetr*4+numHexa*6+numPyrd*5+numPris*6;
numTries = numTetr*4+numHexa*6+numPyrd*5+numPris*5;
// It is not 100% sure that a prism in smesh is a pentahedron in any case, but it will be in most cases!
// See http://forum.freecadweb.org/viewtopic.php?f=18&t=13583#p109707

// corner case only edges (Beams) in the mesh. This need some special cases in building up visual
onlyEdges = false;
Expand Down

0 comments on commit 06e6f04

Please sign in to comment.