<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.emailstyle17
{mso-style-name:emailstyle17;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Patrick,<br>
<br>
You can do per-vertex and per-cell coloring. </span><span lang="EN-CA" style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleColoredPoints">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleColoredPoints</a><br>
<a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
For UV texture shading:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere">https://www.vtk.org/Wiki/VTK/Examples/Cxx/Texture/TexturedSphere</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="http://scylardor.fr/2013/05/06/making-multi-texturing-work-with-vtk/">http://scylardor.fr/2013/05/06/making-multi-texturing-work-with-vtk/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">To try some of the possibilities of VTK, you want to use ParaView. This application is heavily based on VTK and can give you a good sense of what is feasible with VTK.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://www.paraview.org/download/">https://www.paraview.org/download/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Jonathan <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> Patrick Bergeron <pbergeron@spiria.com>
<br>
<b>Sent:</b> Friday, June 08, 2018 12:58 PM<br>
<b>To:</b> Jonathan Borduas <jonathan.borduas@caboma.com>; vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] Questions about vtkPolyData<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks. Do these values make it into vertex shaders?
</span><span lang="EN-CA" style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-CA" style="color:black">From: </span></b><span lang="EN-CA" style="color:black">Jonathan Borduas <</span><a href="mailto:jonathan.borduas@caboma.com"><span lang="EN-CA">jonathan.borduas@caboma.com</span></a><span lang="EN-CA" style="color:black">><br>
<b>Date: </b>Thursday, June 7, 2018 at 7:18 PM<br>
<b>To: </b>Patrick Bergeron <</span><a href="mailto:pbergeron@spiria.com"><span lang="EN-CA">pbergeron@spiria.com</span></a><span lang="EN-CA" style="color:black">>, "</span><a href="mailto:vtkusers@vtk.org"><span lang="EN-CA">vtkusers@vtk.org</span></a><span lang="EN-CA" style="color:black">"
<</span><a href="mailto:vtkusers@vtk.org"><span lang="EN-CA">vtkusers@vtk.org</span></a><span lang="EN-CA" style="color:black">><br>
<b>Subject: </b>Re: [vtkusers] Questions about vtkPolyData<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<div id="compose-container">
<div>
<div>
<div>
<p class="MsoNormal"><a name="_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">Hey<o:p></o:p></span></a></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">All these examples may help.<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"></span><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/VTKConcepts/Scalars"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">https://www.vtk.org/Wiki/VTK/Examples/Cxx/VTKConcepts/Scalars</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">Best,<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">Jonathan Borduas<o:p></o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p> </o:p></span></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">Get
</span></span><a href="https://aka.ms/o0ukef"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">Outlook for iOS</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"><o:p></o:p></span></span></p>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">
<hr size="2" width="98%" align="center">
</span></span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><b><span lang="EN-CA" style="font-size:11.0pt;color:black">From:</span></b></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt;color:black"> vtkusers
<</span></span><a href="mailto:vtkusers-bounces@public.kitware.com"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">vtkusers-bounces@public.kitware.com</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt;color:black">>
on behalf of Patrick Bergeron <</span></span><a href="mailto:pbergeron@spiria.com"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">pbergeron@spiria.com</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt;color:black">><br>
<b>Sent:</b> Thursday, June 7, 2018 7:08:43 PM<br>
<b>To:</b> </span></span><a href="mailto:vtkusers@vtk.org"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">vtkusers@vtk.org</span></span><span style="mso-bookmark:_MailOriginalBody"></span></a><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt;color:black"><br>
<b>Subject:</b> [vtkusers] Questions about vtkPolyData</span></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">
<o:p></o:p></span></span></p>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"> <o:p></o:p></span></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">Hi everyone.</span></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"> </span></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">How would I go about specifying multiple sets of user attributes on a per-vertex basis on a polydata?</span></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"> </span></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">For example, hlet’s say I would like multiple sets of uv coordinates, normal, colors, int attributes, etc?</span></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt"> </span></span><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailOriginalBody"><span lang="EN-CA" style="font-size:11.0pt">Thanks</span></span><span style="mso-bookmark:_MailOriginalBody"></span><span lang="EN-CA"><o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>