[vtkusers] Cutting non-convex surfaces

David Gobbi david.gobbi at gmail.com
Tue Aug 16 11:05:43 EDT 2011


Hi Dan,

The fact that your surface is non-convex is not what is causing the problem.

The problem is that vtkCutter generates a whole bunch of independent
line segments, but what you want is a single polyline.  The filter to join
the line segments to create a polyline in vtkStripper.

Also note that vtkStripper will _not_ put the points in the correct order.
What it does is generate a polyline cell array that contains the correct
ordering of the PointIDs.

 - David


On Tue, Aug 16, 2011 at 8:38 AM, Dan Asimov <dan.asimov at gmail.com> wrote:
>
> Any idea anyone? Is there a way to cut non-convex surfaces?
>
>
> Thanks,
> Dan
>
>
>
> On Fri, Aug 12, 2011 at 2:47 PM, Dan Asimov <dan.asimov at gmail.com> wrote:
>>
>> Hi,
>>
>> I've a non-convex shape that I need to cut through. The user draws two
>> contours parallel X-Y plane, then I generate the surface using
>> vtkVoxelContoursToSurfaceFilter. However, when I cut with a plane parallel
>> to x-y using vtkCutter, the order of the points of the generated result is
>> messed up (pls see the attachments). I tried to run many filters on this
>> result to get the expected one without success.
>>
>> Can anyone help me on how to cut this surface to get the expected result?
>>
>> Thanks,
>> Dan



More information about the vtkusers mailing list