[vtkusers] Re: Draw and Color Polygons

Dominik Szczerba domi at vision.ee.ethz.ch
Mon Oct 1 03:18:00 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I would display point ids to find the bad triangle.
- -- Dominik

Janny Dong wrote:
> A little bit update... I just tried out vtkTriangleFilter. It almost worked
> except warning messages:
> 
> Warning: In \VTK-503\vtk-5.0.3\Filtering\vtkPolygon.cxx, line 613
> vtkPolygon (01929088): Degenerate polygon encountered during triangulation
> 
> I used vtkCleanPolyData before the filter, but I still got the message. I'm
> not sure how to deal with the bad triangles yet... The map I got is
> attached. It looks better except the holes within the polygons.
> 
> Could someone share some experience?
> 
> Thanks!
> Janny
> 
> 
> On 9/30/07, Janny Dong <janny.dong at gmail.com> wrote:
>> Hello,
>>
>> I have the latitude and longitude data for the lake areas and I put them
>> in to a vtk file. There are three polygons. I set scalars and a lookup table
>> in the data file to color them with one color-blue, for example. My test
>> results are in the attached pictures.  If I draw lines, the map looks
>> perfect. However, if they are displayed as polygons, I want polygons. Then
>> the map doesn't look right, neither does the color. Why do I get black
>> areas? How can I draw the polygons properly?
>>
>> Any thought will be appreciated.
>>
>> Best,
>> Janny
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

- --
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHAJ8o/EBMh9bUuzIRAoOPAJ9gk00OaFD5dn8tikzBnytYO1ppLQCglqC8
/El7oW3GIdnRkX4k//PchV8=
=7Ymq
-----END PGP SIGNATURE-----



More information about the vtkusers mailing list