Commit d636213c authored by David Gobbi's avatar David Gobbi

Fix tabs and utf-8 quotes in source code

Some VTK source code still had tabs (even some of the .py files!).
Also, several comments used utf-8 quotes, which are hard to tell
from regular quotes by eye and can lead to confusing mistakes.
parent bbf6e832
......@@ -2243,12 +2243,12 @@ int Test_void_CreateDefaultLookupTable()
DataArrayAPIFinish();
}
// double GetTuple1 (vtkIdType i)
// double * GetTuple2 (vtkIdType i)
// double * GetTuple3 (vtkIdType i)
// double * GetTuple4 (vtkIdType i)
// double * GetTuple6 (vtkIdType i)
// double * GetTuple9 (vtkIdType i)
// double GetTuple1 (vtkIdType i)
// double * GetTuple2 (vtkIdType i)
// double * GetTuple3 (vtkIdType i)
// double * GetTuple4 (vtkIdType i)
// double * GetTuple6 (vtkIdType i)
// double * GetTuple9 (vtkIdType i)
// Returns the ith tuple.
template <typename ScalarT, typename ArrayT, int N>
int Test_doubleptr_GetTupleN_i()
......
......@@ -42,25 +42,25 @@ int TestPolyhedron1( int argc, char* argv[] )
{
// create a dodecahedron
double dodechedronPoint[20][3] = { {1.21412, 0, 1.58931},
{0.375185, 1.1547, 1.58931},
{-0.982247, 0.713644, 1.58931},
{-0.982247, -0.713644, 1.58931},
{0.375185, -1.1547, 1.58931},
{1.96449, 0, 0.375185},
{0.607062, 1.86835, 0.375185},
{-1.58931, 1.1547, 0.375185},
{-1.58931, -1.1547, 0.375185},
{0.607062, -1.86835, 0.375185},
{1.58931, 1.1547, -0.375185},
{-0.607062, 1.86835, -0.375185},
{-1.96449, 0, -0.375185},
{-0.607062, -1.86835, -0.375185},
{1.58931, -1.1547, -0.375185},
{0.982247, 0.713644, -1.58931},
{-0.375185, 1.1547, -1.58931},
{-1.21412, 0, -1.58931},
{-0.375185, -1.1547, -1.58931},
{0.982247, -0.713644, -1.58931}};
{0.375185, 1.1547, 1.58931},
{-0.982247, 0.713644, 1.58931},
{-0.982247, -0.713644, 1.58931},
{0.375185, -1.1547, 1.58931},
{1.96449, 0, 0.375185},
{0.607062, 1.86835, 0.375185},
{-1.58931, 1.1547, 0.375185},
{-1.58931, -1.1547, 0.375185},
{0.607062, -1.86835, 0.375185},
{1.58931, 1.1547, -0.375185},
{-0.607062, 1.86835, -0.375185},
{-1.96449, 0, -0.375185},
{-0.607062, -1.86835, -0.375185},
{1.58931, -1.1547, -0.375185},
{0.982247, 0.713644, -1.58931},
{-0.375185, 1.1547, -1.58931},
{-1.21412, 0, -1.58931},
{-0.375185, -1.1547, -1.58931},
{0.982247, -0.713644, -1.58931}};
vtkSmartPointer<vtkPoints> dodechedronPoints = vtkSmartPointer<vtkPoints>::New();
dodechedronPoints->Initialize();
for (int i = 0; i < 20; i++)
......
......@@ -274,7 +274,7 @@ A well written merge request will motivate your reviewers, and bring them up
to speed faster. Future software developers will be able to understand the
reasons why something was done, and possibly avoid chasing down dead ends,
Although it may take you a little more time to write a good merge request,
youll likely see payback in faster reviews and better understood and
you'll likely see payback in faster reviews and better understood and
maintainable software.
......
......@@ -24,7 +24,7 @@
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
[[[XCUIApplication alloc] init] launch];
// In UI tests its important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
// In UI tests it's important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}
- (void)tearDown {
......
......@@ -26,7 +26,7 @@ VTK_DATA_ROOT = vtkGetDataRoot()
class contourQuadraticTetra(vtk.test.Testing.vtkTest):
def testContourQuadraticTetra(self):
# Create a reader to load the data (quadratic tetrahedra)
# Create a reader to load the data (quadratic tetrahedra)
reader = vtk.vtkUnstructuredGridReader()
reader.SetFileName(VTK_DATA_ROOT + "/Data/quadTetEdgeTest.vtk")
......@@ -76,4 +76,4 @@ class contourQuadraticTetra(vtk.test.Testing.vtkTest):
vtk.test.Testing.interact()
if __name__ == "__main__":
vtk.test.Testing.main([(contourQuadraticTetra, 'test')])
\ No newline at end of file
vtk.test.Testing.main([(contourQuadraticTetra, 'test')])
......@@ -23,7 +23,7 @@
* the algorithm described in:
* Jobard, Bruno, and Wilfrid Lefer. "Creating evenly-spaced
* streamlines of arbitrary density." Visualization in Scientific
* Computing97. Springer Vienna, 1997. 43-55.
* Computing '97. Springer Vienna, 1997. 43-55.
* The loop detection is described in:
* Liu, Zhanping, Robert Moorhead, and Joe Groner.
* "An advanced evenly-spaced streamline placement algorithm."
......
......@@ -350,7 +350,7 @@ double GetColorPath(const double rgb1[3], const double rgb2[3], std::vector<Node
currentPos = predecessors[currentIdx];
}
// Force the first and the last nodes color to be exact
// Force the first and the last node's color to be exact
path.front().rgb[0] = rgb1[0];
path.front().rgb[1] = rgb1[1];
path.front().rgb[2] = rgb1[2];
......
......@@ -119,7 +119,7 @@ int TestRemoveActorNonCurrentContext(int argc, char* argv[])
// Create callback so we can trigger the problem
vtkNew<TestRemoveActorNonCurrentContextCallback> callback;
callback->renderer1 = renderer1;
callback->renderer2 = renderer2;
callback->renderer2 = renderer2;
callback->renderWindow1 = renderWindow1;
callback->renderWindow2 = renderWindow2;
interactor1->AddObserver("KeyPressEvent", callback);
......
......@@ -646,7 +646,7 @@ int TestRemoveVolumeNonCurrentContext(int argc, char* argv[])
// Create callback so we can trigger the problem
vtkNew<TestRemoveVolumeNonCurrentContextCallback> callback;
callback->renderer1 = renderer1;
callback->renderer2 = renderer2;
callback->renderer2 = renderer2;
callback->renderWindow1 = renderWindow1;
callback->renderWindow2 = renderWindow2;
interactor1->AddObserver("KeyPressEvent", callback);
......
......@@ -52,4 +52,4 @@ def hashDataArray(dataArray):
return '%s_%d%s' % (md5sum, dataArray.GetSize(), typeCode)
def getJSArrayType(dataArray):
return javascriptMapping[arrayTypesMapping[dataArray.GetDataType()]]
return javascriptMapping[arrayTypesMapping[dataArray.GetDataType()]]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment