GetMeshOnSubProfile(const VISU::PMeshImpl& theMesh,
const VISU::PMeshOnEntityImpl& theMeshOnEntity,
const VISU::PProfileImpl& theProfile,
- const VISU::PSubProfileImpl& theSubProfile)
+ const VISU::PSubProfileImpl& theSubProfile,
+ const bool checkEntity = true)
{
INITMSG(MYDEBUG,"GetMeshOnSubProfile - aEGeom = "<<theSubProfile->myGeom<<endl);
//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()");
+ theSubProfile->myGeom == VISU::ePOINT1 &&
+ !theSubProfile->isDefault() && checkEntity )
+ EXCEPTION(std::runtime_error,"theMeshOnEntity->myEntity == VISU::CELL_ENTITY && theSubProfile->myGeom == VISU::ePOINT1 && theSubProfile->isDefault()");
const VISU::PUnstructuredGrid& aSource = theSubProfile->GetSource();
if(theSubProfile->myIsVTKDone)
bool
GetMeshOnProfile(const VISU::PMeshImpl& theMesh,
const VISU::PMeshOnEntityImpl& theMeshOnEntity,
- const VISU::PProfileImpl& theProfile)
+ const VISU::PProfileImpl& theProfile,
+ const bool checkEntity = true)
{
//rnv fix for bug IPAL18514 4x (CRASH after trying to build of presentation):
// throw exection in case if pointer on profile =0
GetMeshOnSubProfile(theMesh,
theMeshOnEntity,
theProfile,
- aSubProfile);
+ aSubProfile,
+ checkEntity);
const VISU::PUnstructuredGrid& aSource = aSubProfile->GetSource();
anAppendFilter->AddInput(aSource.GetPointer());
GetMeshOnEntity(aVTKMeshOnEntity->myMeshName, aVTKMeshOnEntity->myEntity);
VISU::PProfileImpl aProfile = aValForTime->myProfile;
- GetMeshOnProfile(aMesh, aVTKMeshOnEntity, aProfile);
+ GetMeshOnProfile(aMesh, aVTKMeshOnEntity, aProfile, false);
VISU::PGaussMeshImpl aGaussMesh = aValForTime->myGaussMesh;
if(!aGaussMesh->myIsVTKDone){