[vtkusers] Set vertex normals ?

David E DeMarle dave.demarle at kitware.com
Thu Oct 22 14:17:12 EDT 2015


vtkPolyData->GetPointData()->SetNormals(your 3component wide x numcells
tuple long array) should do the trick.



David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Oct 22, 2015 at 1:32 PM, Ronald Levine <rl at quantcomp.com> wrote:

> I have a large quad mesh (easily decomposed into a set of triangle strips)
> whose positions AND vertex normals (point normals) are mathematically
> generated.  I want to render the surface with Gouraud shading using my
> supplied vertex normals.  I do not want the system to estimate the point
> normals from the triangle geometry.
>
> Working in Python, where it's easy to experiment, I don't see any way to do
> that.  Neither does reading the C++ documentation provide any clues.
>
> Thanks for any helpful comments.
>
> RL
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Set-vertex-normals-tp5734525.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151022/4700ef3a/attachment.html>


More information about the vtkusers mailing list