From: ouv Date: Fri, 21 Oct 2005 07:24:37 +0000 (+0000) Subject: Fixed bug with incorrect vti file names. X-Git-Tag: TG-D5-38-2003_D2005-20-12~130 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48f12200ec0930fa537417276f28d40cea070c15;p=modules%2Fvisu.git Fixed bug with incorrect vti file names. --- 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 ) );