SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
const SMDS_MeshElement* anElem = aMesh->FindElement( anActor->GetElemObjId( theCellId ) );
- return anElem && anElem->GetType() == SMDSAbs_Face && anElem->NbNodes() == 4;
+ return anElem && anElem->GetType() == SMDSAbs_Face &&
+ ( anElem->NbNodes() == ( anElem->IsQuadratic() ? 8 : 4 ));
}
//=======================================================================
SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
const SMDS_MeshElement* anElem = aMesh->FindElement( theObjId );
- return anElem && anElem->GetType() == SMDSAbs_Face && anElem->NbNodes() == 4;
+ return anElem && anElem->GetType() == SMDSAbs_Face &&
+ ( anElem->NbNodes() == ( anElem->IsQuadratic() ? 8 : 4 ));
}
//=======================================================================
SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
const SMDS_MeshElement* anElem = aMesh->FindElement( anActor->GetElemObjId( theCellId ) );
- return anElem && anElem->GetType() == SMDSAbs_Face && anElem->NbNodes() == 3;
+ return anElem && anElem->GetType() == SMDSAbs_Face &&
+ ( anElem->NbNodes() == ( anElem->IsQuadratic() ? 6 : 3 ));
}
//=======================================================================
SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
const SMDS_MeshElement* anElem = aMesh->FindElement( theObjId );
- return anElem && anElem->GetType() == SMDSAbs_Face && anElem->NbNodes() == 3;
+ return anElem && anElem->GetType() == SMDSAbs_Face &&
+ ( anElem->NbNodes() == ( anElem->IsQuadratic() ? 6 : 3 ));
}
//=======================================================================