View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000868VTK(No Category)public2004-05-25 09:252016-08-12 09:54
ReporterMathieu Malaterre 
Assigned ToDave DeMarle 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000868: vtkLinearSubdivisionFilter does not pass quads
DescriptionIt would be nice if vtkLinearSubdivisionFilter would pass quads to the output, or at least produce a warning
TagsNo tags attached.
Project
Type
Attached Files? file icon surface.vtk [^] (729 bytes) 1969-12-31 19:00
? file icon subdivide.py [^] (1,197 bytes) 1969-12-31 19:00

 Relationships

  Notes
(0030946)
Jean-Christophe Fillion-Robin (manager)
2013-06-05 17:27

Updated example for VTK 6:

import vtk

reader = vtk.vtkDataSetReader()
reader.SetFileName('surface.vtk')
#reader.Update()

tf = vtk.vtkTriangleFilter()
tf.SetInputConnection( reader.GetOutputPort())

stripper = vtk.vtkStripper()
stripper.SetInputConnection( tf.GetOutputPort() )

linear = vtk.vtkLinearSubdivisionFilter ()
linear.SetInputConnection(reader.GetOutputPort())
#linear.SetInput (tf.GetOutput())
#linear.SetInput (stripper.GetOutput())
linear.SetNumberOfSubdivisions (3)
linear.Update()

print linear.GetOutput()

renderer = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
iren = vtk.vtkRenderWindowInteractor()
mapper = vtk.vtkDataSetMapper()
actor = vtk.vtkActor()
geo = vtk.vtkGeometryFilter()
pmapper = vtk.vtkPolyDataMapper()

#mapper.SetInput( linear.GetOutput() )
#mapper.SetInput( reader.GetOutput() )
#actor.SetProperty( vtk.vtkProperty() )
#actor.GetProperty().SetRepresentationToWireframe()
 
geo.SetInputConnection( linear.GetOutputPort())
pmapper.SetInputConnection( geo.GetOutputPort())

#actor.SetMapper( mapper )
actor.SetMapper( pmapper )

renderer.SetBackground(1,1,1)
renderer.AddActor( actor )

renWin.AddRenderer( renderer )
renWin.SetSize( 300, 300 )

#Set the render window
iren.SetRenderWindow( renWin )

iren.Initialize()
iren.Start()
(0030947)
Jean-Christophe Fillion-Robin (manager)
2013-06-05 17:28

Could you check if the recent version of VTK 6 work as expected for your use case ?
(0031216)
Dave DeMarle (administrator)
2013-07-22 19:13

If the bug persists in 6.0.0, please reopen.
(0036729)
Kitware Robot (administrator)
2016-08-12 09:54

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-11-30 09:17 Mathieu Malaterre Assigned To Mathieu Malaterre => David Cole
2011-01-19 10:04 David Cole Assigned To David Cole =>
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2013-06-05 17:27 Jean-Christophe Fillion-Robin Note Added: 0030946
2013-06-05 17:28 Jean-Christophe Fillion-Robin Note Added: 0030947
2013-07-22 19:13 Dave DeMarle Note Added: 0031216
2013-07-22 19:13 Dave DeMarle Status backlog => expired
2013-07-22 19:13 Dave DeMarle Assigned To => Dave DeMarle
2016-08-12 09:54 Kitware Robot Note Added: 0036729
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team