[vtkusers] what's the difference between actor 's position and sphere 's center ?
Jana Sefcikova
neollie at gmail.com
Tue Jun 5 05:15:50 EDT 2012
Hi, did you delete vtkSphereSource before that code or the sphere ?
Concerning fast approach, vtkPolyDataTransformFilter is not definitely good
choice for fast solution of moving object - it deforms input, recompute
every point manually, that normals. I do not know what 'movement' of sphere
do you expect , but as it is written, you want MOVE one (same) sphere.
Therefore I would combine approach that presentation emphasize - move actor
( apply continuously changed transformation but via graphic (for example
OpenGl) pipeline ) and how to do this is shown on the last slide
of presentation.
Jana
On 5 June 2012 10:30, fearhope <fearhope at gmail.com> wrote:
> Thanks Jochen, Neollie and David !
>
> I deeply appreciate your help.
>
> Neollie,
> thanks for your correction. I was trying to find that information.
>
> Regarding method 3,
> Jochen, thanks for your kind explanation.
> however, actually I don't want to save SphereSource. I would like to keep
> actor only.
> that's the problem. it's not possible ?
> actor's SetPosition is really really fast. I need such speed.
>
> therefore, according to David's recommendation, I have changed the code
> like
> as follows.
>
> vtkSmartPointer<vtkTransformPolyDataFilter> transformFilter =
> vtkSmartPointer<vtkTransformPolyDataFilter>::New();
>
>
> transformFilter->SetInputConnection(*actor->GetMapper()->GetInput()->GetProducerPort()*);
> transformFilter->SetTransform(transformation);
> transformFilter->Update();
>
> but It doesn't change anything. only I got the following error message.
>
> ERROR: In
>
> C:\Projets\PCL\installers_x86\vtk\VTK\Filtering\vtkDemandDrivenPipeline.cxx,
> line 802
> vtkStreamingDemandDrivenPipeline (290494C0): Input for connection index 0
> on
> input port index 0 for algorithm vtkTransformPolyDataFilter(2904D4F0) is
> NULL, but a vtkPolyData is required.
>
> does anybody know why ?
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/what-s-the-difference-between-actor-s-position-and-sphere-s-center-tp5713553p5713582.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120605/7a394ab5/attachment.htm>
More information about the vtkusers
mailing list