[vtkusers] Removing a cell from a cell

David.Pont at ForestResearch.co.nz David.Pont at ForestResearch.co.nz
Thu Apr 15 20:57:48 EDT 2004


OK, if the larger circle can be represented as one or more polygons
(polydata) then sounds like vtkImplicitSelectionLoop with vtkClipPolyData
should do it, it can use any non-self-intersecting loop of points
(something like that!), check the documentation. To polygonise a 'circle'
of points I think vtk has one 'in-house' class and a wrapped up version of
the glut tesselator, cant remember the names, try a search for tesselator,
but maybe you already have polygons.

   Dave P




                                                                                                                                                     
                      jarv0075                                                                                                                       
                      <jarv0075 at umn.edu        To:       David.Pont at ForestResearch.co.nz, jarv0075 <jarv0075 at umn.edu>                                
                      >                        cc:       vtkusers at vtk.org, vtkusers-admin at vtk.org                                                    
                      Sent by:                 Subject:  Re: [vtkusers] Removing a cell from a cell                                                  
                      vtkusers-admin at vt                                                                                                              
                      k.org                                                                                                                          
                                                                                                                                                     
                                                                                                                                                     
                      16/04/2004 13:07                                                                                                               
                                                                                                                                                     
                                                                                                                                                     




For example:

Say I have a circle, and a smaller circle, both on the same plane

I want to remove the smaller circle from the larger one, but cannot just
\'pick\' the cells since they\'re two separate objects.

(of course in my case it\'s not just circles but the approach should be the
same)

On 15 Apr 2004, David.Pont at ForestResearch.co.nz wrote:
>
> Not really clear what the question is... but is vtkImplicitSelectionLoop
> any use?
>    Dave P
>
>
>
>

>
>                       jarv0075

>
>                       <jarv0075 at umn.edu        To:       vtkusers at vtk.org

>
>                       >                        cc:

>
>                       Sent by:                 Subject:  [vtkusers]
Removing
> a cell from a cell
>                       vtkusers-admin at vt

>
>                       k.org

>
>

>
>

>
>                       15/04/2004 07:37

>
>

>
>

>
>
>
>
>
>
> This one seems like it should also be very straightforward but searching
> the archives hasn\'t produced anything yet...
>
> The question is, how do I remove the area of one cell, from the area of
> another?  I.e., I can\'t just \'delete\' the cell which is the filled in
hole,
> because the underlying region (the area which contains the hole\' is
> generated with the hole automatically filled in.
>
> Everything I\'ve searched for (using any number of terms) has come up
with
> using a plane/sphere/etc to clip my data, which in this case isn\'t going
to
> work.  I\'m sure there\'s a nice easy way to do it, but it\'s a case of
how do
> I find it if I don\'t know what I\'m looking for?
>
> Thank you again
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <
> http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
> _
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>


_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <
http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
 http://www.vtk.org/mailman/listinfo/vtkusers
_







More information about the vtkusers mailing list