From 48f12200ec0930fa537417276f28d40cea070c15 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 21 Oct 2005 07:24:37 +0000 Subject: [PATCH] Fixed bug with incorrect vti file names. --- src/PIPELINE/VISUPipeLine.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/PIPELINE/VISUPipeLine.cxx b/src/PIPELINE/VISUPipeLine.cxx index c6cdc826..59f5f91a 100644 --- a/src/PIPELINE/VISUPipeLine.cxx +++ b/src/PIPELINE/VISUPipeLine.cxx @@ -129,19 +129,23 @@ int main(int argc, char** argv){ aPresent->Init(); aPresent->SetSourceRange(); vtkDataSet* anOutput = aPresent->GetMapper()->GetInput(); - for(int i = 0, iEnd = anOutput->GetNumberOfCells(); i < iEnd; i++){ - cout<GetPointSize(i)<GetNumberOfCells(); i < iEnd; i++){ + // cout<GetPointSize(i)<SetNumberOfContours(50); //aPresent->SetNbParts(1); //aPresent->SetOrientation(VISU_CutPlanesPL::XY,0.0,0.0); //aPresent->SetScaling(VTK_SCALE_LOG10); - char* aMainTexture = getenv( "VISU_ROOT_DIR" ); + char aMainTexture[80]; + strcpy( aMainTexture, getenv( "VISU_ROOT_DIR" ) ); strcat( aMainTexture, "/share/salome/resources/sprite_texture.vti" ); + //cout << aMainTexture << endl; - char* anAlphaTexture = getenv( "VISU_ROOT_DIR" ); + char anAlphaTexture[80]; + strcpy( anAlphaTexture, getenv( "VISU_ROOT_DIR" ) ); strcat( anAlphaTexture, "/share/salome/resources/sprite_alpha.vti" ); + //cout << anAlphaTexture << endl; aPresent->SetImageData( VISU_GaussPointsPL::MakeTexture( aMainTexture, anAlphaTexture ) ); -- 2.39.2