[vtkusers] Intersection of cylinders
Peter
peter-dpl at pre-dev.de
Sun Nov 6 08:36:01 EST 2011
Hi Quang,
thanks for your answer and sorry for my delayed response. I have to admit that I'm new to vtk so please apologize, that I don't understand everything.
Do you mean, that I have to model both cylinders as vtkCylinder and also as vtkCylinderSource? And by using the vtkClipPolyData I will get the "correct" data I need as input for vtkImplicitBoolean?
Greetings,
Peter
Am 01.11.2011 um 03:03 schrieb Quang Tran:
> Hi,
> You should use vtkImplicitBoolean and vtkClipPolyData to do this task. One of cylinder must be modeling to implicit function (you should use vtkCylinder and make any transform if necessary), set this implicit function as an input of the clipper (vtkClipPolydata), see SetClipFunction; the other cylinder is input parameter of SetInput function of clipper. After that you will have a result of this clipper as vtkPolyData. I think this result is what you need.
>
> You should use vtkCylinder rather than vtkCylinderSource because vtkCylinder is an implicit function and can use for clipping.
>
> /Quang
>
More information about the vtkusers
mailing list