[vtkusers] vtkPropPicker - Get Surface Area of actor (polygon)

polys_poly at hotmail.com polys_poly at hotmail.com
Sun May 11 09:56:08 EDT 2008


Hello, 

I am creating some polygons in 3D and i am picking these actors using the following code

int mouseX = m_pRenderWindow->GetInteractor()->GetEventPosition()[0];
int mouseY = m_pRenderWindow->GetInteractor()->GetEventPosition()[1]; 
 
vtkObject* prop = vtkProp::New();
int i = m_pPropPicker->PickProp(mouseX, mouseY, pChildFrameReference->m_wndView.m_pVTK->m_pRenderer);
if (i==1)
  prop = m_pPropPicker->GetViewProp();

How can i get the surface area of the polygon picked?

Thanks in advance,
Polys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080511/d92f165a/attachment.htm>


More information about the vtkusers mailing list