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

Wagner Sales wsales at gmail.com
Mon Jun 14 18:00:33 EDT 2010


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

2010/6/14 David Doria <daviddoria+vtk at gmail.com>:
> On Mon, Jun 14, 2010 at 5:22 PM, Wagner Sales <wsales at gmail.com> wrote:
>>
>> Hi all,
>>
>> I need to manually position a cylinder between two points in 3D space.
>> In fact, aren't exactly a cylinder, but a polydata that's have same
>> properties a cylinder haves.
>
> I'm not sure I understand fully.  Do you know a point on each cap of the
> cylinder? If so you could use a landmark transform between the two points
> you know on the cylinder and the two 3D points. I've done this to orient
> things in the past.
> Thanks,
>
> David



More information about the vtkusers mailing list