MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0002974 | VTK | (No Category) | public | 2006-03-18 17:06 | 2016-08-12 09:54 |
| Reporter | bryan | ||||
| Assigned To | Dave DeMarle | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0002974: vtkProgrammableSource doesn't work with StructuredGrids | ||||
| Description | vtkProgrammableSource, used from the python bindings, apparently cannot product valid StructuredGrid datasets. The GetStructuredGridOutput() method returns a StructuredGrid object which cannot be rendered. The script below illustrates this. This script should create a 25-by-25 grid. However, nothing is rendered, even though the output of the Source appears correct (when 'printed'). By contrast, if I create a StructuredGrid manually and use the same function to create the pointSet, it works fine. Only tested this on linux so far. The problem is the same on VTK-4.2 & 5.0.0 Below is the example (python) code: ------------------------------------------ import vtk source = vtk.vtkProgrammableSource() def Execute(): grid = source.GetStructuredGridOutput() points = vtk.vtkPoints() nx,ny = 25,25 for i in xrange(nx): for j in xrange(ny): points.InsertNextPoint(i/5.0,j/5.0,0.0) grid.SetDimensions(nx,ny,1) grid.SetPoints(points) source.SetExecuteMethod(Execute) map = vtk.vtkDataSetMapper() map.SetInput(source.GetStructuredGridOutput()) act = vtk.vtkActor() act.SetMapper(map) ren = vtk.vtkRenderer() ren.AddActor(act) renwin = vtk.vtkRenderWindow() renwin.AddRenderer(ren) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renwin) iren.Start() | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-11-30 09:12 | Mathieu Malaterre | Assigned To | Mathieu Malaterre => David Cole | ||
| 2011-01-19 09:57 | David Cole | Assigned To | David Cole => | ||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2013-06-05 17:48 | Jean-Christophe Fillion-Robin | Note Added: 0030953 | |||
| 2013-07-22 19:20 | Dave DeMarle | Note Added: 0031221 | |||
| 2013-07-22 19:20 | Dave DeMarle | Status | backlog => expired | ||
| 2013-07-22 19:20 | Dave DeMarle | Assigned To | => Dave DeMarle | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036845 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||