Thanks yohann,
In my code one tube rotates around a vector and it should be stopped when first contact occured (Number Of Contacts() > 0).
In fact Number Of Contacts is checked after each step of rotation.
Is there any way to convert tube data type so vtkCollisionDetectionFilter can work properly.