[vtkusers] vtkClipClosedSurface problem

Randy Heiland heiland at indiana.edu
Fri Mar 30 04:04:06 EDT 2012


Awesome - thanks David!  Yes, I knew that sphere glyphs worked OK, but wanted the shapes offered via superquadric.  Using a vtkCleanPolyData did indeed fix this small demo test case.  I'll try it on my full datasets later, but at least I have some hope now.

-Randy

On Mar 29, 2012, at 10:36 PM, David Gobbi wrote:

> 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