Skip to content
Snippets Groups Projects
Commit 10875cd8 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ENH: More python images

parent 36d4da98
No related branches found
No related tags found
No related merge requests found
......@@ -119,9 +119,9 @@ It would be appreciated if there are any Python VTK experts who could convert an
[TriangleColoredPoints](/Python/TriangleColoredPoints) | [vtkUnsignedCharArray](http://www.vtk.org/doc/nightly/html/classvtkUnsignedCharArray.html) |
[TriangleCornerVertices](/Python/TriangleCornerVertices) | [vtkCellArray](http://www.vtk.org/doc/nightly/html/classvtkCellArray.html) |
[TriangleCorners](/Python/TriangleCorners) | [vtkXMLPolyDataWriter](http://www.vtk.org/doc/nightly/html/classvtkXMLPolyDataWriter.html) |
[WarpVectorpy](/Python/PolyData/WarpVector) | [vtkLine](http://www.vtk.org/doc/nightly/html/classvtkLine.html), [vtkDoubleArray](http://www.vtk.org/doc/nightly/html/classvtkDoubleArray.html), [vtkPolyData](http://www.vtk.org/doc/nightly/html/classvtkPolyData.html), [vtkWarpVector](http://www.vtk.org/doc/nightly/html/classvtkWarpVector.html) | This example warps/deflects a line.
[WarpVector](/Python/PolyData/WarpVector) | [vtkLine](http://www.vtk.org/doc/nightly/html/classvtkLine.html), [vtkDoubleArray](http://www.vtk.org/doc/nightly/html/classvtkDoubleArray.html), [vtkPolyData](http://www.vtk.org/doc/nightly/html/classvtkPolyData.html), [vtkWarpVector](http://www.vtk.org/doc/nightly/html/classvtkWarpVector.html) | This example warps/deflects a line.
[WriteTriangleToFile](/Python/WriteTriangleToFile) | [vtkTriangle](http://www.vtk.org/doc/nightly/html/classvtkTriangle.html) |
[py](/Python/DataManipulation/Cube) | [vtkPolyData](http://www.vtk.org/doc/nightly/html/classvtkPolyData.html) |
[Cube](/Python/DataManipulation/Cube) | [vtkPolyData](http://www.vtk.org/doc/nightly/html/classvtkPolyData.html) |
## Working with 3D Data
......
### Decription
Creates a file TriangleColored.vtp.
......@@ -7,7 +7,7 @@ Two different surfaces are used in this demonstration with each surface coloured
* The second surface is a parametric surface, in this case the surface has already been triangulated so no extra processing is necessary.
In order to get a nice coloured image, a {{DoxygenURL|vtkColorTransferFunction}} has been used to generate a set of colours for the {{DoxygenURL|vtkLookUp}} tables. We have used a diverging colour space similar to that in ParaView.
In order to get a nice coloured image, a [vtkColorTransferFunction](http://www.vtk.org/nightly/html/classvtkColorTransferFunction.html) has been used to generate a set of colours for the [vtkLookUp](http://www.vtk.org/nightly/html/classvtkLookUp.html) tables. We have used a diverging colour space similar to that in ParaView.
Because of the symmetry of the ranges selected for the lookup tables, the white colouration represents a midpoint value whilst the blue represents values less than the midopoint value and red represents colours greater than the midpoint value.
In the case of the Random Hills Gaussian curvature surface, this colouration shows the nature of the surface quite nicely. The blue areas are saddle points (negative Gaussian curvature) and the red areas have a positive Gaussian curvature. In the case of the mean curvature the blue colouration is representing negative curvature perpendicular to one of the principal axes.
......
### Description
==Description==
This script draws a Koch snowflake using the VTK. The general idea is to exercise some of the components of a vtkPolyData to produce something interesting rather than a boring old cube. Not that I have anything against cubes. There is also a C++ version of this example: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/KochSnowflake
This script draws a Koch snowflake using the VTK. The general idea is to exercise some of the components of a vtkPolyData to produce something interesting rather than a boring old cube. Not that I have anything against cubes. There is also a C++ version of this example: [KochSnowflake](Cxx/Visualization/KochSnowflake).
### Description
==Description==
This script creates a vtkLine and deflects it using a vtkWarpVector. There is also a C++ version of this example: http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/WarpVector
This script creates a vtkLine and deflects it using a vtkWarpVector. There is also a C++ version of this example: [WarpVector](/Cxx/PolyData/WarpVector)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment