<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi !<BR><BR>I am having some problems calculating a specific normal of a point on the surface of an object. I found an example through the internet, but&nbsp;at this example vtkNormals&nbsp;&nbsp;is used which is not in the vtk library(Also compiler says there is no&nbsp; such fileor directory). But that code seems what I would exactly want to do. Here is the code&nbsp;,please suggest me how to rearrange&nbsp; code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>stlreader=vtkSTLReader::New();<BR>&nbsp; mapper=vtkPolyDataMapper::New();<BR>&nbsp; pNormals= vtkPolyDataNormals::New();<BR>&nbsp; motorActor=vtkActor::New();<BR>&nbsp; vtkNormals *norm=vtkNormals::New();<BR><BR>&nbsp; stlreader-&gt;SetFileName("brol.stl");<BR>&nbsp; pNormals-&gt;SetInput(stlreader-&gt;GetOutput());<BR>&nbsp; mapper-&gt;SetInput(pNormals-&gt;GetOutput());<BR>&nbsp; motorActor-&gt;SetMapper(mapper);<BR>&nbsp; motorActor-&gt;SetProperty(brolProps);<BR><BR>&nbsp; this-&gt;Props-&gt;AddItem(motorActor);<BR><BR>&nbsp; int pointID;<BR>&nbsp; vtkDataSet *data;<BR>&nbsp; data=motorActor-&gt;GetMapper()-&gt;GetInput();<BR>&nbsp; pointID=data-&gt;FindPoint(78.9994, 73.6264, 197.831);<BR><BR> float *normal;<BR> normal=norm-&gt;GetNormal(pointID);<BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>