Friday 15 June 2012

c++ - Intersection of two actors - Vtk -



c++ - Intersection of two actors - Vtk -

i seek indicate intersection part of 2 vtkactors. have 3 vtkactors in total- 2 cones , 1 intersection of cones.

i have used vtkintersectionpolydatafilter draw intersection. couldn't create dynamic. when move actors different positions using keyboard interaction defined, intersection actor's initial state remains same. not beingness updated. how can create , alter intersection actor dynamically?

from description seems modifying actors, representation of polydata. vtkintersectionpolydatafilter works on polydata (that is, independent representation). if original polydata untouched, intersection same.

on other hand, if updating polydata (e.g. changing height of cone), remember set flag modified() trigger update of vtkintersectionpolydatafilter

c++ vtk

No comments:

Post a Comment