All public logs
From KitwarePublic
Jump to navigationJump to search
Combined display of all available logs of KitwarePublic. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Visualization/VectorField (content was: "The code bellow shows how to load a vector field from a vtu file, where some data is stored and we are only interrested in the vector field. '''Note:''' Please make sure that you adapt the code below to your system properties, like e.g. paths to natives vtk libraries. ==VectorFieldExample.java== <source lang="java"> package eu.mihosoft.vtk;...", and the only contributor was "Christian.poliwoda" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Java/Visualization/Follower (content was: "The text stays right side up and facing the camera, while the cube does not. ==Follower.java== <source lang="java"> import vtk.*; public class Follower { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); S...", and the only contributor was "Egk865" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Outline (content was: "==Outline.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkConeSource() source.SetCenter(0,0,0) source.SetResolution(100) # mapper mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(source.GetOutpu...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/MultipleViewports (content was: "This example demonstrates how to use multiple viewports to display several scenes in one render window. * Contributed by: Bryan Conrad ==MultipleViewports.py== <source lang="python"> import vtk def main(): '''One render window, multiple viewports''' iren_list = [] rw = vtk.vtkRenderWindow() iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(rw)...", and the only contributor was "Bconrad" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Meshes/vtkClipDataSetWithPolydata (content was: "File:VTK_Examples_Python_Meshes_vtkClipDataSetWithPolydata.png An example that shows how to use the vtkClipDataSet to clip a vtkRectilinearGrid with an arbitrary polydata. vtkImplicitPolyDataDistance is used to turn the polydata into an implicit function. Every point of the grid is evaluated before sending to vtkClipDataSet. This example uses a vtkConeSource to generate p...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/MeshLabelImageColor (content was: "This example takes a label image in Meta format and meshes a single label of it. It then smoothes the mesh and colours the vertices according to the displacement error introduced by the smoothing. The whole thing is then displayed. An example data can be found here Media:labels.tgz ==MeshLabelImageColor.py== <source lang="python"> from __future__ import print_function import vtk input='labels.mhd' # Prepare to read the file readerVolume = vtk.vtkMetaImageReader() read...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/MeshLabelImage (content was: "This example takes a label image in Meta format and meshes each label. It then prints area and normal of each mesh cell to a file. An example data can be found here Media:labels.tgz * Contributed by Lynx Abraxas ==MeshLabelImage.py== <source lang="python"> import vtk input='labels.mhd' # Prepare to read the file readerVolume = vtk.vtkMetaImageReader() readerVolume.SetFileName(input) readerVolume.Update() # Extract the region of interest voi = vtk.vtkExtractVOI()...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/IterativeClosestPoints (content was: "==IterativeClosestPoints.py== <source lang="python"> from __future__ import print_function import vtk from vtk import * # ============ create source points ============== print("Creating source points...") sourcePoints = vtk.vtkPoints() sourceVertices = vtk.vtkCellArray() id = sourcePoints.InsertNextPoint(1.0, 0.1, 0.0) sourceVertices.InsertNextCell(1) sourceVertices.InsertCellPoint(id) id = sourcePoints.InsertNextPoint(0.1, 1.1, 0.0) sourceVertices.InsertNextCell(1) sourceV...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/InteractorStyleTrackballCamera (content was: "==InteractorStyleTrackballCamera.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) style = vtk.vtkInteractorStyleTrackballCamera() iren.SetInteractorStyl...", and the only contributor was "Daviddoria" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/InteractorStyleTrackballActor (content was: "Move, rotate, and scale an object in 3D. ==InteractorStyleTrackballActor.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) style = vtk.vtkInteractorStyl...", and the only contributor was "Daviddoria" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Interaction/MouseEventsObserver (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestMouseEvents.png</div> This example directly changes the observers of the vtkInteractor, which is an easy way to disable events or to add some simple callback functions. For a more general framework using vtkInteractorStyle see VTK/Examples/Python/Interaction/MouseEvents. This specific example just disables the left mouse button of the vtkInteractorStyleTrackballCamera and prints a simple message instead....")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Interaction/MouseEvents (content was: "<div class="floatright">File:VTK_Examples_Baseline_Interaction_TestMouseEvents.png</div> This example creates a new vtkInteractorStyle which can be used to implement custom reactions on user events. If you just want to disable single events you can also have a look at VTK/Examples/Python/Interaction/MouseEventsObserver. This specific example just prints a simple message and then calls the original eventhandler of the vtkInteractorStyleTrackballCamera. ==MouseEvents.py=...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Interaction/HighlightAPickedActor (content was: "File:VTK_Examples_Python_Interaction_HighlightPickedActor.png Shows how to customize vtkInteractorStyleTrackballCamera and vtkPropPicker to select a actor in the scene by pressing the left mouse button. ==HighlightPickedActor.py== <source lang="python"> import vtk NUMBER_OF_SPHERES = 10 class MouseInteractorHighLightActor(vtk.vtkInteractorStyleTrackballCamera):...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Infovis/SelectedGraphIDs (content was: "File:VTK_Examples_Python_Infovis_SelectedGraphIDs.png ==SelectedGraphIDs.py== <source lang="python"> #!/usr/bin/env python # This is a variation on VTK/Examples/Infovis/Python/selection.py # which shows how to use a vtkAnnotationLink to view the contents # of a selection from a vtkGraphLayoutView from __future__ import print_function import vtk source = vtk.vtkRandomGraphSource() source.DirectedOff() source.SetNumberOfVertices(100) source.SetEdgeProbability(0) # Basical...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Infovis/ParallelCoordinatesView (content was: "Parallel Coordinates View of the example data after selecting low Elevation values with lasso. ==ParallelCoordinatesView.py== <source lang="python"> #!/usr/bin/env python # Example of how to use Parallel Coordinates View to plot and compare # data set attributes. # Use the "u" character to toggle between "inspect modes" on the parallel # coordinates view (i.e. between selecting data and manipulating axes). # Lines which are commented out...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Infovis/ParallelCoordinatesExtraction (content was: "Selection in a Parallel Coordinates View is used to define indices to extract and view in a standard 3d render window ==ParallelCoordinatesExtraction.py== <source lang="python"> #!/usr/bin/env python # Example of how to use Parallel Coordinates View to plot and compare # data set attributes, and then to use selections in the parallel coordinates # view to extract and view data points associated with those selections # Use the "u" c...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Implicit/Sphere (content was: "File:python_examples_implicit_sphere.png Shows how to create a surface representing a sphere by creating an implicit sphere, sampling the implicit function, and finally contouring the sampled data to produce the surface. ==implicit_sphere.py== <source lang="python"> import vtk sphere = vtk.vtkSphere() sphere.SetCenter(0, 0, 0) sphere.SetRadius(0.5) # The sample functio...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Implicit/Quadric (content was: "File:python_example_quadric.png Create an ellipsoid by using the implicit quadric. ==implicit_quadric.py== <source lang="python"> import vtk #create an ellipsoid using a implicit quadric quadric = vtk.vtkQuadric() quadric.SetCoefficients(.5, 1, .2, 0, .1, 0, 0, .2, 0, 0) # The sample function generates a distance function from the implicit # function. This is then cont...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Implicit/Boolean (content was: "File:Python_examples_implicit_boolean_difference.png File:Python_examples_mplicit_bool_union.png File:python_examples_implicit_boolean_intersection.png Demonstration on how to perform boolean operations with implicit functions. ==implicit_boolean.py== <source lang="python"> import vtk # create a sphere sphere = vtk.vtkSphere() sphere.SetRadius(1) sphere.SetCente...", and the only contributor was "Onlyjus" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ImageWeightedSum (content was: "File:VTK_Examples_Baseline_ImageData_TestImageWeightedSum.png *Translated to python from the c++ examples by Michka Popoff ==ImageWeightedSum.py== <source lang="python"> #!/usr/bin/env python import vtk # Create image 1 source1 = vtk.vtkImageMandelbrotSource() source1.SetWholeExtent(0, 255, 0, 255, 0, 0) source1.Update() source1Double = vtk.vtkImageCast() source1Doub...", and the only contributor was "IMichka" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/VisualizeGraph (content was: "File:VTK_Examples_Python_Graphs_VisualizeGraph.png * Contributed by Jim McCusker * Note: AddEdge() is not enabled through python, but AddGraphEdge() is. ==VisualizeGraph.py== <source lang="python"> #!/usr/bin/env python import vtk g = vtk.vtkMutableDirectedGraph() v1 = g.AddVertex() v2 = g.AddVertex() g.AddGraphEdge(v1, v2) g.AddGraphEdge(v1, v2) graphLayoutView = vtk.vtkGraphLayoutView() graphLayoutView.AddRepresentationFromInput(g) graphLayoutView.SetLayoutStrateg...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/SelectedVerticesAndEdges (content was: "File:VTK_Examples_Python_Graphs_SelectedVerticesAndEdges.png *Contributed by Eric Monson ==SelectedVerticesAndEdges.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function import vtk source = vtk.vtkRandomGraphSource() source.Update() view = vtk.vtkGraphLayoutView() view.AddRepresentationFromInputConnection(source.GetOutputPort()) def selectionCallback(caller, event): # In C++ there is some extra data passed to the callback, but in...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/NOVCAGraph (content was: "=NOVCA Graph= File:Graph.png * Contributed by Sanjaya Gajurel ==NOVCAGraph.py== <source lang="python"> #!/usr/bin/env python # Sanjaya Gajurel, Computational Scientist, Case Western Reserve University, April 2015 import sys import vtk import os #------------------------------------------------------------------------------ # Script Entry Point #------------------------------------------------------------------------------ if __name__ == "__main__": print "vtkGraph:...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Graphs/EdgeWeights (content was: "File:VTK_Examples_Python_Graphs_EdgeWeights.png * Contributed by Jim McCusker ==EdgeWeights.py== <source lang="python"> #!/usr/bin/env python import vtk g = vtk.vtkMutableDirectedGraph() # Create 3 vertices v1 = g.AddVertex() v2 = g.AddVertex() v3 = g.AddVertex() # Create a fully connected graph g.AddGraphEdge(v1, v2) g.AddGraphEdge(v2, v3) g.AddGraphEdge(v1, v3) # Create the edge weight array weights = vtk.vtkDoubleArray() weights.SetNumberOfComponents(1) weights.S...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Geovis/GeoAssignCoordinates (content was: "File:VTK_Examples_Python_Geovis_GeoAssignCoordinates.png * Contributed by Jim McCusker ==GeoAssignCoordinates.py== <source lang="python"> #!/usr/bin/python import vtk g = vtk.vtkMutableDirectedGraph() latitude = vtk.vtkDoubleArray() latitude.SetName("latitude") longitude = vtk.vtkDoubleArray() longitude.SetName("longitude") for i in range(-90, 90, 10): for j in range(-180, 180, 20): g.AddVertex() latitude.InsertNextValue(i) longitude.Insert...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/ParametricObjectsDemo (content was: "==Description== See [http://www.vtk.org/VTK/img/ParametricSurfaces.pdf Parametric Equations for Surfaces] by Andrew Maclean for an excellent description of these beautiful parametric surfaces. This example also demonstrates how to manipulate lists of VTK objects using lists. Notice how parameters of the various Parametric Objects are accessed and set in the parametricObjects list. File:python_examples_parametric_objects.png ==ParametricObjectsDemo.py== <source lang="pyth...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/ParametricObjects (content was: "<div class="floatright">File:VTK_Examples_Baseline_GeometricObjects_TestParametricObjects.png</div> ==Description== See [http://www.vtk.org/VTK/img/ParametricSurfaces.pdf Parametric Equations for Surfaces] by Andrew Maclean for an excellent description of these beautiful parametric surfaces. You can edit the following code by selecting any one of the functions and the...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Vertex (content was: "==Vertex.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() points.InsertNextPoint(0,0,0) vertex = vtk.vtkVertex() vertex.GetPointIds().SetId(0, 0) vertices = vtk.vtkCellArray() vertices.InsertNextCell(vertex) polydata = vtk.vtkPolyData() polydata.SetPoints(points) polydata.SetVerts(vertices) # Setup actor and mapper mapper = vtk.vt...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/TriangleStrip (content was: "==TriangleStrip.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() points.InsertNextPoint(0,0,0) points.InsertNextPoint(0,1,0) points.InsertNextPoint(1,0,0) points.InsertNextPoint(1.5,1,0) triangleStrip = vtk.vtkTriangleStrip() triangleStrip.GetPointIds().SetNumberOfIds(4) triangleStrip.GetPointIds().SetId(0,0) triangleStrip.GetPointIds...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Triangle (content was: "==DisplayTriangle.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create points points = vtk.vtkPoints() points.InsertNextPoint(1.0,0.0,0.0) points.InsertNextPoint(0.0,0.0,0.0) points.InsertNextPoint(0.0,1.0,0.0) triangle = vtk.vtkTriangle() triangle.GetPointIds(...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/TextActor (content was: "Image:Textactor.png ==TextActor.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create a text actor txt = vtk.vtkTextActor() txt.SetInput("Hello World!") txtprop=txt.GetTextProperty() txtprop.SetFontFamilyToArial() txtprop.SetFontSize(18) txtprop.SetColor(1,1...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Tetrahedron (content was: "==Tetrahedron.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() points.InsertNextPoint(0, 0, 0) points.InsertNextPoint(1, 0, 0) points.InsertNextPoint(1, 1, 0) points.InsertNextPoint(0, 1, 1) points.InsertNextPoint(5, 5, 5) points.InsertNextPoint(6, 5, 5) points.InsertNextPoint(6, 6, 5) points.InsertNextPoint(5, 6, 6) # The first tetra...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Sphere (content was: "==Sphere.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkSphereSource() source.SetCenter(0,0,0) source.SetRadius(5.0) # mapper mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(source.GetOutput()) el...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/RegularPolygonSource (content was: "This example creates a pentagon. ==RegularPolygonSource.py== <source lang="python"> #!/usr/bin/env python import vtk # Create a pentagon polygonSource = vtk.vtkRegularPolygonSource() #polygonSource.GeneratePolygonOff() polygonSource.SetNumberOfSides(5) polygonSource.SetRadius(5) polygonSource.SetCenter(0,0,0) polygonSource.Update() mapper = vtk.vtkPolyDataMapper() mappe...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Quad (content was: "==Quad.py== <source lang="python"> #!/usr/bin/env python import vtk # Create four points (must be in counter clockwise order) p0 = [0.0, 0.0, 0.0] p1 = [1.0, 0.0, 0.0] p2 = [1.0, 1.0, 0.0] p3 = [0.0, 1.0, 0.0] # Add the points to a vtkPoints object points = vtk.vtkPoints() points.InsertNextPoint(p0) points.InsertNextPoint(p1) points.InsertNextPoint(p2) points.InsertNextP...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Pyramid (content was: "==Pyramid.py== <source lang="python"> #!/usr/bin/env python import vtk points = vtk.vtkPoints() p0 = [1.0, 1.0, 1.0] p1 = [-1.0, 1.0, 1.0] p2 = [-1.0, -1.0, 1.0] p3 = [1.0, -1.0, 1.0] p4 = [0.0, 0.0, 0.0] points.InsertNextPoint(p0) points.InsertNextPoint(p1) points.InsertNextPoint(p2) points.InsertNextPoint(p3) points.InsertNextPoint(p4) pyramid = vtk.vtkPyramid() pyra...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PolygonIntersection (content was: "==PolygonIntersection.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function import vtk # Create a square in the x-y plane. points = vtk.vtkPoints() points.InsertNextPoint(0.0, 0.0, 0.0) points.InsertNextPoint(1.0, 0.0, 0.0) points.InsertNextPoint(1.0, 1.0, 0.0) points.InsertNextPoint(0.0, 1.0, 0.0) # Create the polygon polygon = vtk.vtkP...", and the only contributor was "Amaclean" (talk))
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Polygon (content was: "==Polygon.py== <source lang="python"> #!/usr/bin/env python import vtk # Setup four points points = vtk.vtkPoints() points.InsertNextPoint(0.0, 0.0, 0.0) points.InsertNextPoint(1.0, 0.0, 0.0) points.InsertNextPoint(1.0, 1.0, 0.0) points.InsertNextPoint(0.0, 1.0, 0.0) # Create the polygon polygon = vtk.vtkPolygon() polygon.GetPointIds().SetNumberOfIds(4) #make a quad polygon.GetPointIds().SetId(0, 0) polygon.GetPointIds().SetId(1, 1) polygon.GetPointIds().SetId(2, 2) polygon....")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PolyLine (content was: "==Polyline.py== <div class="floatright">300px</div> <source lang="python"> # This example demonstrates how to create a polyline through several ordered points. import vtk import math # vtkPoints represents 3D points. The data model for vtkPoints is an array of # vx-vy-vz triplets accessible by (point or cell) id. points = vtk.vtkPoints() points.SetNumberOfPoints(6) c = math.cos(math.pi/6) # helper variable...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PointSource (content was: "==PointSource.py== <source lang="python"> import vtk # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source src = vtk.vtkPointSource() src.SetCenter(0,0,0) src.SetNumberOfPoints(50) src.SetRadius(5) src.Update() # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(src.GetOutput()) # ac...")
- 02:40, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Point (content was: "==Point.py== <source lang="python"> #!/usr/bin/env python import vtk # Create the geometry of a point (the coordinate) points = vtk.vtkPoints() p = [1.0, 2.0, 3.0] # Create the topology of the point (a vertex) vertices = vtk.vtkCellArray() id = points.InsertNextPoint(p) vertices.InsertNextCell(1) vertices.InsertCellPoint(id) # Create a polydata object point = vtk.vtkPo...", and the only contributor was "Amaclean" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/HardwareSelector (content was: "==HardwareSelector.py== <source lang="python"> from __future__ import print_function import vtk import vtk.util.numpy_support as VN # Callback for when selection is changed def selectionCallback(caller,eventId): hsel = vtk.vtkHardwareSelector() hsel.SetFieldAssociation(vtk.vtkDataObject.FIELD_ASSOCIATION_CELLS) hsel.SetRenderer(ren1) x,y = caller.GetRenderWindow().GetSize() # Create a small area around clicked point for selector area...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/GlyphTable (content was: "==GlyphTable.py== <source lang="python"> import vtk # This example uses a "glyph table" to change the shape of the 3d glyphs # according to a scalar value. # NOTE: The vtkGlyph3D filter doesn't copy over scalars to the glyphs # generated by a table like this for some reason... # The Wavelet Source is nice for generating a test vtkImageData set rt = vtk.vtkRTAnalyticSourc...", and the only contributor was "Emonson" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/ElevationBandsWithGlyphs (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestElevationBandsWithGlyphs.png</div> == Description == In this example we are coloring the surface by partitioning the elevation into bands and using arrows to display the normals on the surface. Rather beautiful surfaces are generated. The banded contour filter and an indexed lookup table are used alo...", and the only contributor was "Amaclean" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/CurvatureBandsWithGlyphs (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestCurvatureBandsWithGlyphs.png</div> == Description == In this example we are coloring the surface by partitioning the gaussian curvature into bands and using arrows to display the normals on the surface. Rather beautiful surfaces are generated. The banded contour filter and an indexed lookup table are...", and the only contributor was "Amaclean" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/CubeAxesActor (content was: "<div class="floatright">File:VTK_Examples_Baseline_Visualization_TestCubeAxesActor.png</div> *Translated to python from the .cxx examples by Michka Popoff ==CubeAxesActor.py== <source lang="python"> #!/usr/bin/env python import vtk # Create a superquadric superquadricSource = vtk.vtkSuperquadricSource() superquadricSource.SetPhiRoundness(3.1) superquadricSource.SetThet...", and the only contributor was "IMichka" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/ClampGlyphSizes (content was: "==ClampGlyphSizes.py== <source lang="python"> # Example of how to use range clamping with vtkGlyph3D filter. # # Note that the internal algorithm does this to figure out the eventual scale # of your data (say, if you're scaling by a scalar or vector magnitude): # # scale = (scalar value of that particular data index); # denominator = Range[1] - Range[0]; # scale = (scale < Range[0] ? Range[0] : (scale > Range[1] ? Range[1] : scale)); # scale = (scale - Range[0]) / denomina...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Visualization/AssignColorsCellFromLUT (content was: "== Description == Demonstrates how to assign colors to cells in a vtkPolyData structure using lookup tables. Two techniques are demonstrated: # Using a lookup table of predefined colors. # Using a lookup table generated from a color transfer function. The resultant display shows in the left-hand column, the cells in a plane colored by the two lookup tables and in the right-hand column, the same polydata that has been read in from a file demonstrating that the structures are i...")
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Vectortext (content was: "==VectorText.py== <source lang="python"> from vtk import* #Create a sphere textSource = vtkVectorText(); textSource.SetText("Hello"); textSource.Update(); #Create a mapper and actor mapper = vtkPolyDataMapper(); mapper.SetInputConnection(textSource.GetOutputPort()); actor =vtkActor(); actor.SetMapper(mapper); actor.GetProperty().SetColor(1.0, 0.0, 0.0); #Create a renderer, rend...", and the only contributor was "Jothy" (talk))
- 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Variant (content was: "==Variant.py== <source lang="python"> from __future__ import print_function import vtk import sys # Unicode string for demonstration (etre with circumflex) if sys.hexversion >= 0x03000000: unicodeEtre = '\xeatre' # unicode in Python 3 else: unicodeEtre = unicode('\xeatre', 'latin1') # # Basic vtkVariant usage # # Default constructor v = vtk.vtkVariant() print("Invalid variant: %r, '%s'" % (v, v.GetTypeAsString())) # Copy constructor v = vtk.vtkVariant(vtk.vtkVariant...")