@Zuheyr_Alsalihi, this is not strongly related to the original topic, so would be better asked on a new post. But as a quick answer, no, the Clip
filter does not support clipping by arbitrary surface meshes. There is some limited support that is discussed here: Slice/Clip with a surface. That said, in your case it might be easier to just to multiple clips: one with the infinite cylinder and one planar clip for each end.