<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>vtkHedgeHog is using the Filter
vtkPolyDataNormals.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>To get normal informations copy the output of
PolyDataNormals to a new polydate structure and get the
pointdata.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>For example:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>#include "vtkPolyData.h"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>#include "vtkPointData.h"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>#include
"vtkPolyDataNormals.h"</SPAN></FONT></DIV></SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>vtkPolyDataNormals *normals =
vtkPolyDataNormals::New(); //you are using the output of normals in
vtkHedgeHog</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>normals ->
SetInput(yourstructure->GetOutput());</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>vtkPolyData *pdata =
vtkPolyData::New();</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004>pdata = DeepCopy((vtkDataSet
*)normals->GetOutput());</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT color=#0000ff><FONT
size=2><FONT><SPAN class=312471415-15102004>float = p_normal[3]; //your normal
vector</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT color=#0000ff><FONT
size=2><FONT><SPAN class=312471415-15102004></SPAN></FONT><FONT><SPAN
class=312471415-15102004>pdata -> GetPointData()->GetNormals()->GetTuple(pointid,p_normal);
//pointid is the ID of the chosen
point</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT color=#0000ff><FONT
size=2><FONT><SPAN
class=312471415-15102004></SPAN></FONT></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><FONT color=#0000ff><FONT
size=2><FONT><SPAN class=312471415-15102004>Hope this works, Timo
Frenzel.</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Tahoma color=#0000ff size=2><SPAN
class=312471415-15102004></SPAN></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> vtkusers-bounces@vtk.org
[mailto:vtkusers-bounces@vtk.org] <B>Im Auftrag von </B>Longfei
Cong<BR><B>Gesendet:</B> Freitag, 8. Oktober 2004 13:19<BR><B>An:</B>
vtkusers@vtk.org<BR><B>Betreff:</B> [vtkusers] use vtkPolyData to define
vector<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hi :</FONT></DIV>
<DIV><FONT face=Arial size=2> <FONT face="Times New Roman"
size=3>I want to visual a surface with normal vector on it, i got that
vtkHedgeHog done this, but how can i denote the vector in <FONT size=1><FONT
size=1><FONT size=3>vtkPolyData, for</FONT> </FONT></FONT><FONT
size=3>vtkHedgeHog->SetInput is vtkPolyData.</FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>wish for your help!!!!!!!</FONT></DIV>
<DIV><FONT face=Arial size=2>longfei</FONT></DIV></BODY></HTML>