[vtkusers] Messed up mesh connectivity

Budo Zindovic bzindovic at gmail.com
Fri Jun 22 05:17:54 EDT 2018


Hello,

I'm trying to visualize triangular mesh (by using unstructured data) from a
VTK file I've created. Contents of this file are as follows:

# vtk DataFile Version 3.0
Test data
ASCII

DATASET UNSTRUCTURED_GRID
POINTS 7 float
-174.0 -305.0 0.0
4538.0 135.0 0.0
43860.0 35730.0 0.0
18980.0 35780.0 0.0
298770.0 -109640.0 0.0
265940.0 141140.0 0.0
2342000.0 3887000.0 0.0

CELLS 8 24
3 7 4 6
3 7 6 5
3 6 4 3
3 6 3 5
3 5 2 1
3 5 3 2
3 4 2 3
3 4 1 2

CELL_TYPES 8
5
5
5
5
5
5
5
5

POINT_DATA 7
SCALARS  float
LOOKUP_TABLE default
0.0
0.0
0.0
0.0
0.0
0.500000
0.0

The problem is that VTK displays mesh with triangles messed up. I've
attached two images, one with correct and the other with messed up
triangles (from VTK visualization engine).

Did anyone encounter this? If you have, how did you overcome this issue?

Budo Zindovic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180622/740d3ad1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mesh_Correct.jpg
Type: image/jpeg
Size: 58713 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180622/740d3ad1/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mesh_VTK.jpg
Type: image/jpeg
Size: 36225 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180622/740d3ad1/attachment-0001.jpg>


More information about the vtkusers mailing list