[vtkusers] Manually positioning a cylinder between two points - How to?
Wagner Sales
wsales at gmail.com
Mon Jun 14 18:07:41 EDT 2010
Hi David,
I think here we can have an undesired result: since the second points
can be more distant than the initial points ( caps of the cylinder ) I
think we will have the scale too, what's are undesired.
Regards,
Wagner
2010/6/14 David Doria <daviddoria+vtk at gmail.com>:
> 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
More information about the vtkusers
mailing list