[vtkusers] remove inside edges of a subplane

David.Pont at ensisjv.com David.Pont at ensisjv.com
Thu Mar 23 15:42:52 EST 2006


Alle Meije Wink <alle_meije at yahoo.co.uk> wrote on 23/03/2006 10:45:20:

> Hello,
>
> I am trying to sample the part of a plane in a volume (brain) data set
> that is inside an isosurface (the outer brain surface). The idea is to
> see the volume's scalar data sampled on this specific plane. I have made
> the surface patch (the subplane) with vtkCutter, vtkStripper,
> vtkImplicitSelectionLoop and vtkClipPolyData.
>
> This idea should work according to the documentation of all these
> methods :). The result is not what I had in mind though:
> http://www.wbic.cam.ac.uk/~amw71/SurfaceCut3.png.
>
> The problem I guess (?) is that the points used for the selection loop
> are the points that make up the (triangles of the) clipped surface. The
> points probably don't follow a loop, because order of the points is
> determined by the triangles that make up the surface:
> http://www.wbic.cam.ac.uk/~amw71/triangleplane.png
>
> Is there a way to remove the inside edges so as to only keep the outer
> contour(s), and/or to order the contour edges so that they form a loop?
> One candidate I can think of is vtkFeatureEdges, but this still does not
> returns the vertices as a loop.
>
> Thanks,
> Alle Meije Wink
>

Can you try vtkFeatureEdges->GetBoundaryEdges followed by vtkStripper?
   Dave P




More information about the vtkusers mailing list