//---------------------------------------------------------------
TGaussMeshImpl
::TGaussMeshImpl()
- {}
+ {
+ myParentMesh=0;
+ }
TGaussPointID
TGaussMeshImpl
const TGaussSubMeshImpl& aSubMeshImpl = myGaussSubMeshArr[anInputDataSetID];
return aSubMeshImpl.GetObjID(anInputID);
}
-
+
+ void TGaussMeshImpl::SetParentMesh(VISU::TMeshOnEntityImpl* theMesh)
+ {
+ myParentMesh=theMesh;
+ }
+ VISU::TMeshOnEntityImpl* TGaussMeshImpl::GetParentMesh()
+ {
+ return myParentMesh;
+ }
//---------------------------------------------------------------
vtkIdType
//---------------------------------------------------------------
void
BuildGaussMesh(const PMeshImpl& theMesh,
- const PMeshOnEntityImpl& theMeshOnEntity,
- const PGaussMeshImpl& theGaussMesh)
+ const PMeshOnEntityImpl& theMeshOnEntity,
+ const PGaussMeshImpl& theGaussMesh)
{
if(theGaussMesh->myIsVTKDone)
return;
anAppendFilter->AddInput(aSource.GetPointer());
}
anAppendFilter->Update(); // Fix on VTK
-
+ theGaussMesh->SetParentMesh(theMeshOnEntity.get());
vtkDataSet* aSource = anAppendFilter->GetOutput();
INITMSGA(MYDEBUG,0,"aNbPoints - "<<aSource->GetNumberOfPoints()<<endl);
BEGMSG(MYDEBUG,"aNbCells - "<<aSource->GetNumberOfCells()<<endl);
return mySource.GetVTKOutput();
}
+ void SetParentMesh(VISU::TMeshOnEntityImpl* theMesh);
+
+ VISU::TMeshOnEntityImpl* GetParentMesh();
+
TGaussSubMeshArr myGaussSubMeshArr;
TSource mySource;
TGeom2GaussSubMesh myGeom2GaussSubMesh;
+ TMeshOnEntityImpl* myParentMesh;
};
typedef SharedPtr<TGaussMeshImpl> PGaussMeshImpl;