Hi David,<br><br>Can I have the VTK file so I can do the VRML export on my side to see what's going on ?<br><br>Thanks,<br><br>Seb<br><br><div class="gmail_quote">On Mon, Feb 28, 2011 at 3:16 PM, David Cole-Baker <span dir="ltr"><<a href="mailto:David.Cole-Baker@nextspace.co.nz">David.Cole-Baker@nextspace.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-NZ">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi Sebastien</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">We had our developers check out the file
</span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">that is exported and the red is color set for all points.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> color DEF VTKcolors Color {</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> color [</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> 1 0 0,</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">…</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Has anyone else got any other ideas</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Regards</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">David
</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Sebastien Jourdain [mailto:<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>]
<br>
<b>Sent:</b> Monday, 28 February 2011 3:44 p.m.<br>
<b>To:</b> David Cole-Baker<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Problem with Colour Settings in .vtk format when it is used to export to .wrl and .obj from Mayavi</span></p><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi David, </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">How do you read the generated vrml file ?</p>
</div>
<div>
<p class="MsoNormal">I do believe it might be the reader that you are using that may not use the color information in the file.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Seb</p>
</div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On Sun, Feb 27, 2011 at 4:05 PM, David Cole-Baker <<a href="mailto:David.Cole-Baker@nextspace.co.nz" target="_blank">David.Cole-Baker@nextspace.co.nz</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal">Hi
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We are using pythonxy & mayavi to create a 3D scene from .vtk files.</p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal">When the .vtk files are loaded in to
<span style="color: rgb(31, 73, 125);">mayavi (and surfaces etc added) </span>the colours in the
<span style="color: rgb(31, 73, 125);">.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">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.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any help & direction you can give on this would be gratefully appreciated.
</p>
<p class="MsoNormal"><b> </b></p>
<p class="MsoNormal"><b><span style="color: rgb(31, 73, 125);"> </span></b></p>
<p class="MsoNormal"><b><span style="font-size: 10pt; color: black;">Regards</span></b></p>
<p class="MsoNormal"><span style="color: black;"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt; color: black;">DAVID COLE-BAKER | Account Manager</span></b></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(127, 127, 127);">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: 10pt; color: gray;"><a href="http://www.nextspace.co.nz/" target="_blank">http://www.nextspace.co.nz</a>
</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(127, 127, 127);">Nextspace Ltd, Level 3, Building C, Millennium Centre, 602 Gt South Rd, Ellerslie, Auckland 1051 |
</span><span style="font-size: 10pt; color: gray;">PO Box 11484, Ellerslie, 1542 Auckland, New Zealand</span></p>
<p class="MsoNormal"><span style="font-size: 9pt; color: rgb(127, 127, 127);"><img src="cid:image001.jpg@01CBD7F1.5D5E6A70" alt="Description: Description: Email signature" height="67" width="800" border="0"></span></p>
<p class="MsoNormal"><span style="color: black;"> </span></p>
<p class="MsoNormal"><span style="font-size: 8pt; color: gray;" lang="EN-GB">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></p>
<p class="MsoNormal"><span style="color: black;"> </span></p>
<p class="MsoNormal"> </p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><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></p>
</div>
<p class="MsoNormal"> </p>
</div>
</div></div></div>
</div>
</blockquote></div><br>