[vtkusers] Question asked by many, answered by none. (Help!)
jarv0075
jarv0075 at umn.edu
Mon Mar 22 18:11:02 EST 2004
The demo I refer to is the standard 'cow.tcl' demo under the vtkCutter
examples. In this, they use the edges from vtkCutter to generate a
polyline loop, which works fine for simple polygons but once it encounters
holes it seems to be still trying to form one large polyline loop? When it
triangulates, all triangles originate from a single point, and thus it
triangulates out to the edges of the holes, and the edges past the holes,
making things a total mess (see screen shot)
The screen shot can be found at
http://www.cs.umn.edu/~tjarvis/tri_fail.jpg
The error message is as follows:
ERROR: In vtkPolygon.cxx, line 1179
vtkPolygon (0x818da20): Possible triangulation failure
I want to be able to cut with the plane, and fill in the slice with some
color. Basically, to be able to triangulate the output of vtkCutter even
when holes are present.
Any help you can offer would be greatly appreciated!
On 22 Mar 2004, Mathieu Malaterre wrote:
> jarv0075,
>
> You are loosing me, what 'wonderfully written samples' are you talking
> about. Could you please send us a demo + dataset to demonstrate the
> problem, or a screenshot.
>
> Thanks
> Mathieu
>
> jarv0075 wrote:
> >
> > The issue is cutting polygonal data with a plane that results in a
> > 'polygon' with holes in it. Thus, the wonderfully written samples do
not
> > apply, in that the 'sneaky shortcut' of using the edges to make
polylines
> > sends the triangulation filter into a tizzy.
> >
> > Could someone point me in the right direction on how to triangulate cut
> > polydata with holes present? This does NOT seem like it should be
> > difficult, but still I've seen the question asked by multiple others
and
> > haven't seen one answer surface yet.
> >
> > Thank you for your time and patience.
> >
> > _______________________________________________
> > 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