[vtk-developers] Rationale for vtkWedge point order

Mark Olesen Mark.Olesen at faurecia.com
Wed Feb 24 10:08:01 EST 2010


I ran into this (again). 

For the majority of the primitive 3d cell shapes (vtkTetra, vtkPyramid,
vtkHexahedron, vtkHexagonalPrism, vtkPentagonalPrism), the base forms a
face whose normal points in the direction of the next face (or point, in
the case of vtkTetra).

But vtkWedge is defined the opposite way around - the face normals point
in opposite directions!!

This is presumably historical and probably couldn't be changed without
breaking a huge amount of code, but what is the rationale for it?

Or is actually immaterial if the specified node order results in cells
with a negative volume?

The reason for my question is not only that I stumbled on this again,
but also that other VTK readers seem to be using vtkWedge while assuming
a different point order.

For example, according to the EnSight documents, their "penta6" is
defined with a base (0,1,2) that points towards the opposite face
(3,4,5). The rest of the EnSight shapes are consistent with the node
order used by VTK. Doesn't this cause inverted cells?


/mark


DISCLAIMER:
This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.




More information about the vtk-developers mailing list