[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] Manually positioning a cylinder between two points -
From:       Wagner Sales <wsales () gmail ! com>
Date:       2010-06-14 22:31:12
Message-ID: AANLkTinp2QEPOPjxARG1iE9nOqQFo0gnC41PGwlN0Dhw () mail ! gmail ! com
[Download RAW message or body]

Hi David,

Work very fine to position the object. But, like I told, scales the
object. If the scale can be removed from transform, will be perfect!
When you did this approach, have you get in trouble with the scaling
too or this was not relevant to you?

Thanks in advance,

Wagner Sales



2010/6/14 Wagner Sales <wsales@gmail.com>:
> 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@gmail.com>:
>> On Mon, Jun 14, 2010 at 6:00 PM, Wagner Sales <wsales@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
>
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic