From: pkv Date: Mon, 19 Sep 2005 10:44:55 +0000 (+0000) Subject: Provides interface to access to the parent mesh from a gauss mesh X-Git-Tag: BR-D5-38-2003_D2005-12-10~184 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f5ec7fa223a306171b47d3651124739f944ecd58;p=modules%2Fvisu.git Provides interface to access to the parent mesh from a gauss mesh --- diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 5aa8fb02..ee2075a5 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -365,7 +365,9 @@ namespace VISU //--------------------------------------------------------------- TGaussMeshImpl ::TGaussMeshImpl() - {} + { + myParentMesh=0; + } TGaussPointID TGaussMeshImpl @@ -377,7 +379,15 @@ namespace VISU const TGaussSubMeshImpl& aSubMeshImpl = myGaussSubMeshArr[anInputDataSetID]; return aSubMeshImpl.GetObjID(anInputID); } - + + void TGaussMeshImpl::SetParentMesh(VISU::TMeshOnEntityImpl* theMesh) + { + myParentMesh=theMesh; + } + VISU::TMeshOnEntityImpl* TGaussMeshImpl::GetParentMesh() + { + return myParentMesh; + } //--------------------------------------------------------------- vtkIdType @@ -1423,8 +1433,8 @@ namespace //--------------------------------------------------------------- void BuildGaussMesh(const PMeshImpl& theMesh, - const PMeshOnEntityImpl& theMeshOnEntity, - const PGaussMeshImpl& theGaussMesh) + const PMeshOnEntityImpl& theMeshOnEntity, + const PGaussMeshImpl& theGaussMesh) { if(theGaussMesh->myIsVTKDone) return; @@ -1448,7 +1458,7 @@ namespace anAppendFilter->AddInput(aSource.GetPointer()); } anAppendFilter->Update(); // Fix on VTK - + theGaussMesh->SetParentMesh(theMeshOnEntity.get()); vtkDataSet* aSource = anAppendFilter->GetOutput(); INITMSGA(MYDEBUG,0,"aNbPoints - "<GetNumberOfPoints()<GetNumberOfCells()< PGaussMeshImpl;