else if ( isFaceSelected )
{
const SMDS_MeshFace* face =
- SMDS_Mesh::DownCast<SMDS_MeshFace>( aMesh->FindElement( aMapIndex( 1 )));
+ dynamic_cast<const SMDS_MeshFace*>(aMesh->FindElement(aMapIndex(1)));
if (!face)
return;
gp_XYZ aNormale = SMESH::getNormale(face);