[vtkusers] vtkPlane::ProjectPoint : how to get projected point ?
Philippe Pouletaut
philippe.pouletaut at utc.fr
Wed May 7 06:14:35 EDT 2008
Hello vtkuser,
I would like to get projected points onto a plane from a polydata set.
I use VTK5.0 and try the vtkPlane ProjectPoint method as the tcl example
follows :
vtkPlane plane
set origin [list 2.0 0.0 0.0]
set normal [list -1.0 0.0 0.0]
set xproj [list 0.0 0.0 0.0]
set p1 [list 0.0 1.0 0.0]
eval [plane ProjectPoint $p1 $origin $normal $xproj]
But it doesn't work ... It indicates that the calling arguments are bad
or the method is not found.
I've also tested the GeneralizedProjectPoint: The same error occurs.
Can anybody help me to find what is wrong ? Is there another way to get
projected points on a plane ?
Many thanks for your attention.
--
Philippe POULETAUT
Université de Technologie de Compiègne
Dpt Génie Biologique. UMR 6600
BP 20529 F 60205 Compiègne Cedex - France
Tél.: +33 (0)3.44.23.44.23 poste 53.11
fax : 03 44 20 79 42
courriel : Philippe.Pouletaut at utc.fr
More information about the vtkusers
mailing list