]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixed bug with incorrect vti file names.
authorouv <ouv@opencascade.com>
Fri, 21 Oct 2005 07:24:37 +0000 (07:24 +0000)
committerouv <ouv@opencascade.com>
Fri, 21 Oct 2005 07:24:37 +0000 (07:24 +0000)
src/PIPELINE/VISUPipeLine.cxx

index c6cdc8260de92111e12a835a85afbe4646eeefe2..59f5f91a4a49c5aa6bd356d35ba281cdab07afc4 100644 (file)
@@ -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<<aPresent->GetPointSize(i)<<endl;
-         }
+         //for(int i = 0, iEnd = anOutput->GetNumberOfCells(); i < iEnd; i++){
+         //  cout<<aPresent->GetPointSize(i)<<endl;
+         //}
          //aPresent->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 ) );