[vtkusers] vtkCutter using vtkPolyPlane extends beyond polyline's endpoints
Luca Pallozzi Lavorante
lplavorante at gmail.com
Fri Jun 23 09:30:20 EDT 2017
Hi vtkusers,
regarding my previous posting, describing the "waving" behavior of the
plane generated via vtkPolyPlane, I am attaching an image showing this
issue. Here I am using the following pipelyne : vtkPolyLine -> vtkPolyPlane
-> vtkCutter. The polyline is composed by three points and vtkCutter is
cutting through a vtkPolyData Surface. It is possible to see the waving
behavior in the resulting cut, just beyond the polyline's endpoints.
Thank you for any help.
Luca
On Fri, Jun 23, 2017 at 10:12 AM, Luca Pallozzi Lavorante <
lplavorante at gmail.com> wrote:
> Hi Marco, did you experience the same problem that I reported?
> I mean, the cuts extending beyond the endpoints of the polyline used to
> feed vtkPolyPlane?
>
> I think that maybe the problem could be solved composing vtkPolyPlane with
> two more planes normal to each polylne's endpoints. I also think that this
> could be done using something like vtkImplicitBoolean, but I don't know
> how. It is not clear to me how instances of vtkImplicitFunction should be
> composed in order to remove the planes past the polyline's endpoints. I
> also noticed that this "extensions" are not planar: beyond the polyline's
> endpoints the planes form "waves" when looked down along the Z axis. I also
> noticed this behaviour by modifying the Interaction/Widgets/Testing/Cxx/TestPolyPlane.cxx
> example, where I explicitly created and visualized a vtkPolyData from
> vtkCutter's output (In this example, vtkCutter received as implicit
> function an instance of vtkPolyPlane, just as I needed).
>
> Any kind help or explanation on this issue would be greatly welcomed.
>
> Thank you
>
> Luca
>
> On Thu, Jun 22, 2017 at 6:12 PM, Luca Pallozzi Lavorante <
> lplavorante at gmail.com> wrote:
>
>> Hi vtkusers,
>>
>> I have a vtkUnstruturedGrid showing depositional data and I'd like to cut
>> this data using contiguous vertical slices defined by a vtkPolyLine. I have
>> seen in the documentation that vtkPolyPlane generates the right implicit
>> function which I can pass to vtkCutter.
>> The resulting cuts are OK, but my vertical slices extends beyond my
>> polyline's endpoints. I would like to end the cutting planes exaclty at my
>> polyline's first and last point. Is this possible?
>> I am using VTK 7.0 on Linux.
>>
>> Thank you very much for any help
>>
>> Luca
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170623/64da56a1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPolyPlaneWaves.png
Type: image/png
Size: 137319 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170623/64da56a1/attachment-0001.png>
More information about the vtkusers
mailing list