const VISU::PSubProfileImpl& theSubProfile)
{
INITMSG(MYDEBUG,"GetMeshOnSubProfile - aEGeom = "<<theSubProfile->myGeom<<endl);
+
+ //rnv to fix the: 21040: [CEA 428] Bug of visualization of node field on profile
+ //throw exception in case if the profile on node.
+ //This exception catch in tne VISU_Convertor_impl::GetTimeStampOnMesh(...) function.
+ if( theMeshOnEntity->myEntity == VISU::CELL_ENTITY &&
+ theSubProfile->myGeom == VISU::ePOINT1 &&
+ !theSubProfile->isDefault() )
+ EXCEPTION(std::runtime_error,"theMeshOnEntity->myEntity == VISU::CELL_ENTITY && theSubProfile->myGeom == VISU::ePOINT1 && theSubProfile->isDefault()");
const VISU::PUnstructuredGrid& aSource = theSubProfile->GetSource();
if(theSubProfile->myIsVTKDone)
return aSize;
}
-
+ bool
+ TSubProfileImpl
+ ::isDefault() const
+ {
+ return std::strcmp(myName.c_str(),"") == 0;
+ }
+
//---------------------------------------------------------------
bool
operator<(const PSubProfile& theLeft, const PSubProfile& theRight)
virtual
vtkIdType
GetElemVTKID(vtkIdType theID) const;
+
+ //! Return true in case if it is default profile,
+ //! i.e myName == "" (MED_NOPFL, see med.h)
+ virtual
+ bool
+ isDefault() const;
//! Gets memory size used by the instance (bytes).
virtual