<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve been developing a capability to interactively create contours on image slices with ActiViz 5.6.1 on Windows 7 x64.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>During the initial definition of the contour the representation is stored in a vtkPolyData built up by defining Line cells. When the editing is completed the contour is closed by defining a line from the last to the first point. The entire pipeline for display looks like:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>vtkPolyData -> vtkPolyDataMapper -> vtkActor -> …<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The problem comes when I try to pick the contour. I’d like to click within the closed polygon defined by the lines and be notified of the pick. However, since the vtkPolyData is made of lines the pick doesn’t seem to recognize it. I’ve used different prop pickers (i.e. vtkPropPicker and vtkCellPicker) all failing. I decided that I had to define the cell in the vtkPolyData as a Polygon rather than lines for the pick to be recognized. This solved the picking problem. In order to correctly display the boundaries of the polygonal cell I had to pass the vtkPolyData through a vtkTriangleFilter.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now I want the display to be an outline of the polygon cell without any interior shading. The side effect of vtkTriangleFilter is that it breaks the single cell into multiples which causes lines to be drawn across the interior of the polygon. This is undesirable. I’ve tried using different representations for the actor, but Wireframe and Surface don’t look right.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>After all that, is there a way to display the contour as an outline and have it pickable? Right now I’m leaning toward having 2 actors, one with the lines and one with the polygon, but make the polygon actor transparent. However I’d like to avoid the overhead.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> -- Scott<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>