Hi David, <div><br></div><div>How do you read the generated vrml file ?</div><div>I do believe it might be the reader that you are using that may not use the color information in the file.</div><div><br></div><div>Seb</div>
<div><br><div class="gmail_quote">On Sun, Feb 27, 2011 at 4:05 PM, David Cole-Baker <span dir="ltr">&lt;<a href="mailto:David.Cole-Baker@nextspace.co.nz">David.Cole-Baker@nextspace.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div lang="EN-NZ" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We are using pythonxy &amp; mayavi to create a 3D scene from .vtk files.</p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal">When the .vtk files are loaded in to <span style="color:#1F497D">
mayavi (and surfaces etc added) </span>the colours in the <span style="color:#1F497D">
.vtk </span>display nicely, however when the scene is exported to either .obj or .wrl (i.e. “Save Scene As VRML file”) the colour is lost and the scene is all changed to one colour
<span lang="EN-US">and the .wrl or .obj file is all set to one colour (e.g. red as in the case of the .wrl files),</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">We believe the heart of the problem is something in the .vtk files.  (the one we have been using is attached)</span></p>
<p class="MsoNormal">Is this something that Kitware can fix easily enough or is there something else anyone can suggest.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span>We have the geologist community very interested in sorting this problem out quickly, in particular to help visualise seismic data of the recent Christchurch earthquakes here in New Zealand.</span></p>

<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">Any help &amp; direction you can give on this would be gratefully appreciated.
</p>
<p class="MsoNormal"><b><span> </span></b></p>
<p class="MsoNormal"><b><span style="color:#1F497D"> </span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:black">Regards</span></b><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:black">DAVID COLE-BAKER | Account Manager</span></b><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#7F7F7F">D: +64.9.571.4102 | M: +64.21.824.899 | E:
<a href="mailto:david.cole-baker@nextspace.co.nz%7C" target="_blank">david.cole-baker@nextspace.co.nz|</a>
</span><span style="font-size:10.0pt;color:gray"><a href="http://www.nextspace.co.nz/" target="_blank">http://www.nextspace.co.nz</a>
</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#7F7F7F">Nextspace Ltd, Level 3, Building C, Millennium Centre, 602 Gt South Rd, Ellerslie, Auckland 1051 |
</span><span style="font-size:10.0pt;color:gray">PO Box 11484, Ellerslie, 1542 Auckland, New Zealand</span><span style="font-size:10.0pt;color:#7F7F7F"></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#7F7F7F"><img border="0" width="800" height="67" src="cid:image001.jpg@01CBD72F.0F400640" alt="Description: Description: Email signature"></span><span style="color:black"></span></p>

<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:8.0pt;color:gray">This email is intended solely for the use of the addressee and may contain information that is confidential or subject to legal professional privilege. If
 you receive this email in error please immediately notify the sender and delete the email.
</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"> </p>
</div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>