[vtkusers] Trying to define a closed Object

Sam Raby rabysam28 at gmail.com
Thu Jun 12 18:56:54 EDT 2014


I would pass the output of vtkCutter to the vtkStripper filter:

vtkSmartPointer<vtkStripper> stripper =
vtkSmartPointer<vtkStripper>::New();
stripper->SetInputConnection(cutter->GetOutputPort());

This will make the scattered lines into one connected polyline and easier
to track the points.

-S


On Thu, Jun 12, 2014 at 5:38 PM, MarkSchumacher <9mws at queensu.ca> wrote:

> Dear Vtk Users,
> I can't seem to figure out how to define inside our outside of my polydata.
> Im working with about 150 points that define the curve I've posted in the
> pictures below. All these points lie in the same plane , I used cutter to
> create the polydata.
> I've creating a polygon out of these points, but I don't quite understand
> the output . (second image attached)
>
> All I'm trying to do is close points 1 and 2 (on the image) and create an
> object that tells me if a point lies within that object.
>
> Thanks , I'd appreciate any help .
>
> Image 1: http://i.imgur.com/YOrebTq.png
> Image 2: http://i.imgur.com/iZfc4th.png
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Trying-to-define-a-closed-Object-tp5727465.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140612/66aad003/attachment.html>


More information about the vtkusers mailing list