<div dir="ltr">Got it Bill!<br><br>There is a trick<br><br>pipeline is as I uesd before from capCow.tcl but introducin vtkfeatureEdges after vtkCutter and setting the stripper input from cutter not from featureEdges.<br><br>
I am bit confused, does this featureedges modifies the cutter output<br> and makes this modified outpur available to cutter-&gt;GetOutput()<br><br>Seems to be  special type of operation ( or is it a bug!).<br><br>Here is the screenshot<br>
<br>I will add an example to wiki.<br><br><br>Thanks,<br><br><br><div class="gmail_quote">On Sat, Jun 5, 2010 at 5:03 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Can you post an image of what you get?<br>
<div><div></div><div class="h5"><br>
On Sat, Jun 5, 2010 at 11:34 AM, Jothy &lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt; wrote:<br>
&gt; Here is it!<br>
&gt;<br>
&gt; # A simple script to demonstrate the vtkCutter function<br>
&gt; import vtk<br>
&gt;<br>
&gt;<br>
&gt; #Create a cube<br>
&gt; cube=vtk.vtkSphereSource()<br>
&gt; cube.SetRadius(50)<br>
&gt; cube.SetThetaResolution(200)<br>
&gt; cube.SetPhiResolution(200)<br>
&gt; cubeMapper=vtk.vtkPolyDataMapper()<br>
&gt; cubeMapper.SetInputConnection(cube.GetOutputPort())<br>
&gt;<br>
&gt; #create a plane to cut,here it cuts in the XZ direction (xz<br>
&gt; normal=(1,0,0);XY =(0,0,1),YZ =(0,1,0)<br>
&gt; plane=vtk.vtkPlane()<br>
&gt; plane.SetOrigin(10,0,0)<br>
&gt; plane.SetNormal(1,0,0)<br>
&gt;<br>
&gt; #create cutter<br>
&gt; cutter=vtk.vtkCutter()<br>
&gt; cutter.SetCutFunction(plane)<br>
&gt; cutter.SetInput(cubeMapper.GetInput())<br>
&gt; cutter.Update()<br>
&gt;<br>
&gt; FeatureEdges=vtk.vtkFeatureEdges()<br>
&gt; FeatureEdges.SetInputConnection(cutter.GetOutputPort())<br>
&gt; FeatureEdges.BoundaryEdgesOn()<br>
&gt; FeatureEdges.FeatureEdgesOff()<br>
&gt; FeatureEdges.NonManifoldEdgesOff()<br>
&gt; FeatureEdges.ManifoldEdgesOff()<br>
&gt; FeatureEdges.Update()<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; cutMapper=vtk.vtkPolyDataMapper()<br>
&gt; cutMapper.SetInput(FeatureEdges.GetOutput())<br>
&gt; cutActor=vtk.vtkActor()<br>
&gt; cutActor.GetProperty().SetColor(1,1,0)<br>
&gt; cutActor.GetProperty().SetEdgeColor(1,0.5,0)<br>
&gt; cutActor.GetProperty().SetLineWidth(2)<br>
&gt; cutActor.GetProperty().EdgeVisibilityOn()<br>
&gt; cutActor.GetProperty().SetOpacity(0.7)<br>
&gt; cutActor.SetMapper(cutMapper)<br>
&gt;<br>
&gt;<br>
&gt; #create renderers and add actors of plane and cube<br>
&gt; ren = vtk.vtkRenderer()<br>
&gt; ren.AddActor(cutActor)<br>
&gt;<br>
&gt;<br>
&gt; #Add renderer to renderwindow and render<br>
&gt; renWin = vtk.vtkRenderWindow()<br>
&gt; renWin.AddRenderer(ren)<br>
&gt; renWin.SetSize(600, 600)<br>
&gt; iren = vtk.vtkRenderWindowInteractor()<br>
&gt; iren.SetRenderWindow(renWin)<br>
&gt; ren.SetBackground(0,0,0)<br>
&gt; renWin.Render()<br>
&gt;<br>
&gt; On Fri, Jun 4, 2010 at 10:07 PM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; From the output of vtkCutter, insert vtkFeatureEdges with<br>
&gt;&gt; BoundaryEdgesOn()<br>
&gt;&gt; FeatureEdgesOff()<br>
&gt;&gt; NonManifoldEdgesOff()<br>
&gt;&gt; ManifoldEdgesOff()<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Jun 4, 2010 at 4:16 PM, Jothy &lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi all,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; With the help of CapCow.tcl example I am able to fill the contour I got<br>
&gt;&gt; &gt; from<br>
&gt;&gt; &gt; vtkCutter. But, the problem is I am the edge to be visible, so I set<br>
&gt;&gt; &gt; edge<br>
&gt;&gt; &gt; visibility on, it makes all the triangle edges on. I want only the<br>
&gt;&gt; &gt; outline<br>
&gt;&gt; &gt; on.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Any suggestions?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Jothy<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>