0022100: EDF 2413 SMESH: Take into account TRIA7

+  CORBA::Long NbBiQuadTriangles()
This commit is contained in:
eap 2013-05-16 16:49:03 +00:00
parent 3a8dfa1bdb
commit 998c774c5d
2 changed files with 13 additions and 1 deletions

View File

@ -3088,6 +3088,15 @@ CORBA::Long SMESH_Mesh_i::NbTriangles()throw(SALOME::SALOME_Exception)
return _impl->NbTriangles();
}
CORBA::Long SMESH_Mesh_i::NbBiQuadTriangles()throw(SALOME::SALOME_Exception)
{
Unexpect aCatch(SALOME_SalomeException);
if ( _preMeshInfo )
return _preMeshInfo->NbBiQuadTriangles();
return _impl->NbBiQuadTriangles();
}
CORBA::Long SMESH_Mesh_i::NbQuadrangles()throw(SALOME::SALOME_Exception)
{
Unexpect aCatch(SALOME_SalomeException);
@ -4021,7 +4030,7 @@ CORBA::Long SMESH_Mesh_i::FindElementByNodes(const SMESH::long_array& nodes)
if ( !( nn[i] = mesh->FindNode( nodes[i] )))
return elemID;
const SMDS_MeshElement* elem = mesh->FindElement( nn );
const SMDS_MeshElement* elem = mesh->FindElement( nn, SMDSAbs_All, /*noMedium=*/false );
if ( !elem && ( _impl->NbEdges ( ORDER_QUADRATIC ) ||
_impl->NbFaces ( ORDER_QUADRATIC ) ||
_impl->NbVolumes( ORDER_QUADRATIC )))

View File

@ -294,6 +294,9 @@ public:
CORBA::Long NbTrianglesOfOrder(SMESH::ElementOrder order)
throw (SALOME::SALOME_Exception);
CORBA::Long NbBiQuadTriangles()
throw (SALOME::SALOME_Exception);
CORBA::Long NbQuadrangles()
throw (SALOME::SALOME_Exception);