AlignTwoPolyDatas Example

You will probably need to transform your target object so that its orientation is similar to the reference object as shown in the images above. Generally this is done using vtkTransform and vtkTransformPolyDataFilter or something similar. To get a feel for what happens, you could open Paraview load a cone source and apply the transform filter.
Here are several examples that also may be of use: