[vtkusers] Odd vtk normals calculation behavior

Tarcísio Fischer tarcisio.fischer.cco at gmail.com
Thu Mar 5 16:20:55 EST 2015


Hello.

I'm trying to get the normals of my 3D cube (a VTK_POLYHEDRON cell) with
vtk6.1 in python.
I know that there is many questions about the normals orientation, but this
is not the case. The problem is that it seems one of the normals is
completely wrong, as I will show in my example code.
To try to keep it simple, I'll separate the code in three parts:

1- Only the part where I think the problem is:
http://pastebin.com/2SW5q4n2

2- The full code so that everyone can run:
http://pastebin.com/DH3ei1XD

3- Extended code with some internals exposed (with odd results!):
(Take a look at Trying to view data internals)
http://pastebin.com/BYEkhiqc

Can someone help me? What am I missing here?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150305/4c1e8728/attachment.html>


More information about the vtkusers mailing list