[vtkusers] vtkPolyData projected to a 2D plane, and then outlined/silhouetted...

Cory Quammen cory.quammen at kitware.com
Thu Oct 9 17:28:55 EDT 2014


David,

I don't know a filter that does exactly what you want, but could you
just take the output of the vtkPolyDataSilhouette filter, scale the
z-axis by 0 with vtkTransformPolyDataFilter, then run vtkCleanPolyData
on the output to get a closed 2D outline?

- Cory

On Thu, Oct 9, 2014 at 5:14 PM, David Cole via vtkusers
<vtkusers at vtk.org> wrote:
> Is there already a VTK filter that does this? I can't seem to find
> just the right thing, and I don't want to write it unless I really
> have to.
>
> What I want is a filter that projects all the points of a polydata to
> a 2D plane, and then connects the set of outermost points to produce
> the outline of the projected polydata - like a shadow of it... (the
> output should be another polydata which is a single closed polygon, or
> the line segments that make up such a polygon.)
>
> I tried vtkPolyDataSilhouette, which is close, but it's still a 3D
> polydata, and it does not produce a closed outline.
>
> Does anybody know the name of a filter that will do this?
>
>
> Thanks,
> David C.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list