<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Sebastien,<br>
      <br>
      For information, the code you provide is pure VTK, not VES - your
      question should be sent to the VTK mailing list instead.<br>
      <br>
      Best,<br>
      Joachim Pouderoux<br>
      Kitware SAS<br>
      <br>
      Le 14/03/2014 10:49, Sebastien HO a écrit :<br>
    </div>
    <blockquote
      cite="mid:004101cf3f6a$ba029b50$2e07d1f0$@traceparts.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:FR;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:139856495;
        mso-list-type:hybrid;
        mso-list-template-ids:-324354222 -1517898052 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Thanks for your answer, <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Actually, I am using VTK with a C# wrapper and
            I have tested based on wiki examples. I can’t found VES
            functions in C# library based on the example you have sent
            me.  I have tried to build manually a colored cube with
            edges using c# wrapper library but I am  getting strange
            results :<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><span style="mso-list:Ignore">-<span
                style="font:7.0pt "Times New Roman"">         
              </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Some face disappeared.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><span style="mso-list:Ignore">-<span
                style="font:7.0pt "Times New Roman"">         
              </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">I do not know how to assign black color to
            edge.  Face colors are automatically applied to the edge.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Here are screenshots :<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><img id="Image_x0020_1"
            src="cid:part1.09030104.03050101@kitware.com" width="305"
            height="308"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US">Here is my code :<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">      
          </span><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">  <span style="color:blue">private</span> <span
              style="color:blue">void</span> ColoredCube()<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">         {<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Create the geometry of the points (the coordinate)</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkPoints</span>
            points = <span style="color:#2B91AF">vtkPoints</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">double</span>[,]
            p = <span style="color:blue">new</span> <span
              style="color:blue">double</span>[,] {<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                    {10.0, 10.0, 10.0}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">             {0.0, 10.0, 10.0}, <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                    {10.0, 0.0, 10.0},<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                    {0.0, 0.0, 10.0}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">             {10.0, 0.0, 0.0}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="margin-left:35.4pt;text-indent:35.4pt;text-autospace:none"><span
style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">       {0.0, 0.0, 0.0},<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                    {10.0, 10.0, 0.0}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">             {0.0, 10.0, 0.0}<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              };<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Create topology of the points (a vertex per point)</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkCellArray</span>
            vertices = <span style="color:#2B91AF">vtkCellArray</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">int</span>
            nPts = 8;<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">int</span>[]
            ids = <span style="color:blue">new</span> <span
              style="color:blue">int</span>[nPts];<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">for</span>
            (<span style="color:blue">int</span> i = 0; i < nPts;
            i++)<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                      ids[i] =
            points.InsertNextPoint(p[i, 0], p[i, 1], p[i, 2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">int</span>[,]
            triangles = <span style="color:blue">new</span> <span
              style="color:blue">int</span>[,] <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               {<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">            {0, 1, 2}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">            {2, 1, 3}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">            {4, 5, 6},<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                   {6, 5, 7}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">            {3, 5, 2}, <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                  {2, 5, 4},<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                  {1, 7, 3}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">            {3, 7, 5},                  <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                  {0, 6, 1}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">            {1, 6, 7}, <o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">            {2, 4, 0},<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                   {0, 4, 6}<o:p></o:p></span></p>
        <p class="MsoNormal"
          style="text-indent:35.4pt;text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">         };<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">int</span>
            nTrs = 12;<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkCellArray</span>
            faces = <span style="color:#2B91AF">vtkCellArray</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">for</span>
            (<span style="color:blue">int</span> i = 0; i < nTrs;
            i++)<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               {<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                      <span
              style="color:#2B91AF">vtkTriangle</span> triangle = <span
              style="color:#2B91AF">vtkTriangle</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                     
            triangle.GetPointIds().SetId(0, triangles[i, 0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                     
            triangle.GetPointIds().SetId(1, triangles[i, 1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                     
            triangle.GetPointIds().SetId(2, triangles[i, 2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                     
            faces.InsertNextCell(triangle);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               }<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Create a cell array to store the triangle in and add the
              triangle to it</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Setup two colors - one for each line</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">byte</span>[]
            red = <span style="color:blue">new</span> <span
              style="color:blue">byte</span>[] { 255, 0, 0 };<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">byte</span>[]
            green = <span style="color:blue">new</span> <span
              style="color:blue">byte</span>[] { 0, 255, 0 };<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">byte</span>[]
            blue = <span style="color:blue">new</span> <span
              style="color:blue">byte</span>[] { 0, 0, 255 };<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Setup the colors array</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkUnsignedCharArray</span>
            colors = <span style="color:#2B91AF">vtkUnsignedCharArray</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.SetNumberOfComponents(3);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.SetName(<span
              style="color:#A31515">"Colors"</span>);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Add the colors we created to the colors array</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(red[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            colors.InsertNextValue(green[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[0]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[1]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               colors.InsertNextValue(blue[2]);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//Line
              creation</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">int</span>[,]
            linesArray = <span style="color:blue">new</span> <span
              style="color:blue">int</span>[,] <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               </span><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">{<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">           
                  {0, 1}, <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">                  {0,
            2}, <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">                  {1,
            3},<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">            
                 {3, 2}<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">     
                     };<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">                   
            <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">            
          </span><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">  <span style="color:green">//Create Lines</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">int</span>
            nLs = 4;<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkCellArray</span>
            lines = <span style="color:#2B91AF">vtkCellArray</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:blue">for</span>
            (<span style="color:blue">int</span> i = 0; i < nLs; i++)<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               {<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                      <span
              style="color:green">// Create line </span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                      <span
              style="color:#2B91AF">vtkLine</span> line = <span
              style="color:#2B91AF">vtkLine</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                     
            line.GetPointIds().SetId(0, linesArray[i,0]); <span
              style="color:green">//0 is the index of the Origin in the
              vtkPoints</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                     
            line.GetPointIds().SetId(1, linesArray[i, 1]); <span
              style="color:green">//1 is the index of P1 in the
              vtkPoints</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                     
            lines.InsertNextCell(line);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               }<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Create a polydata to store everything in</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkPolyData</span>
            polyData = <span style="color:#2B91AF">vtkPolyData</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Add the points to the dataset</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               polyData.SetPoints(points);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Add the quad to the dataset</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">             <span style="color:green"> </span></span><span
style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">polyData.SetPolys(faces);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">                        <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               polyData.SetLines(lines);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            polyData.GetCellData().SetScalars(colors);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Write the file</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkXMLPolyDataWriter</span>
            writer = <span style="color:#2B91AF">vtkXMLPolyDataWriter</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               writer.SetFileName(System.IO.<span
              style="color:#2B91AF">Path</span>.Combine(<span
              style="color:#A31515">""</span>, <span
              style="color:#A31515">@"C:\Users\sho\Documents\Trace
              Parts\Projects\cube.vtp"</span>));<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               writer.SetInput(polyData);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Optional - set the mode. The default is binary.</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//writer.SetDataModeToBinary();</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               writer.SetDataModeToAscii();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               writer.Write();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:green">//
              Visualize</span><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkPolyDataMapper</span>
            mapper = <span style="color:#2B91AF">vtkPolyDataMapper</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               mapper.SetInput(polyData);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkActor</span>
            actor = <span style="color:#2B91AF">vtkActor</span>.New();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               actor.SetMapper(mapper);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">              
            actor.GetProperty().SetPointSize(20);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkRenderWindow</span>
            renderWindow = renderWindowControl1.RenderWindow;<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               <span style="color:#2B91AF">vtkRenderer</span>
            renderer = renderWindow.GetRenderers().GetFirstRenderer();<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               renderer.SetBackground(0.3, 0.2,
            0.1);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">               renderer.AddActor(actor);<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">         </span><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US">}<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">Can you help me correcting my issues.<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">Regards, <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;mso-fareast-language:EN-US"
            lang="EN-US">Sébastien.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
            Aashish Chaudhary [<a class="moz-txt-link-freetext" href="mailto:aashish.chaudhary@kitware.com">mailto:aashish.chaudhary@kitware.com</a>] <br>
            <b>Envoyé :</b> vendredi 14 mars 2014 05:40<br>
            <b>À :</b> Sebastien HO<br>
            <b>Cc :</b> <a class="moz-txt-link-abbreviated" href="mailto:ves@public.kitware.com">ves@public.kitware.com</a><br>
            <b>Objet :</b> Re: [Ves] VES polydata object with multiple
            elements (triangles and lines)<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div>
            <p class="MsoNormal"><o:p> </o:p></p>
            <div>
              <p class="MsoNormal">On Thu, Mar 13, 2014 at 5:55 AM,
                Sebastien HO <<a moz-do-not-send="true"
                  href="mailto:sho@traceparts.com" target="_blank">sho@traceparts.com</a>>
                wrote:<o:p></o:p></p>
              <div>
                <div>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
                      lang="EN-US">Hi folks, </span><o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
                      lang="EN-US"> </span><o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
                      lang="EN-US">My goal is to create a VES file that
                      contains a geometric representation of a part with
                      colors and its silhouette (shaded with edges
                      representation).   The silhouette would be
                      computed from our system<span
                        style="color:#1F497D">.</span></span><o:p></o:p></p>
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
                      lang="EN-US">The goal is to have a polydata
                      element with points, colored lines (black) and
                      colored triangles (depends on face color).  I
                      would like to know if VES file format enables to
                      store this kind of element. If yes, is there any
                      example<span style="color:#1F497D">s</span> around
                      (like a colored cube with <span
                        style="color:#1F497D">black </span>edges)?</span><o:p></o:p></p>
                </div>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal">Yes, it is possible. The format for
                  VES geometry data is inspired from collada format.
                   Its basically is bunch of arrays with metadata on top
                  of it to describe necessary information <o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal">for opengl to extract pieces out of
                  it. You can find an example on how to draw a plane
                  here: <o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><a moz-do-not-send="true"
href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/ves/Testing/TestDrawPlane.cpp;h=fc5db8f7d18c6fc0b256fdd2db117309f582b0ad;hb=HEAD">http://vtk.org/gitweb?p=VES.git;a=blob;f=src/ves/Testing/TestDrawPlane.cpp;h=fc5db8f7d18c6fc0b256fdd2db117309f582b0ad;hb=HEAD</a><o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal">You should be able to add new
                  primitive (<span
                    style="font-size:9.0pt;font-family:"Courier
                    New";color:black">vesPrimitive)</span> using
                  the same vertices to draw lines as well. <o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal">Hope this helps. <o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal">- Aashish<o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <blockquote style="border:none;border-left:solid #CCCCCC
                1.0pt;padding:0cm 0cm 0cm
                6.0pt;margin-left:4.8pt;margin-right:0cm">
                <div>
                  <div>
                    <p class="MsoNormal"
                      style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
                        lang="EN-US"> </span><o:p></o:p></p>
                    <p class="MsoNormal"
                      style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
                        lang="EN-US">Thanks for your help,</span><o:p></o:p></p>
                    <p class="MsoNormal"
                      style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span
style="font-family:"Verdana","sans-serif""
                        lang="EN-US"> </span><o:p></o:p></p>
                    <p class="MsoNormal"
                      style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span
style="font-size:8.0pt;font-family:"Verdana","sans-serif"">Cordialement
                        / Best regards / Mit freundlichen Grüßen /
                        Saludos / Cordiali saluti</span><span
                        style="font-size:8.0pt"> </span><o:p></o:p></p>
                    <table class="MsoNormalTable" style="width:345.0pt"
                      cellpadding="0" cellspacing="0" width="460"
                      border="0">
                      <tbody>
                        <tr>
                          <td style="width:345.0pt;border:solid #8F8F8F
                            1.0pt;border-bottom:none;padding:7.5pt 7.5pt
                            7.5pt 7.5pt" width="460">
                            <p class="MsoNormal"
                              style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#00AE9B"
                                  lang="EN-US">Sébastien HO | R&D
                                  Engineer | R&D Department</span></b><span
                                lang="EN-US"> </span><o:p></o:p></p>
                            <p class="MsoNormal"
                              style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#868383">TraceParts
                                  S.A.</span></b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#868383">
                                <br>
                                Parc Eco Normandie - 76430 St Romain –
                                France</span><o:p></o:p></p>
                            <p class="MsoNormal"
                              style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                            <p class="MsoNormal"
                              style="mso-margin-top-alt:auto;margin-bottom:2.25pt"><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#868383"><a
                                  moz-do-not-send="true"
                                  href="mailto:sho@traceparts.com"
                                  target="_blank">sho@traceparts.com </a></span><o:p></o:p></p>
                            <p class="MsoNormal"
                              style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#868383">Tel:
                                <a moz-do-not-send="true"
                                  href="tel:%2B33%280%29232%C2%A0735%C2%A0459"
                                  target="_blank">+33(0)232 735 459</a></span><o:p></o:p></p>
                            <p class="MsoNormal"
                              style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#868383">Fax:
                                <a moz-do-not-send="true"
                                  href="tel:%2B33%280%29232%20795%20961"
                                  target="_blank">+33(0)232 795 961</a></span>
                              <o:p></o:p></p>
                          </td>
                        </tr>
                        <tr>
                          <td
                            style="width:345.0pt;border-top:none;border-left:solid
                            #00AE9B
                            1.0pt;border-bottom:none;border-right:solid
                            #00AE9B
                            1.0pt;background:#00AE9B;padding:2.25pt
                            7.0pt 2.25pt 30.0pt" width="460">
                            <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:right"
                              align="right"><b><a moz-do-not-send="true"
                                  href="http://www.traceparts.com/"
                                  target="_blank"><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:white;text-decoration:none">www.traceparts.com</span></a></b><b><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:white">
                                </span></b><o:p></o:p></p>
                          </td>
                        </tr>
                        <tr>
                          <td style="width:345.0pt;padding:0cm 0cm 0cm
                            0cm" width="460">
                            <p class="MsoNormal"
                              style="margin-top:7.5pt;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                          </td>
                        </tr>
                        <tr>
                          <td style="padding:0cm 0cm 0cm 0cm">
                            <p class="MsoNormal"
                              style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
                                lang="EN-US"><br>
                                <br>
                              </span><i><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#8F8F8F"
                                  lang="EN-US">The information contained
                                  in this email is intended solely for
                                  the addressee. Access to his email by
                                  anyone else is unauthorized. If you
                                  are not the intended recipient, any
                                  form of disclosure, reproduction,
                                  distribution or any action taken or
                                  refrained form in reliance on it, is
                                  prohibited and may be unlawful. </span></i><i><span
style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#8F8F8F">Please
                                  notify the sender immediately.</span></i>
                              <o:p></o:p></p>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                    <p class="MsoNormal"
                      style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                    <p class="MsoNormal"
                      style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
                  </div>
                </div>
                <p class="MsoNormal" style="margin-bottom:12.0pt"><br>
                  _______________________________________________<br>
                  Ves mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
                  <a moz-do-not-send="true"
                    href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves"
                    target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><o:p></o:p></p>
              </blockquote>
            </div>
            <p class="MsoNormal"><br>
              <br clear="all">
              <o:p></o:p></p>
            <div>
              <p class="MsoNormal"><o:p> </o:p></p>
            </div>
            <p class="MsoNormal">-- <br>
              | Aashish Chaudhary <br>
              | R&D Engineer         <br>
              | Kitware Inc.            <br>
              | <a moz-do-not-send="true" href="http://www.kitware.com">www.kitware.com</a> 
                <o:p></o:p></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Ves mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a>
<a class="moz-txt-link-freetext" href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>