[vtkusers] vtkClipClosedSurface problem
David Gobbi
david.gobbi at gmail.com
Thu Mar 29 22:36:08 EDT 2012
Hi Randy,
I tried it with vtkSphereSource and it worked perfectly. Evidently
vtkSuperquadricSource does not generate a closed surface. You can
test whether a surface is closed by using the vtkFeatureEdges filter
to display free edges, i.e. edges that belong to only one polygon.
In a closed surface, each edge belongs to exactly two polygons.
feature = vtk.vtkFeatureEdges()
feature.SetInputConnection(glyphs.GetOutputPort())
feature.FeatureEdgesOff()
feature.BoundaryEdgesOn()
feature.NonManifoldEdgesOn()
Try vtkCleanPolyData to clean the output of vtkSuperquadricSource.
It isn't guaranteed to work, but it's worth a shot.
- David
On Thu, Mar 29, 2012 at 6:27 PM, Randy Heiland <heiland at indiana.edu> wrote:
> Hi,
>
> I'm having a problem with this filter and would welcome any advice. I've got a self-contained example here:
>
> http://old.compucell3d.org/mediawiki1.7/index.php/Vtk_clip_cap_glyphs
>
> thanks, Randy
More information about the vtkusers
mailing list