From f5ec7fa223a306171b47d3651124739f944ecd58 Mon Sep 17 00:00:00 2001 From: pkv Date: Mon, 19 Sep 2005 10:44:55 +0000 Subject: [PATCH] Provides interface to access to the parent mesh from a gauss mesh --- src/CONVERTOR/VISU_Convertor_impl.cxx | 20 +++++++++++++++----- src/CONVERTOR/VISU_Convertor_impl.hxx | 5 +++++ 2 files changed, 20 insertions(+), 5 deletions(-) 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; -- 2.39.2