<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>vtkPolyData does not store those material
properties. Coloring and shading information is part of the vtkProperty
associated with vtkActor which you can access in similar fashion.</FONT></DIV>
<DIV><FONT face=Arial size=2>HTH</FONT></DIV>
<DIV><FONT face=Arial size=2>Vidiyadhar</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=shriram.uc@gmail.com href="mailto:shriram.uc@gmail.com">Shriram
Iyer</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vidyadhar@lucidindia.com
href="mailto:vidyadhar@lucidindia.com">Vidyadhar</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, September 07, 2007 7:21
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] Loading VRML file
into a vtkActor</DIV>
<DIV><BR></DIV>Thanks Vidyadhar. Does the vtkPolydata we get by doing this
retain the coloring and shading information present in the original 3DS
model?<BR><BR>Shriram<BR><BR>
<DIV><SPAN class=gmail_quote>On 9/6/07, <B
class=gmail_sendername>Vidyadhar</B> <<A
href="mailto:vidyadhar@lucidindia.com">vidyadhar@lucidindia.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>Both importers have GetRenderer methods which
give access to renderer. From that you can retrieve vtkActorCollection.
Traverse the collection to retrieve each actor. From actor you can retrieve
its mapper (some polydata mapper) and from mapper get its input which will
be the polydata mesh. I have not use this with vtkVRMLImporter but with
vtk3DSImporter.</FONT></DIV><SPAN class=sg>
<DIV><FONT face=Arial size=2>Vidyadhar</FONT></DIV></SPAN>
<DIV><SPAN class=e id=q_114de02c8884f2cf_2>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=shriram.uc@gmail.com
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:shriram.uc@gmail.com" target=_blank>Shriram Iyer</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B>
<A title=vtkusers@vtk.org
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:vtkusers@vtk.org" target=_blank>vtkusers@vtk.org</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Thursday, September 06, 2007 4:45 AM</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B>
[vtkusers] Loading VRML file into a vtkActor</DIV>
<DIV><BR></DIV>Hi All,<BR><BR>I tried out the vtkVRMLImporter test. I want
to be able to load a VRML file, change its visibility, and move it around.
Is there a way to get the output of the importer into a polydatamapper and
then into an actor? I tried doing this with 3DS files too using
vtk3DSImporter but was unsuccessful. <BR><BR>Any help would be greatly
appreciated.<BR><BR>Shriram<BR></BLOCKQUOTE></SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>