<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Forget my previous emails.<br>To clear things up:<br><br>vtkSmartPointer&lt;vtkSphereSource&gt; sphereSource =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkSphereSource&gt;::New();<br>&nbsp; sphereSource-&gt;SetRadius(10.0);<br><br>//the implicit function to cut my source<br>&nbsp; vtkSmartPointer&lt;vtkPlane&gt; plane =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkPlane&gt;::New();<br>&nbsp; vtkSmartPointer&lt;vtkClipPolyData&gt; clipper =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkClipPolyData&gt;::New();<br>&nbsp; clipper-&gt;SetClipFunction(plane);<br>&nbsp; clipper-&gt;InsideOutOn();<br><br>// i use this filter because i want NOT to cut the cells but to pull them out as an entire.<br>vtkSmartPointer&lt;vtkExtractGeometry&gt; geometry =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkSmartPointer&lt;vtkExtractGeometry&gt;::New();<br>geometry-&gt;SetInputConnection(sphereSource-&gt;GetOutputPort());<br>geometry-&gt;SetImplicitFunction(plane);<br>&nbsp; <br>//Create a mapper and actor<br>.<br>.<br>.<br><br>Everything works fine except that now a cell is pulled out when <br>it's in the inside (or outside, depends on the settings) side of the plane. <br>What i want to do is a cell to be pulled entirely out ONLY when<br>its centroid is inside (or outside, depends on the settings) side of the plane.<br><br>Again, <br><pre>A Paraview screenshot: on the left is cut, on the right cells are pulled out entirely
<a href="http://yfrog.com/74cutorpulledoutentirelyj">http://yfrog.com/74cutorpulledoutentirelyj</a><br>I want the right effect but cells should be pulled out according to their centroid.<br></pre>                                               </body>
</html>