<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi all,</div><div><br></div><div>See code below.</div><div>What I am trying to do is to connect a piece of cone to a cylinder. To do this I cut the top of the cone using an implicit cylinder with the same radius as real cylinder.</div><div>However, the radius of the cut cone top is not equal to the radius of the real cylinder.</div><div>What am I doing wrong?</div><div><br></div><div>Does this have to do with how the clip values in the points are interpolated? And should I refine the triangulation of the cone to get a better result?<br></div><div><br></div><div>Thanks - Maarten<br></div><div><br></div><div>vtkSmartPointer&lt;vtkConeSource&gt; startcone = vtkConeSource::New();<br>&nbsp; startcone-&gt;SetResolution( 30 );<br>&nbsp; startcone-&gt;SetHeight( this-&gt;EntryLength );<br>&nbsp; startcone-&gt;SetRadius(
 this-&gt;EntryRadius );<br>&nbsp; startcone-&gt;SetCenter( 0.0, -0.5*this-&gt;Length + 0.5*this-&gt;EntryLength, 0.0 );<br>&nbsp; startcone-&gt;SetDirection( 0.0, 1.0, 0.0 );<br>&nbsp; startcone-&gt;CappingOff();<br>&nbsp; <br>&nbsp; vtkSmartPointer&lt;vtkCylinderSource&gt; cylinder = vtkCylinderSource::New();<br>&nbsp; cylinder-&gt;SetResolution( 30 );<br>&nbsp; cylinder-&gt;SetRadius( this-&gt;CylinderRadius );<br>&nbsp; cylinder-&gt;SetHeight( this-&gt;Length );<br>&nbsp; cylinder-&gt;SetCenter( 0.0, 0.0, 0.0 );<br>&nbsp; cylinder-&gt;CappingOff();<br>&nbsp; <br>&nbsp; vtkSmartPointer&lt;vtkCylinder&gt; cyl = vtkCylinder::New();<br>&nbsp; cyl-&gt;SetRadius( this-&gt;CylinderRadius );<br>&nbsp; cyl-&gt;SetCenter( 0.0, 0.5*this-&gt;Length, 0.0 );<br>&nbsp; <br>&nbsp; vtkSmartPointer&lt;vtkClipPolyData&gt; clipper1 = vtkClipPolyData::New();<br>&nbsp; clipper1-&gt;SetClipFunction( cyl );<br>&nbsp; clipper1-&gt;SetInputConnection(
 startcone-&gt;GetOutputPort() );<br>&nbsp; <br>&nbsp; vtkSmartPointer&lt;vtkAppendPolyData&gt; append = vtkAppendPolyData::New();<br>&nbsp; append-&gt;AddInput( clipper1-&gt;GetOutput() );<br>&nbsp; append-&gt;AddInput( cylinder-&gt;GetOutput() );<br></div></div></body></html>