[vtkusers] How to get normals??

Bill Lorensen bill.lorensen at gmail.com
Thu Nov 12 12:52:41 EST 2009


Relpace:
 normals->SetInput(Iso);
with
 normals->SetInput(Iso->GetOutput());

On Thu, Nov 12, 2009 at 12:09 PM, renlishen <renlishen at gmail.com> wrote:
>
> Thanks for your examples, David~
> but now I have a new question
> If i want to use this
> ------------------------
>  vtkMarchingCubes *Iso = vtkMarchingCubes::New() ;
>  Iso->SetInput(myData) ;
>  vtkPolyDataNormals *normals = vtkPolyDataNormals::New();
>  normals->SetInput(Iso);
>  normals->ComputePointNormalsOn();
>  normals->Update();
> ------------------------
> Can I get points' normal by this method?
> If I can, how to do ?
> Because everytime I get is the wrong normal...
>
> Thanks~
> RenLi
> --
> View this message in context: http://old.nabble.com/How-to-get-normals---tp26297021p26322487.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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list