<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C221CF.0CD77970">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple style='tab-interval:36.0pt'>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi All<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to fill some circles using <span class=SpellE><span
class=GramE>vtk</span></span><span class=GramE>,</span> I use <span
class=SpellE>vtk</span> with Java on a Windows XP platform<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a 3 D scene with lots of spheres. <span
style='mso-spacerun:yes'> </span>All spheres have a colour property
assigned to them.<span style='mso-spacerun:yes'> </span>All of this works
fine and I use <span class=SpellE>vtkCutter</span> to slice my 3D scene and my
problem is when the scene is sliced, I only get the outer ring of my circle
coloured as expected. <span style='mso-spacerun:yes'> </span>I would like
colour the whole circle with the assigned colour of the sphere as in the 3D scene.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Does anyone know how I can go about doing this or point me
to some example in <span class=SpellE><span class=GramE>vtk</span></span><span
class=GramE>.</span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Satheesh<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><span style='mso-spacerun:yes'> </span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Here is the code that does it <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><span
class=SpellE><span class=GramE><font size=2 color=blue face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:blue'>glyph.SetColorModeToColorByScalar</span></font></span></span><span
class=GramE><font size=2 color=blue face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:blue'>(</span></font></span><font size=2 color=blue
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:blue'>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>glyph.SetScaleModeToDataScalingOff</span></span><span
class=GramE>(</span>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>glyph.SetInput</span></span><span class=GramE>(</span>data);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>glyph.SetSource</span></span><span class=GramE>(</span><span
class=SpellE>sphere.GetOutput</span>());<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>glyph.GetOutput</span></span><span class=GramE>(</span>).<span
class=SpellE>GetPointData</span>().<span class=SpellE>SetScalars</span>(<span
class=SpellE>color</span>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=GramE>plane</span> = new <span class=SpellE>vtkPlane</span>();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>plane.SetOrigin</span></span><span class=GramE>(</span>105,1,105);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>plane.SetNormal</span></span><span class=GramE>(</span>0,0,1);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:1'> </span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span>//
************************<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>cutEdges</span></span> = new <span class=SpellE>vtkCutter</span>();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>cutEdges.SetInput</span></span><span
class=GramE>(</span><span class=SpellE>glyph.GetOutput</span>());<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>cutEdges.SetCutFunction</span></span><span
class=GramE>(</span>plane);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>map.SetInput</span></span><span class=GramE>(</span><span
class=SpellE>glyph.GetOutput</span>());<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE>cells_<span class=GramE>actor.SetMapper</span></span><span
class=GramE>(</span>map);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>clippedMapper.SetInput</span></span><span
class=GramE>(</span><span class=SpellE>cutEdges.GetOutput</span>());<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'><span style='mso-tab-count:2'> </span><span
class=SpellE><span class=GramE>clippedActor.SetMapper</span></span><span
class=GramE>(</span><span class=SpellE>clippedMapper</span>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>