From e293e063abbdc52fcae15878d25c9f7d39eed5d6 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 11 Oct 2005 14:21:12 +0000 Subject: [PATCH] Texture for pipeline has been set --- src/PIPELINE/VISUPipeLine.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PIPELINE/VISUPipeLine.cxx b/src/PIPELINE/VISUPipeLine.cxx index 07e19ef7..c6cdc826 100644 --- a/src/PIPELINE/VISUPipeLine.cxx +++ b/src/PIPELINE/VISUPipeLine.cxx @@ -136,6 +136,15 @@ int main(int argc, char** argv){ //aPresent->SetNbParts(1); //aPresent->SetOrientation(VISU_CutPlanesPL::XY,0.0,0.0); //aPresent->SetScaling(VTK_SCALE_LOG10); + + char* aMainTexture = getenv( "VISU_ROOT_DIR" ); + strcat( aMainTexture, "/share/salome/resources/sprite_texture.vti" ); + + char* anAlphaTexture = getenv( "VISU_ROOT_DIR" ); + strcat( anAlphaTexture, "/share/salome/resources/sprite_alpha.vti" ); + + aPresent->SetImageData( VISU_GaussPointsPL::MakeTexture( aMainTexture, anAlphaTexture ) ); + aPresent->Update(); vtkActor* anActor = vtkActor::New(); -- 2.39.2