- bool isAllQuad = true;
- SMDS_ElemIteratorPtr fIt = smDS->GetElements();
- while ( fIt->more() && isAllQuad )
- {
- const SMDS_MeshElement* f = fIt->next();
- isAllQuad = ( f->NbCornerNodes() == 4 );
- }
- if ( !isAllQuad )
- {
- SMESH_ComputeErrorPtr err = ComputePentahedralMesh(aMesh, aShape, proxymesh.get());
- return error( err );
- }