[vtkusers] Ordering of Points !

John Platt jcplatt at dsl.pipex.com
Thu Nov 30 15:21:36 EST 2006


Hi,

 

Do you have any evidence that VTK orders the points differently to the
order presented in the data file? If it did, it would also need to
change the cell topologies.

 

HTH

 

John.

 

-----Original Message-----
From: vtkusers-bounces+jcplatt=dsl.pipex.com at vtk.org
[mailto:vtkusers-bounces+jcplatt=dsl.pipex.com at vtk.org] On Behalf Of
M.Salman at surrey.ac.uk
Sent: 30 November 2006 16:45
To: vtkusers at vtk.org
Subject: [vtkusers] Ordering of Points !

 

Hello All,


When vtk loads a  model in vtkPolyData format, it populates its POINTS
list  and the index to that point list is used further  to populate
POLYGONS list and so on .

Could you please tell me from which point of a given model, vtk starts
populating its point list.To put it other way, which point of the whole
data set becomes the first to appear in the Point list of vtkPolyData.
For example,why did vtk started to populate the POINTS list from 0.0,
0.0, 0.0 in the following listing; why not some other point.



# vtk DataFile Version 2.0
Cube example
ASCII
DATASET POLYDATA
POINTS 8 float

0.0 0.0 0.0
1.0 0.0 0.0
1.0 1.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
1.0 0.0 1.0
1.0 1.0 1.0
0.0 1.0 1.0
POLYGONS 6 30
4 0 1 2 3
4 4 5 6 7
4 0 1 5 4
4 2 3 7 6
4 0 4 7 3
4 1 2 6 5

This is very important for me though it seems trivial.I would highly
appreciate your help.

Regards,
M.Salman
University of Surrey
U.K.

 

 

 

 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061130/234814fc/attachment.htm>


More information about the vtkusers mailing list