From: ouv Date: Tue, 11 Oct 2005 14:21:12 +0000 (+0000) Subject: Texture for pipeline has been set X-Git-Tag: BR-D5-38-2003_D2005-12-10~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e293e063abbdc52fcae15878d25c9f7d39eed5d6;p=modules%2Fvisu.git Texture for pipeline has been set --- 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();