mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 17:48:34 +05:00
Make IsQuadraticMesh() return LINEAR instead of QUADRATIC in an empty mesh
This commit is contained in:
parent
1943d6f613
commit
5f62c18c48
@ -2025,6 +2025,8 @@ SMESH_MesherHelper:: MType SMESH_MesherHelper::IsQuadraticMesh()
|
|||||||
int NbFacesAndEdges=0;
|
int NbFacesAndEdges=0;
|
||||||
//All faces and edges
|
//All faces and edges
|
||||||
NbAllEdgsAndFaces = myMesh->NbEdges() + myMesh->NbFaces();
|
NbAllEdgsAndFaces = myMesh->NbEdges() + myMesh->NbFaces();
|
||||||
|
if ( NbAllEdgsAndFaces == 0 )
|
||||||
|
return SMESH_MesherHelper::LINEAR;
|
||||||
|
|
||||||
//Quadratic faces and edges
|
//Quadratic faces and edges
|
||||||
NbQuadFacesAndEdgs = myMesh->NbEdges(ORDER_QUADRATIC) + myMesh->NbFaces(ORDER_QUADRATIC);
|
NbQuadFacesAndEdgs = myMesh->NbEdges(ORDER_QUADRATIC) + myMesh->NbFaces(ORDER_QUADRATIC);
|
||||||
|
Loading…
Reference in New Issue
Block a user