[vtkusers] Manually positioning a cylinder between two points - How to?

David Doria daviddoria+vtk at gmail.com
Mon Jun 14 18:02:59 EDT 2010


On Mon, Jun 14, 2010 at 6:00 PM, Wagner Sales <wsales at gmail.com> wrote:

> Hi David,
>
> Let me see if I get:
>
> a) set the two known points ( the points on each cap of the cylinder )
> to source of the vtkLandmarkTransform ( SetSourceLandmarks )
> b) set the two desired points to target of the vtkLandmarkTransform (
> SetTargedLandmarks )
> c) set a type of transform ( rigid? )
> d) creates a vtkTransformPolyDataFilter and sets the previous
> vtkLandmarkTransform to this filter
> e) apply the filter on the polydata
>
> That's it?
>
> Regards,
>
> Wagner Sales
>
>
Yep, that's exactly what I meant to say, but I wasn't 100% clear of what you
were trying to so I'm not sure that it does what you want.

Let me know if it doesn't and we'll continue to brainstorm.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100614/acd99127/attachment.htm>


More information about the vtkusers mailing list