[vtkusers] function to calculate the angle between three points

lynx.abraxas at freenet.de lynx.abraxas at freenet.de
Tue Jan 12 14:47:48 EST 2010


Hello again!


I fear I could have asked unclearly so I give it another try:
Is there a filter in vtk that calculates the angle of an array containing many
tupels of two points/vectors? The angle I want is  the  one  between  the  two
point-vectors and the origin.
Or  would  there  be  an optimzed function to calculate an angle between three
points?
Is there a quicker way to calculate the angle than by normalizing each one and
taking the arccos of the scalar product?


Thanks for any help or hints
Lynx


On 11/01/10 00:12:26, lynx.abraxas at freenet.de wrote:
> Hello!
> 
> 
> One other problem I have:
> How  can  I  calculate  the  angle  of  an edge (eg. the angle between the two
> points/vertices of a mesh and the origin of the coordinate system)?
> I want to do that for a complete mesh. Sadly vtkMeshQuality has  no  qualities
> for  edges.  Is  there any other class in vtk to use or would I have to do the
> calculation on my own?
> 
> Thanks again for any help or hints.
> Lynx
> 
> _______________________________________________
> 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