[vtkusers] clipping 2D polygon with another 2D polygon

Alex Malyushytskyy alexmalvtk at gmail.com
Fri Aug 10 20:36:07 EDT 2012


If you are able to use Qt, you might want to check QPolygonF.

Regards,
          Alex


On Fri, Aug 10, 2012 at 8:21 AM, Cory Quammen <cquammen at cs.unc.edu> wrote:
> On Fri, Aug 10, 2012 at 11:12 AM, Nicholas I. Walker
> <NWalker at herbert-abs.com> wrote:
>> Cory,
>>
>> So you're saying there's currently no way to perform 2D Boolean operations in VTK?
>
> To the best of my knowledge, that is correct.
>
> Cory
>
>>
>> Thanks,
>>
>> Nick
>>
>> -----Original Message-----
>> From: Cory Quammen [mailto:cquammen at cs.unc.edu]
>> Sent: Thursday, August 09, 2012 6:47 PM
>> To: Nicholas I. Walker
>> Cc: Gonzalo Amadio; vtkusers at vtk.org
>> Subject: Re: [vtkusers] clipping 2D polygon with another 2D polygon
>>
>> Even if you could use 5.10, the vtkBooleanOperationPolyDataFilter class doesn't support 2D boolean operations. It wouldn't be impossible to add, but there are no plans yet that I know of to support this.
>>
>> I should really add a note about this limitation to the documentation...
>>
>> - Cory
>>
>> On Thu, Aug 9, 2012 at 7:42 PM, Nicholas I. Walker <NWalker at herbert-abs.com> wrote:
>>> Thanks Gonzalo,
>>>
>>>
>>>
>>> Unfortunately, since I am using VTK 5.8 (I believe this is the latest
>>> supported through Activiz.NET), I can't use
>>> vtkBooleanOperationPolyDataFilter... Is there another way, or am I out
>>> of luck...
>>>
>>>
>>>
>>> Nick
>>>
>>>
>>>
>>> From: Gonzalo Amadio [mailto:gonzaloamadio at gmail.com]
>>> Sent: Thursday, August 09, 2012 4:38 PM
>>> To: Nicholas I. Walker
>>> Cc: vtkusers at vtk.org
>>> Subject: Re: [vtkusers] clipping 2D polygon with another 2D polygon
>>>
>>>
>>>
>>> This can help you?
>>>
>>>
>>>
>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPoly
>>> DataFilter
>>>
>>> 2012/8/10 nwalker <nwalker at herbert-abs.com>
>>>
>>> I've been searching on a way to perform boolean operations on 2D
>>> polygons, but am having trouble finding a solution.
>>>
>>> If I were to have two 2D polygons that overlap, is there a way I can
>>> clip away the overlap portion from one of the polygons? Will
>>> vtkPolygon::Clip work for this? The vtkCell API description for the
>>> Clip method was rather confusing...
>>>
>>> Thanks in advance for any help,
>>> Nick
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://vtk.1045678.n5.nabble.com/clipping-2D-polygon-with-another-2D-p
>>> olygon-tp5715189.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
>>>
>>>
>>>
>>>
>>>
>>> --
>>> --------
>>> Gonzalo Amadio
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>>
>> --
>> Cory Quammen
>> Research Associate
>> Department of Computer Science
>> The University of North Carolina at Chapel Hill
>
>
>
> --
> Cory Quammen
> Research Associate
> Department of Computer Science
> The University of North Carolina at Chapel Hill
> _______________________________________________
> 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



More information about the vtkusers mailing list