<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 at this example vtkNormals is used which is not in the vtk library(Also compiler says there is no such fileor directory). But that code seems what I would exactly want to do. Here is the code ,please suggest me how to rearrange code.</DIV>
<DIV> </DIV>
<DIV>stlreader=vtkSTLReader::New();<BR> mapper=vtkPolyDataMapper::New();<BR> pNormals= vtkPolyDataNormals::New();<BR> motorActor=vtkActor::New();<BR> vtkNormals *norm=vtkNormals::New();<BR><BR> stlreader->SetFileName("brol.stl");<BR> pNormals->SetInput(stlreader->GetOutput());<BR> mapper->SetInput(pNormals->GetOutput());<BR> motorActor->SetMapper(mapper);<BR> motorActor->SetProperty(brolProps);<BR><BR> this->Props->AddItem(motorActor);<BR><BR> int pointID;<BR> vtkDataSet *data;<BR> data=motorActor->GetMapper()->GetInput();<BR> pointID=data->FindPoint(78.9994, 73.6264, 197.831);<BR><BR> float *normal;<BR> normal=norm->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>