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:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/PassInputTypeAlgorithm (content was: "==PassInputTypeAlgorithm.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include "vtkTestPassInputTypeAlgorithmFilter.h" int main(int, char *[]) { vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint(0.0, 0.0, 0.0); points->InsertNextPoint(0.0, 0.0, 1.0); vtkSmartPointer<vtkPolyData> inputPolydata = vtkSmartPointer<vtkPolyData>::New(); inputPolydata->Se...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/MultipleOutputPorts (content was: "==MultipleOutputPorts.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include "vtkTestMultipleOutputPortsFilter.h" int main (int, char *[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); vtkSmartPointer<vtkTestMultipleOutputPortsFilter> filter = vtkSmartPointer<vtkTestMultipleOutputPortsFilter>::New(); filter->SetInputConnection(sphereSource->GetOutput...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/MultipleInputConnections (content was: "==MultipleInputConnections.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestMultipleInputConnectionsFilter.h" int main(int, char*[]) { //setup the first input vtkSmartPointer<vtkPoints> points1 = vtkSmartPointer<vtkPoints>::New(); points1->InsertNextPoint(1.0, 2.0, 3.0); vtkSmartPointer<vtkPolyData> inputPolydata1 = vtkSmartPointer<vtkPolyData>::New(); inputPolydata1->SetPoints(points1); //setup the second input vtkSmartPointer<vtk...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/Macros (content was: "==Macros== ===String=== <source lang="cpp"> char* Filename; vtkSetStringMacro(Filename); </source> ===Bool=== <source lang="cpp"> vtkSetMacro(UseTransform, bool); vtkGetMacro(UseTransform, bool); vtkBooleanMacro(UseTransform, bool); </source> ===Normal Variable=== <source lang="cpp"> vtkGetMacro(ZRange, double); vtkSetMacro(ZRange, double); </source> ===Vector Vari...", and the only contributor was "Daviddoria" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/GetSetVector3Macro (content was: "==GetSetVector3Macro.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestClass3.h" int main(int, char*[]) { vtkSmartPointer<vtkTestClass> testClass = vtkSmartPointer<vtkTestClass>::New(); testClass->Update(); double test[3]; testClass->SetTestVector(test); double testOut[3]; testClass->GetTestVector(test); return EXIT_SUCCESS; } </source> ==vtkTestClass3.h== <source lang="cpp"> #ifndef __vtkTestClass_h #define __vtkTestClass_h #...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/FailedFilter (content was: "==FailedFilter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include "vtkTestFailedFilter.h" int main (int argc, char *argv[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); vtkSmartPointer<vtkTestFailedFilter> filter = vtkSmartPointer<vtkTestFailedFilter>::New(); filter->SetInputConnection(sphereSource->GetOutputPort()); filter->Update(); if(fi...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/Errors (content was: "==Errors.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkDataObject.h> #include <vtkObjectFactory.h> class TestClass : public vtkDataObject { public: static TestClass *New(); vtkTypeMacro(TestClass,vtkDataObject); TestClass() { vtkErrorMacro(<< "Test error."); } }; vtkStandardNewMacro(TestClass); int main(int argc, char *argv[]) { vtkSmartPointer<TestClass> test = vtkSmartPointer<TestClass>::New(); return EXIT_SUCCESS; } </sour...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/DebugMacro (content was: "==DebugMacro.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestClass2.h" int main(int, char*[]) { vtkSmartPointer<vtkTestClass> testClass = vtkSmartPointer<vtkTestClass>::New(); testClass->DebugOn(); testClass->Update(); return EXIT_SUCCESS; } </source> ==vtkTestClass2.h== <source lang="cpp"> #ifndef __vtkTestClass_h #define __vtkTestClass_h #include "vtkPolyDataAlgorithm.h" class vtkTestClass : public vtkPolyDataAlgorithm { public:...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/Broken/MultipleOutputConnections (content was: "==MultipleOutputConnections.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestMultipleOutputConnectionsFilter.h" int main(int, char*[]) { //setup the second input vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint(4.0, 5.0, 6.0); vtkSmartPointer<vtkPolyData> polydata = vtkSmartPointer<vtkPolyData>::New(); polydata->SetPoints(points); vtkSmartPointer<vtkTestMultipleOutputConnectionsFilter> fi...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Developers/AlgorithmSourceMultipleOutputPorts (content was: "This example demonstrates how to setup a source that produces two outputs. The output on port 0 is of type vtkTestA and the Value gets set to 111. The output on port 1 is of type vtkTestB and the Value gets set to 222. ==AlgorithmSourceMultipleOutputPorts.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include "vtkTestMultipleOutputPortsSource.h" #include "vtkTestA.h" #include "vtkTestB.h" int main (int argc, char *argv[]) { vtkTestMultipleOutputPortsSource* source...")
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/WishList/Visualization/LayeredRenderers (content was: "==LayeredRenderers.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkTransform.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkVectorText.h> int main(int, char *[]) { // Create a sp...", and the only contributor was "Daviddoria" (talk))
- 02:44, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/WishList/Plotting/PlotLegacyMethod (content was: "<div class="floatright">300px</div> ==PlotLegacyMethod.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkMath.h> #include <vtkDoubleArray.h> #include <vtkFieldData.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkXYPlotActor.h> int...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PlatonicSolid (content was: "Display all five Platonic solids in a grid. ==PlatonicSolid.py== <source lang="python"> #!/usr/bin/env python import vtk class PlatonicSolids(): def PlatonicSolids(self): # Each face has a different cell scalar # So create a lookup table with a different colour # for each face. lut = vtk.vtkLookupTable() lut.SetNumberOfTab...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/PlanesIntersection (content was: "==PlanesIntersection.py== <source lang="python"> #!/usr/bin/env python from __future__ import print_function import vtk sphereSource = vtk.vtkSphereSource() sphereSource.Update() bounds = [0 for i in range(6)] sphereSource.GetOutput().GetBounds(bounds) box = vtk.vtkPoints() box.SetNumberOfPoints(8) xMin = bounds[0]; xMax = bounds[1] yMin = bounds[2]; yMax = bounds[3]...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Planes (content was: "==Planes.py== <source lang="python"> #!/usr/bin/env python import vtk # Use this variable to select one of the two methods below. SELECT_FRUSTUM_METHOD = True if SELECT_FRUSTUM_METHOD: # one way camera = vtk.vtkCamera() planesArray = [0 for i in range(24)] camera.GetFrustumPlanes(1, planesArray) planes = vtk.vtkPlanes() planes.SetFru...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Plane (content was: "==Plane.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.vtkPlaneSource() source.SetCenter(1,0,0) source.SetNormal(1,2,3) # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(source.GetOutput()) # actor actor = vtk.vtkActor() actor...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/OrientedArrow (content was: "This example illustrates how to create and display an arrow that passes through two points. It demonstrates two different ways to apply the transform: # Use [http://www.vtk.org/doc/nightly/html/classvtkTransformPolyDataFilter.html vtkTransformPolyDataFilter] to create a new transformed polydata. This method is useful if the transformed polydata is needed later in the pipel...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/LongLine (content was: "==LongLine.py== <source lang="python"> #!/usr/bin/env python import vtk # Create five points. origin = [0.0, 0.0, 0.0] p0 = [1.0, 0.0, 0.0] p1 = [0.0, 1.0, 0.0] p2 = [0.0, 1.0, 2.0] p3 = [1.0, 2.0, 3.0] # Create a vtkPoints object and store the points in it points = vtk.vtkPoints() points.InsertNextPoint(origin) points.InsertNextPoint(p0) points.InsertNextPoint(p1) poin...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/LineSource (content was: "==LineSource.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.vtkLineSource() source.SetPoint1(1,-1,0) source.SetPoint2(2,-3,0) # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInput(source.GetOutput()) # actor actor = vtk.vtkActor(...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Hexahedron (content was: "<div class="floatright">300px</div> This example creates eight points and creates a hexahedron from the points. ==Hexahedron.py== <source lang="python"> import vtk 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] P4 = [0.0, 0.0, 1.0] P5 = [1.0, 0.0, 1.0] P6 = [1.0, 1.0, 1.0]...", and the only contributor was "Drfox" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/GeometricObjectsDemo (content was: "==GeometricObjectsDemo.py== <source lang="python"> #!/usr/bin/env python import vtk class GeometricObjects(): def GeometricObjects(self): GeometricObjects = list() GeometricObjects.append(vtk.vtkArrowSource()) GeometricObjects.append(vtk.vtkConeSource()) GeometricObjects.append(vtk.vtkCubeSource()) GeometricObjects...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Frustum (content was: "==Frustum.py== <source lang="python"> #!/usr/bin/env python import vtk camera = vtk.vtkCamera() planesArray = [0 for i in range(24)] camera.GetFrustumPlanes(1, planesArray) planes = vtk.vtkPlanes() planes.SetFrustumPlanes(planesArray) frustumSource = vtk.vtkFrustumSource() frustumSource.SetPlanes(planes) frustumSource.Update() frustum = frustumSource.GetOutput() mapp...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Disk (content was: "Image:Disk.png ==Disk.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.vtkDiskSource() source.SetInnerRadius(1) source.SetOuterRadius(2) source.SetRadialResolution(100) source.SetCircumferentialResolution(100) source.Update() # mappe...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DistanceBetweenPoints (content was: "==DistanceBetweenPoints.py== <source lang="python"> from __future__ import print_function import vtk import math p0 = (0,0,0) p1 = (1,1,1) distSquared = vtk.vtkMath.Distance2BetweenPoints(p0,p1) dist = math.sqrt(distSquared) print("p0 = ", p0) print("p1 = ", p1) print("distance squared = ", distSquared) print("distance = ", dist) </source>")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DottedLine (content was: "==DottedLine.py== <source lang="python"> import vtk Line=vtk.vtkLineSource() Line.SetPoint1(-50,0,0) Line.SetPoint2(50,0,0) Line.SetResolution(100) Mapper=vtk.vtkPolyDataMapper() Mapper.SetInputConnection(Line.GetOutputPort()) Actor=vtk.vtkActor() Actor.SetMapper(Mapper) #create renderers and add actors of plane and cube ren = vtk.vtkRenderer() ren.AddActor(Actor) Actor.GetProperty().SetColor(1,1,0) Actor.GetProperty().SetLineStipplePattern(0xf0f0) Actor.GetProp...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ExodusII/Read (content was: "==Brief Description== A simple Python script for reading and displaying ExodusII data with VTK. ==ReadExodusData.py== <source lang="python"> #!/usr/bin/env python # # This example was built using Python2.7 and VTK6.3 on OSX import vtk # Input file and variable filename = 'mug.e' nodal_var = 'convected' # Read Exodus Data reader = vtk.vtkExodusIIReader() reader.S...", and the only contributor was "Slaughter98" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/FilledPolygon (content was: "==FilledPolygon.py== <source lang="python"> import vtk #Create a cube cube = vtk.vtkSphereSource() cube.SetRadius(50) cube.SetThetaResolution(100) cube.SetPhiResolution(100) cubeMapper = vtk.vtkPolyDataMapper() cubeMapper.SetInputConnection(cube.GetOutputPort()) #create a plane to cut,here it cuts in the XZ direction (xz normal=(1,0,0);XY =(0,0,1),YZ =(0,1,0) plane = vtk.vtkPlane() plane.SetOrigin(20, 0, 0) plane.SetNormal(1, 0, 0) #create cutter cutter = vtk.vtkCutter...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Filtering/CombinePolyData (content was: "This example combines Polydata objects, and displays the result to the screen. ==CombinePolyData.py== <source lang="Python"> import vtk input1 = vtk.vtkPolyData() input2 = vtk.vtkPolyData() sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(5,0,0) sphereSource.Update() input1.ShallowCopy(sphereSource.GetOutput()) coneSource =vtk.vtkConeSource() coneSource.U...", and the only contributor was "DerPavlov" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Filtering/Delaunay2D (content was: "File:VTK_Examples_Python_Filtering_Delaunay2D.png ==vtkDelaunay2D.py== <source lang="python"> #!/usr/bin/python import vtk, random points = vtk.vtkPoints() for x in range(10): for y in range(10): points.InsertNextPoint(x + random.uniform(-.25, .25), y + random.uniform(-.25, .25), 0) aPolyData = vtk.vtkPolyData() aPolyData.SetPoints(points) aCellArray = vtk.vtkCellArray() boundary = vtk.vtkPolyData() boundary.SetPoints(...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/FrustumSource (content was: "This is a Python version of the C++ example for viewing a Frustum ==FrustumSource.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) planesArray=[0]*24 # Allocate a list of length 24 camera = vtk.vtkCamera() camera.GetFrustumPlanes(1, planesArray) planes=vtk.vtkPlanes...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Arrow (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_GeometricObjects_TestArrow.png</div> ==Arrow.py== <source lang="python"> # arrow.py adapted from the C++ vtk examples and translated to python. import vtk arrowSource = vtk.vtkArrowSource() #arrowSource.SetShaftRadius(0.01) #arrowSource.SetTipLength(.9) # Create a mapper and actor mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(arrowSource.GetOutputPort()) actor = vtk.vtkActor() actor.SetMapper(mapper) # V...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Axes (content was: "<div class="floatright">File:VTK_Examples_Baseline_GeometricObjects_TestAxes.png</div> This example shows how to position an AxesActor in 3D. Notice that position and orientation of the AxesActor is done with a user transform. ==Axes.py== <source lang="python"> import vtk #create a Sphere sphereSource = vtk.vtkSphereSource() sphereSource.SetCenter(0.0, 0.0, 0.0) sphereSource.S...", and the only contributor was "Drfox" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cell3DDemonstration (content was: "<div class="floatright">File:VTK_Examples_Baseline_GeometricObjects_Cell3DDemonstration.png</div> ==Description== This is a demonstration of how to construct and display geometric objects using the classes derived from vtkCell3D. For each object we specify the points and cell Ids. From this we create an unstructured grid. In some cases a vtkCellArray is used and the...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/ColoredLines (content was: "==ColoredLines.py== <source lang="python"> #!/usr/bin/env python import vtk # Create three points. Join (Origin and P0) with a red line and # (Origin and P1) with a green line origin = [0.0, 0.0, 0.0] p0 = [1.0, 0.0, 0.0] p1 = [0.0, 1.0, 0.0] # Create a vtkPoints object and store the points in it pts = vtk.vtkPoints() pts.InsertNextPoint(origin) pts.InsertNextPoint(p0) p...", and the only contributor was "Amaclean" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cube (content was: "Display a cube ==Cube.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 cube cube = vtk.vtkCubeSource() # mapper cubeMapper = vtk.vtkPolyDataMapper() cubeMapper.SetInput(cube.GetOutput()) # actor cubeActor = vtk.vtkActor() cubeActor.SetMapper(cubeMapper)...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cone (content was: "This program displays a cone on screen. Image:Cone.png ==Cone.py== <source lang="python"> import vtk # 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 renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create cone cone = vtk.vtkConeSource() cone.SetResolution(60) cone.SetCenter(-2,0,0) # mapper cone...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/Cylinder (content was: "Image:Cylinder.png ==Cylinder.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.vtkCylinderSource() source.SetCenter(0,0,0) source.SetRadius(5.0) source.SetHeight(7.0) source.SetResolution(100.0) # mapper mapper = vtk.vtkPolyDataMappe...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/GeometricObjects/Display/DataSetSurface (content was: "==DataSetSurface.py== <source lang="python"> from vtk import* #Setup the coordinates of eight points #(the two faces must be in counter clockwise order as viewd from the outside) 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]; P4 = [0.0, 0.0, 1.0]; P5 = [1.0, 0.0, 1.0]; P6 = [1.0, 1.0, 1.0]; P7 = [0.0, 1.0, 1.0]; #Create the points points = vtkPoints(); points.InsertNextPoint(P0); points.InsertNextPoint(P1); points.InsertNextPoint(P2...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DataManipulation/LineOnMesh (content was: "x300px|x300px| Create a terrain with regularly spaced points and smooth the terrain (see VTK/Examples/Python/PolyData/SubdivisionFilters. Then, a vtkCellLocator is used to find the intersection between vertical lines and the surface (using t...", and the only contributor was "IMichka" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DataManipulation/KochSnowflake.py (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Visualization_TestKochSnowflake.png</div> ==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 ==KochSnowflake.py== <sour...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/DataManipulation/Cube.py (content was: "This is a transliteration of the C++ example [http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/DataManipulation/Cxx/Cube.cxx Examples/DataManipulation/Cxx/Cube.cxx] in the VTK source distribution. It illustrates the manual use of {{VTKDoxygenURL|vtkPolyData}} to construct a cube and differs from the Wiki examples VTK/Examples/Python/GeometricObjects/Display/Cube and VTK/Examples/Cxx/GeometricObjects/Cube, which use {{VTKDoxygenURL|vtkCube}}. ==Cube.py== <source lang=...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Cylinder (content was: "This example demonstrate a minimal visualization created with VTK. See also C++, Java and Tcl ==Cylinder.py== <source lang="python"> #!/usr/bin/env python # This simple example shows how to do basic rendering and pipeline # creation. import vtk # The colors m...", and the only contributor was "DaveDemarle" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/CurvaturesDemo (content was: "'''How to get the Gaussian and Mean curvatures of a surface.''' Two different surfaces are used in this demonstration with each surface coloured according to its Gaussian and Mean curvatures. * The first surface is a superquadric surface, this demonstrates the use of extra filters that are needed to get a nice smooth surface. * 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...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ColoredTriangle (content was: "==ColoredTriangle.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 Colors = vtk.vtkUnsigne...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/ColorActor (content was: "==ColorActor.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:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Camera (content was: "==Camera.py== <source lang="python"> from vtk import* #Create a sphere sphereSource =vtkSphereSource(); sphereSource.SetCenter(0.0, 0.0, 0.0); sphereSource.SetRadius(10); sphereSource.Update(); #Create a mapper and actor mapper =vtkPolyDataMapper (); mapper.SetInputConnection(sphereSource.GetOutputPort()); actor =vtkActor(); actor.SetMapper(mapper); camera =vtkCamera (); camera...", and the only contributor was "Jothy" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/BackgroundImage (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestBackgroundImage.png</div> This example displays an image as the "background" of a scene, and renders a superquadric in front of it. The example accepts a jpeg file on the command line to use as a background image. If there is no file, it generates a simple background. ==BackgroundImage.py== <source lang="python">...", and the only contributor was "Steve9" (talk))
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Arrays/RenameArray (content was: "Works, but segfaults at the end? ==RenameArray.py== <source lang="python"> import vtk from vtk import * #setup sphere sphereSource = vtk.vtkSphereSource() sphereSource.Update() polydata = vtk.vtkPolyData() polydata.ShallowCopy(sphereSource.GetOutput()) normals = polydata.GetPointData().GetNormals(); normals.SetName("TestN") writer = vtk.vtkXMLPolyDataWriter(); writer.SetFileName("Test.vtp"); writer.SetInput(polydata); writer.Write(); </source>")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Arrays/GetValues (content was: "Seems to work, but segfaults at the end? Tested: No segfault in Python 2.7 and Python 3.4. ==GetValues.py== <source lang="python"> from __future__ import print_function import vtk from vtk import * #setup sphere sphereSource = vtk.vtkSphereSource() sphereSource.Update() polydata = vtk.vtkPolyData() polydata.ShallowCopy(sphereSource.GetOutput()) normals = polydata.GetPointData().GetNormals(); normal0 = normals.GetTuple3(0); print("Normal0: {:3.1f} {:3.1f} {:3.1f}".format(...")
- 02:42, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Python/Animation (content was: "This example uses a timer to move a sphere across a scene. * Contributed by: Bryan Conrad ==Animation.py== <source lang="python"> from __future__ import print_function import vtk class vtkTimerCallback(): def __init__(self): self.timer_count = 0 def execute(self,obj,event): print(self.timer_count) self.actor.SetPosition(self.timer_count, self.timer_count,0); iren = obj iren.GetRenderWindow().Render() self.timer_count += 1 de...")