<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<vtkSphereSource> sphereSource =<br> vtkSmartPointer<vtkSphereSource>::New();<br> sphereSource->SetRadius(10.0);<br><br>//the implicit function to cut my source<br> vtkSmartPointer<vtkPlane> plane =<br> vtkSmartPointer<vtkPlane>::New();<br> vtkSmartPointer<vtkClipPolyData> clipper =<br> vtkSmartPointer<vtkClipPolyData>::New();<br> clipper->SetClipFunction(plane);<br> clipper->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<vtkExtractGeometry> geometry =<br> vtkSmartPointer<vtkExtractGeometry>::New();<br>geometry->SetInputConnection(sphereSource->GetOutputPort());<br>geometry->SetImplicitFunction(plane);<br> <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>