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/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))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/ExtractSelectionCells (content was: "<div class="floatcenter">600px</div> ==ExtractSelectionCells.py== <source lang="python"> """ converted from: - http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells """ import vtk def main(): sphereSource = vtk.vtkSphereSource() sphereSource.Update() print("There are %s input...", and the only contributor was "Steve9" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/ExtractSelection (content was: "<div class="floatright">File:VTK_Examples_Baseline_PolyData_TestExtractSelection.png</div> This example creates 50 random points and extracts 10 of them (the points with ids 10-19). ==ExtractSelection.py== <source lang="python"> """ converted from: - http://www.vtk.org/Wiki/VTK/Examples/Python/PolyData/ExtractSelectionCells """ import vtk def main(): pointSource = vtk...", and the only contributor was "Steve9" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PolyData/BooleanOperationPolyDataFilter (content was: "Computes the intersection of two spheres NOTE: This example requires version 5.9.20111206 or higher. <div class="floatcenter">File:VTK_Examples_Baseline_PolyData_TestBooleanOperationPolyDataFilter.png</div> ==BooleanOperationPolyDataFilter.py== <source lang="Python"> #!/usr/bin/env python import vtk sphereSource1 = vtk.vtkSphereSource() sphereSource1.SetCenter(0....", and the only contributor was "DerPavlov" (talk))
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Plotting/SpiderPlot (content was: "Translated from the c plus plus test File:SpiderPlot.jpg ==SpiderPlot.py== <source lang="python"> #!/usr/bin/env python import vtk import random numTuples = 12 bitter = vtk.vtkFloatArray() bitter.SetNumberOfTuples(numTuples) crispy = vtk.vtkFloatArray() crispy.SetNumberOfTuples(numTuples) crunchy = vtk.vtkFloatArray() crunchy.SetNumberOfTuples(numTuples) salty = vtk.vtkFloatArray() salty.SetNumberOfTuples(numTuples) oily = vtk.vtkFloatArray() oily.SetNumberOfTuples...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Plotting/ScatterPlot (content was: "File:VTK_Examples_Python_Plotting_ScatterPlot.png ==ScatterPlot.py== <source lang="python"> #!/usr/bin/env python from __future__ import division import vtk import math view = vtk.vtkContextView() view.GetRenderer().SetBackground(1.0, 1.0, 1.0) view.GetRenderWindow().SetSize(400, 300) chart = vtk.vtkChartXY() view.GetScene().AddItem(chart) chart.SetShowLegend(True) table = vtk.vtkTable() arrX = vtk.vtkFloatArray() arrX.SetName('X Axis') arrC = vtk.vtkFloatArray() arr...")
  • 02:37, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/PLYWriter (content was: "==PLYWriter.py== <source lang="python"> import vtk filename = "writeply.ply" sphereSource = vtk.vtkSphereSource() sphereSource.Update() plyWriter = vtk.vtkPLYWriter() plyWriter.SetFileName(filename) plyWriter.SetInputConnection(sphereSource.GetOutputPort()) plyWriter.Write() #Read and display for verication reader = vtk.vtkPLYReader() reader.SetFileName(filename) reader.Update() mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(reader.GetOutputPort()) actor = vt...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/IO/ReadImageData (content was: "==ReadImageData.tcl== <source lang="tcl"> package require vtk if { $argc != 1 } { puts "The command requires 1 argument: InputFileName" puts "Please try again." exit } set inputFile [lindex $argv 0] # Read the iamge data from a VTI file vtkXMLImageDataReader reader reader SetFileName $inputFile reader Update # Check for number of points set imagedata [reader GetOutput] set numPoints [$imagedata GetNumberOfPoints] if { $numPoints == 0 } { puts "Input Image has zero...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/IO/ReadDICOM (content was: "==ReadDICOM.tcl== <source lang="tcl"> package require vtk if { $argc != 2 } { puts "The command requires 2 arguments." puts "Please try again." exit } set folder [lindex $argv 0] set outputFile [lindex $argv 1] # Read all the DICOM files in the specified directory. vtkDICOMImageReader reader reader SetDirectoryName $folder reader Update set imagedata [reader GetOutput] vtkXMLImageDataWriter writer writer SetInput [reader GetOutput] writer SetFileName $outputFile writ...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Tetra (content was: "==Tetra.tcl== <source lang="tcl"> package require vtk vtkUnstructuredGridWriter writer #Generate a synthetic Tetrahedron vtkPoints points points SetDataTypeToDouble points InsertNextPoint 0 -1 -1 points InsertNextPoint -1 -1 1 points InsertNextPoint 1 1 1 points InsertNextPoint 0 1 0 vtkTetra tetra [tetra GetPointIds] SetId 0 0 [tetra GetPointIds] SetId 1 1 [tetra GetPointIds] SetId 2 2 [tetra GetPointIds] SetId 3 3 set cellType [tetra GetCellType] vtkUnstructuredGrid tet...")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Sphere (content was: "==Sphere.tcl== <source lang="tcl"> package require vtk vtkXMLPolyDataWriter writer #Generate a synthetic sphere vtkSphereSource sphere sphere SetThetaResolution 12 sphere SetPhiResolution 12 sphere SetRadius 5.0 sphere Update #Write polydata file writer SetInput [sphere GetOutput] set filename "sphere.vtp" writer SetFileName $filename writer Update </source>")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Plane (content was: "==Plane.tcl== <source lang="tcl"> package require vtk vtkXMLPolyDataWriter writer #Generate a synthetic plane vtkPlaneSource plane plane SetCenter 1.0 0.0 0.0 plane SetNormal 1.0 0.0 0.0 set data [ plane GetOutput ] # Write the polydata file writer SetInput $data writer SetFileName "plane.vtp" writer Write </source>", and the only contributor was "JBallesteros" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/GeometricObjects/Cube (content was: "==Cube.tcl== <source lang="tcl"> package require vtk vtkUnstructuredGridWriter writer #Generate a synthetic cube vtkCubeSource cube cube SetCenter 0.0 0.0 0.0 cube SetXLength 0.5 cube SetYLength 0.5 cube SetZLength 0.5 cube Update vtkDelaunay3D cubeMesh cubeMesh SetInput [ cube GetOutput ] cubeMesh Update #Write unstructured grid file writer SetInput [ cubeMesh GetOutput ] set filename "cube.vtu" writer SetFileName $filename writer Update </source>")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Tcl/Cylinder (content was: "This example demonstrate a minimal visualization created with VTK. See also C++, Java and Python ==Cylinder.tcl== <source lang="tcl"> # # This simple example shows how to do basic rendering and pipeline # creation. # # We start off by loading some Tcl modules...", and the only contributor was "DaveDemarle" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkWithNumpy (content was: "==vtkWithNumpy.py== <source lang="python"> # An example from scipy cookbook demonstrating the use of numpy arrys in vtk import vtk from numpy import * # We begin by creating the data we want to render. # For this tutorial, we create a 3D-image containing three overlaping cubes. # This data can of course easily be replaced by data from a medical CT-scan or anything else three dimensional. # The only limit is that the data must be reduced to unsigned 8 bit or 16 bit integers....")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkVersion (content was: "==vtkVersion.py== <source lang="python"> from __future__ import print_function import vtk print(vtk.vtkVersion.GetVTKSourceVersion()) </source>")
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkUnstructuredGridReader (content was: "The following example demonstrates how to read an unstructured grid defined at a (legacy) *.vtk file and how to render it with VTK. An example input file is uGridEx.vtk (folder Data at [http://vtk.org/gitweb?p=VTKData.git;a=tree VTKData]) ==UnstructuredGridReader.py== <source lang="python"> #!/usr/bin/env python # -*- coding: utf-8 -*- # # by Panos Mavrogiorgos, email: pmav99...", and the only contributor was "Pmav99" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkTextSource (content was: "==TextSource.py== <source lang="python"> from vtk import* #Create a sphere textSource = vtkTextSource(); textSource.SetText("Hello"); textSource.SetForegroundColor(1.0, 0.0, 0.0); textSource.BackingOn(); textSource.Update(); #Create a mapper and actor mapper = vtkPolyDataMapper(); mapper.SetInputConnection(textSource.GetOutputPort()); actor = vtkActor(); actor.SetMapper(mapper);...", and the only contributor was "Jothy" (talk))
  • 02:35, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/vtkImplicitDataSet (content was: "==ImplicitDataSet.py== <source lang="python"> # Example in which a cube is used to define an implicit function (through vtkImplicitDataSet) # which is then used to clip a sphere import vtk sphere = vtk.vtkSphereSource() sphere.SetCenter(1, 1, 1) sphere.SetRadius(1) sphere.Update() cube = vtk.vtkCubeSource() cube.SetBounds(-1,1,-1,1,-1,1) cube.Update() # Create 3D cells so vtkImplicitDataSet evaluates inside vs outside correctly tri = vtk.vtkDelaunay3D() tri.SetInput(cube.G...")
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)