[cig-commits] r13708 - cs/cigma/trunk/src
luis at geodynamics.org
luis at geodynamics.org
Wed Dec 17 02:31:41 PST 2008
Author: luis
Date: 2008-12-17 02:31:40 -0800 (Wed, 17 Dec 2008)
New Revision: 13708
Modified:
cs/cigma/trunk/src/io_vtk.cpp
Log:
Removed old comments
Modified: cs/cigma/trunk/src/io_vtk.cpp
===================================================================
--- cs/cigma/trunk/src/io_vtk.cpp 2008-12-17 10:31:40 UTC (rev 13707)
+++ cs/cigma/trunk/src/io_vtk.cpp 2008-12-17 10:31:40 UTC (rev 13708)
@@ -189,87 +189,5 @@
return -1;
}
-/*
-int vtk_print_contents(const char *filename)
-{
- TRI_LOG_STR("vtk_print_contents()");
- TRI_LOG(filename);
- cout << "Listing contents of VTK file '" << filename << "'" << endl;
-
- VtkReader reader;
- reader.open(filename, "r");
-
- if (reader.dataset == 0)
- {
- return -1;
- }
-
- vtkDataSet* dataset = reader.dataset;
- vtkPointData* pointData = dataset->GetPointData();
- vtkCellData* cellData = dataset->GetCellData();
-
- if (false)
- {
- pointData->PrintSelf(cout, 0);
- cellData->PrintSelf(cout, 0);
- }
-
- int nno = dataset->GetNumberOfPoints();
- int nel = dataset->GetNumberOfCells();
-
- if (nno > 0) { cout << "Points = " << nno << endl; }
- if (nel > 0) { cout << "Cells = " << nel << endl; }
-
- int i,n;
- int numArrays, numTuples, numComponents;
-
- numArrays = pointData->GetNumberOfArrays();
- if (numArrays > 0)
- {
- for (i = 0; i < numArrays; i++)
- {
- vtkDataArray* dataArray = pointData->GetArray(i);
- const char *name = pointData->GetArrayName(i);
- numTuples = dataArray->GetNumberOfTuples();
- numComponents = dataArray->GetNumberOfComponents();
- cout << "PointDataArray[" << i << "] = " << name;
- //cout << " " << dataArray->GetClassName();
- cout << " (" << numTuples << " x " << numComponents << ")";
- cout << endl;
- }
- }
-
- numArrays = cellData->GetNumberOfArrays();
- if (numArrays > 0)
- {
- for (i = 0; i < numArrays; i++)
- {
- vtkDataArray* dataArray = cellData->GetArray(i);
- const char *name = cellData->GetArrayName(i);
- numTuples = dataArray->GetNumberOfTuples();
- numComponents = dataArray->GetNumberOfComponents();
- cout << "CellDataArray[" << i << "] = " << name;
- //cout << " " << dataArray->GetClassName();
- cout << " (" << numTuples << " x " << numComponents << ")";
- cout << endl;
- }
- }
-
- return 0;
-}
-*/
-
-#else
-
-
-/*
-int vtk_print_contents(const char *filename)
-{
- throw cigma::Exception("vtk_print_contents", "Error: Cigma not configured with VTK library", 1);
- return -1;
-}
-*/
-
-
#endif /* HAVE_VTK */
More information about the CIG-COMMITS
mailing list