<DIV >hello Peter Spring,</DIV>
<DIV> Is that you want to use vtkPolyDataReader to read vtk file and display it?</DIV>
<DIV>I have a sample code and my outputs just black-white colors.</DIV>
<DIV>But you need to write to your codes.I just convert is into java.I did not have tcl or other language's code.</DIV>
<DIV>here it is:</DIV>
<DIV>///////////////////////////</DIV>
<DIV>ackage require vtk<BR>package require vtkinteraction</DIV>
<DIV>vtkRenderer aRenderer<BR>vtkRenderWindow renWin<BR> renWin AddRenderer aRenderer<BR>vtkRenderWindowInteractor iren<BR> iren SetRenderWindow renWin</DIV>
<DIV>vtkPolyDataReader skinNormals<BR>skinNormals SetFileName "C:/zhangh/VTK/out.vtk"</DIV>
<DIV>vtkPolyDataMapper skinMapper<BR> skinMapper SetInputConnection [skinNormals GetOutputPort]<BR> skinMapper ScalarVisibilityOff<BR>vtkActor skin<BR> skin SetMapper skinMapper</DIV>
<DIV>vtkCamera aCamera<BR> aCamera SetViewUp 0 0 -1<BR> aCamera SetPosition 0 1 0<BR> aCamera SetFocalPoint 0 0 0<BR> aCamera ComputeViewPlaneNormal</DIV>
<DIV>aRenderer AddActor skin<BR>aRenderer SetActiveCamera aCamera<BR>aRenderer ResetCamera <BR>aCamera Dolly 1.5</DIV>
<DIV>aRenderer SetBackground 1 1 1<BR>renWin SetSize 640 480</DIV>
<DIV>//////////////////////////////////</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>在2006-12-24,"Peter Spring" <meancity@gmail.com> 写道:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><PRE style="WORD-WRAP: break-word">Dear all,
Goodday, and merry christmas.
i have met some problem when i generating some vtk binary data using
vtkPolyDataWrite.
what i did was using Dicom reader to read a set of dicom files and
construction iso surface after that i use vtkPolyDataWriter to save
the data to be vtk binary. things can be conducted perfectly but one
problem bothers me is the coloring.
when i read the generated vtk binary data, the data is shown with some
color. it is very strange because i did not assign any color when i
previously do the iso surface construction. and i notice that
different iso value has different color.... for the vtk binary data.
can someone help me on this issue since i do not want any color on the
vtk binary data.
thanks very much...
Yours
P.
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_new>http://www.vtk.org/Wiki/VTK_FAQ</A>
Follow this link to subscribe/unsubscribe:
<A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_new>http://www.vtk.org/mailman/listinfo/vtkusers</A>
</PRE><!-- CoreMail Version 3.1_dev Copyright (c) 2002-2006 www.mailtech.cn --></BLOCKQUOTE><br><!-- footer --><br>
<hr>
<a style="font-size:12px;line-height:15px; color:#000; text-decoration:none" href="http://www.126.com/index.htm?mailsite=gmail&mailpos=20061204&num=2">想免费获得高速稳定的3G邮箱吗? <span style="font-family:Tahoma; text-decoration:underline; color:blue">www.126.com</span> </a>