TProfileImpl
::GetNodeCoord(vtkIdType theObjID)
{
- if(myMeshOnEntity)
+ if(myIsAll)
return myMeshOnEntity->GetNodeCoord(theObjID);
vtkIdType aVtkID = GetNodeVTKID(theObjID);
TProfileImpl
::GetElemObjID(vtkIdType theID) const
{
- if(myMeshOnEntity)
+ if(myIsAll)
return myMeshOnEntity->GetElemObjID(theID);
vtkIdType anInputID;
TProfileImpl
::GetElemVTKID(vtkIdType theID) const
{
- if(myMeshOnEntity)
+ if(myIsAll)
return myMeshOnEntity->GetElemVTKID(theID);
if(myElemObj2VTKID.empty())
TProfileImpl
::GetElemCell(vtkIdType theObjID)
{
- if(myMeshOnEntity)
+ if(myIsAll)
return myMeshOnEntity->GetElemCell(theObjID);
vtkIdType aVtkID = GetElemVTKID(theObjID);
TProfileImpl
::GetVTKOutput()
{
- return mySource.GetVTKOutput();
+ const TVTKAppendFilter& anAppendFilter = GetFilter();
+ return anAppendFilter->GetOutput();
+ }
+
+ std::string
+ TProfileImpl
+ ::GetNodeName(vtkIdType theObjID) const
+ {
+ return myNamedPointCoords->GetNodeName(theObjID);
+ }
+
+ std::string
+ TProfileImpl
+ ::GetElemName(vtkIdType theObjID) const
+ {
+ if(myIsAll)
+ return myMeshOnEntity->GetElemName(theObjID);
+
+ vtkIdType anInputID;
+ vtkIdType aVTKId = GetElemVTKID(theObjID);
+ const TVTKAppendFilter& anAppendFilter = GetFilter();
+ vtkIdType aSubID = anAppendFilter->GetCellInputID(aVTKId,anInputID);
+ PSubProfileImpl aSubProfileImpl = mySubProfileArr[anInputID];
+ vtkIdType anEntityObjId = aSubProfileImpl->GetElemObjID(aSubID);
+ return myMeshOnEntity->GetElemName(anEntityObjId);
}
vtkIdType anInputDataSetID;
vtkIdType anInputID = anAppendFilter->GetCellInputID(theID,anInputDataSetID);
const TGaussSubMeshImpl& aSubMeshImpl = myGaussSubMeshArr[anInputDataSetID];
+
return aSubMeshImpl.GetObjID(anInputID);
}
if(theProfile->myIsVTKDone)
return;
+ theProfile->myMeshOnEntity = theMeshOnEntity.get();
const TVTKAppendFilter& anAppendFilter = theProfile->GetFilter();
anAppendFilter->SetPoints(GetPoints(theMesh));
if(theProfile->myIsAll){
TVTKOutput* aDataSet = theMeshOnEntity->GetVTKOutput();
anAppendFilter->AddInput(aDataSet);
- theProfile->myMeshOnEntity = theMeshOnEntity.get();
}else{
const TGeom2SubProfile& aGeom2SubProfile = theProfile->myGeom2SubProfile;
anAppendFilter->Update(); // Fix on VTK
theMeshOnEntity->GetVTKOutput()->Update();
- theGaussMesh->myParent = theMeshOnEntity.get();
vtkDataSet* aSource = anAppendFilter->GetOutput();
INITMSGA(MYDEBUG,0,"aNbPoints - "<<aSource->GetNumberOfPoints()<<endl);
aSubMesh->myStartID = aCellID;
vtkIdType aNbCells = aSource->GetNumberOfCells();
for(vtkIdType aCell = 0; aCell < aNbCells; aCell++, aCellID++){
- anElemObj2VTKID[aSubMesh->GetElemObjID(aCell)] = aCellID;
+ vtkIdType anObjID = aSubMesh->GetElemObjID(aCell);
+ anElemObj2VTKID[anObjID] = aCellID;
}
aSubMeshArr[anID] = aSubMesh;
}
GetMeshOnEntity(aVTKMeshOnEntity->myMeshName,aVTKMeshOnEntity->myEntity);
PProfileImpl aProfile = aValForTime->myProfile;
- TSource& aProfileSource = aProfile->mySource;
- if(!aProfileSource.myIsVTKDone){
- GetMeshOnProfile(aMesh,aVTKMeshOnEntity,aProfile);
- aProfileSource.myIsVTKDone = true;
- }
+ GetMeshOnProfile(aMesh,aVTKMeshOnEntity,aProfile);
anIDMapperFilter->myIDMapper = aProfile;
TVTKOutput* anOutput = anIDMapperFilter->GetVTKOutput();
GetMeshOnEntity(aVTKMeshOnEntity->myMeshName,aVTKMeshOnEntity->myEntity);
+ PProfileImpl aProfile = aValForTime->myProfile;
+ GetMeshOnProfile(aMesh,aVTKMeshOnEntity,aProfile);
+
PGaussMeshImpl aGaussMesh = aValForTime->myGaussMesh;
TSource& aGaussPtsSource = aGaussMesh->mySource;
if(!aGaussPtsSource.myIsVTKDone){
BuildGaussMesh(aMesh,aVTKMeshOnEntity,aGaussMesh);
+ aGaussMesh->myParent = aProfile.get();
aGaussPtsSource.myIsVTKDone = true;
}
-
+
aGaussPtsIDFilter->myIDMapper = aGaussMesh;
aGaussPtsIDFilter->myGaussPtsIDMapper = aGaussMesh;
TVTKOutput* anOutput = aGaussPtsIDFilter->GetVTKOutput();