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).

Logs
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)
  • 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...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/VTPReader (content was: "==VTPReader.py== <source lang="python"> reader = vtk.vtkXMLPolyDataReader() path = os.path.join(constant.BASE_DIR, "archive.vtp") #Archive path reader.SetFileName(path) reader.Update() mapper = vtk.vtkPolyDataMapper() mapper.SetInput(reader.GetOutput()) actor = vtk.vtkActor() actor.SetMapper(mapper) </source>")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Utilities/LUTUtilities (content was: "==Description== A class called LUTUtilities is demonstrated along with a test harness that shows you how to use the class. This class allows you to: * Print the contents of the lookup table * Compare two lookup tables to see if they are the same. The test harness is a function called: TestLookupTables that tests pairs of lookup tables against each other. The program will...", and the only contributor was "Amaclean" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/UnstructuredTransientVolumeRendering (content was: "Volume render unstructured transient data. ==vtkVolumeExample.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function from vtk import * tse = vtkTimeSourceExample() ex = tse.GetExecutive() tse.UpdateInformation() #inspect available time range and time steps print(ex.GetOutputInformation()) #make it grow because bounds are easy to inspect # tse.SetGrowing(1) ex.SetUpdateTimeStep(0,0.0) tse.Update() print(tse.GetOutput().GetBounds()) #pick s...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/TriangleCorners (content was: "==TriangleCorners.py== <source lang="python"> import vtk from vtk import * 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) polydata = vtk.vtkPolyData() polydata.SetPoints(Points) if vtk.VTK_MAJOR_VERSION <= 5: polydata.Update() writer = vtk.vtkXMLPolyDataWriter(); writer.SetFileName("TrianglePoints.vtp"); if vtk.VTK_MAJOR_VERSION <= 5: writer.SetInput(polydata) else: writer...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/TriangleCornerVertices (content was: "==TriangleCornerVertices.py== <source lang="python"> import vtk from vtk import * Points = vtk.vtkPoints() Vertices = vtk.vtkCellArray() id = Points.InsertNextPoint(1.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 1.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) polydata = vtk.vtkPolyData() polydata.SetPoin...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/TriangleColoredPoints (content was: "==TriangleColoredPoints.py== <source lang="python"> import vtk from vtk import * #setup points and vertices Points = vtk.vtkPoints() Vertices = vtk.vtkCellArray() id = Points.InsertNextPoint(1.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 0.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) id = Points.InsertNextPoint(0.0, 1.0, 0.0) Vertices.InsertNextCell(1) Vertices.InsertCellPoint(id) #setup colors Color...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/SumVTKImages (content was: "==SumVTKImages.py== <source lang="python"> #!/usr/bin/env python import vtk # ImageSets = List of Image sets # Weights = List of wieghts e.g [1, 1, 1] def SumVTKImages(ImageSets, Weights): NumOfImages = len(ImageSets) SumFilter = vtk.vtkImageWeightedSum() for x in range(0, NumOfImages, 1): SumFilter.AddInputConnection(ImageSets[x]) SumFilter.SetWeight(x, Weights[x]) SumFilter.Update() # Return summed Image as vtkImageData re...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/SolidColoredTriangle (content was: "==SolidColoredTriangle.py== <source lang="python"> import vtk from vtk import * #setup points and vertices Points = vtk.vtkPoints() Triangles = vtk.vtkCellArray() 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().SetId(0, 0); Triangle.GetPointIds().SetId(1, 1); Triangle.GetPointIds().SetId(2, 2); Triangles.InsertNextCell(Triangle); #setup colors (setting...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Screenshot (content was: "==Screenshot.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() mapper.SetInput(source.GetOutput()) # actor actor = vtk.vtkActor() a...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/STLWriter (content was: "==STLWriter.py== <source lang="python"> #!/usr/bin/env python import vtk filename = "test.stl" sphereSource = vtk.vtkSphereSource() sphereSource.Update() # Write the stl file to disk stlWriter = vtk.vtkSTLWriter() stlWriter.SetFileName(filename) stlWriter.SetInputConnection(sphereSource.GetOutputPort()) stlWriter.Write() # Read and display for verification reader = vtk.vtkSTLReader() reader.SetFileName(filename) mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSIO...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/STLReader (content was: "This code snippet reads an STL file and creates a PolyData output ==STLReader.py== <source lang="python"> #!/usr/bin/env python import vtk filename = "myfile.stl" reader = vtk.vtkSTLReader() reader.SetFileName(filename) mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(reader.GetOutput()) else: mapper.SetInputConnection(reader.GetOutputPort()) actor = vtk.vtkActor() actor.SetMapper(mapper) # Create a rendering window and renderer r...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/RotationAroundLine (content was: "NOTE: this example shows both the original and the rotated object using different colors. Not exactly equivalent to the C++ example with the same name. Image:Rotationaroundline.png ==RotationAroundLine.py== <source lang="python"> import vtk # create two cones, rotate one of them. # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) WIDTH=640 HEIGHT=480 renWin.SetSize(WIDTH,HEIGHT) # create a renderwi...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/RectilinearGrid/vtkRectilinearGrid (content was: "File:VTK_Examples_Python_RectilinearGrid_RectilinearGrid.png Shows how to create a vtkRectilinearGrid. ==RectilinearGrid.py== <source lang="python"> import vtk x = [ -1.22396, -1.17188, -1.11979, -1.06771, -1.01562, -0.963542, -0.911458, -0.859375, -0.807292, -0.755208, -0.703125, -0.651042, -0.598958, -0.546875, -0.494792, -0.442708, -0.390625, -0.338542,...", and the only contributor was "Onlyjus" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/vtkImplicitPolyDataDistance (content was: "File:VTK_Examples_Python_Interaction_vtkImplicitPolyDataDistance.png Shows how to use vtkImplicitPolyDataDistance. ==HighlightPickedActor.py== <source lang="python"> import vtk import numpy as np sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(0.0, 0.0, 0.0) sphereSource.SetRadius(1.0) sphereSource.Update() sphereMapper = vtk.vtkPolyDataMapper() sphereMapper...", and the only contributor was "Onlyjus" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/WarpVector.py (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestWarpVector.png</div> ==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 ==WarpVector.py== <source lang="python"> #!/usr/bin/env python #----------------------------------...", and the only contributor was "Steve9" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/SubdivisionFilters (content was: "File:VTK_Examples_Python_PolyData_SubdivisionFilters.png Create a terrain with regularly spaced points. The triangles are created manually. Then different types of smoothing filters are used to smooth the terrain. Left : initial terrain, middle : vtkLoopSubdivisionFilter, right : vtkButterflySubdivisionFilter *Contributed by Michka Popoff, with the help of Bill Lorensen...", and the only contributor was "IMichka" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/RuledSurfaceFilter (content was: "==ruledSurface.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 the points fot the lines. points = vtk.vtkPoints() points.InsertPoint(0, 0, 0, 1)...", and the only contributor was "Linnemann" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/PolyDataToImageDataStencil (content was: "* Contributed by: Peter Gruber == Brief Description == This is an example from the vtkPolyDataToImageStencil tests. It converts the the polydata to imagedata and masks the given imagedata. Image:PolyDataToImageDataStencil.PNG ==PolyDataToImageDataStencil.py== <source lang="Python"> import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRo...", and the only contributor was "DerPavlov" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/PolyDataContourToImageData (content was: "* Contributed by: Lars Friedrich, Peter Gruber == Brief Description == This example generates a sphere, cuts it with a plane and, therefore, generates a circlular contour (vtkPolyData). Subsequently a binary image representation (vtkImageData) is extracted from it. Internally vtkPolyDataToImageStencil and vtkLinearExtrusionFilter are utilized. Both the circular poly da...", and the only contributor was "DerPavlov" (talk))
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)