<html><div style='background-color:'><DIV class=RTE>
<P>Hi,</P>
<P>Now I have some problems with the probing, the code is as follows:</P>
<P>void main(int argc, char* argv[])<BR>{ vtkRenderer *ren =
vtkRenderer::New();<BR>vtkRenderWindow *renWin =
vtkRenderWindow::New();<BR>vtkRenderWindowInteractor *iren
=vtkRenderWindowInteractor::New();</P>
<P>vtkImageData
*image=vtkImageData::New();<BR>image->SetDimensions(50,50,50);<BR>image->SetSpacing(.2,.2,.2);<BR>image->SetOrigin(0,0,0);</P>
<P>vtkDataSetReader *reader
=vtkDataSetReader::New();<BR>reader->SetFileName("blow_havetopo.vtk");<BR>vtkProbeFilter
*probe=vtkProbeFilter
::New();<BR>probe->SetInput(image);<BR>probe->SetSource(reader->GetOutput());</P>
<P>vtkDataSetWriter
*writer=vtkDataSetWriter::New();<BR>writer->SetInput(probe->GetOutput());<BR>writer->SetFileName("write.vtk");<BR>writer->SetFileTypeToASCII();<BR>writer->Write();</P>
<P>vtkPiecewiseFunction
*opacity=vtkPiecewiseFunction::New();<BR>opacity->AddPoint(.2,0.0);<BR>opacity->AddPoint(.7,0.8);</P>
<P>vtkColorTransferFunction
*color=vtkColorTransferFunction::New();<BR>color->AddRGBPoint(0,0.0,0.0,0.0);<BR>color->AddRGBPoint(0.2,1.0,0.0,0.0);<BR>color->AddRGBPoint(0.5,0.0,0.0,1.0);<BR>color->AddRGBPoint(0.9,0.0,1.0,0.0);<BR>color->AddRGBPoint(3,0.0,0,0.9);</P>
<P>vtkVolumeProperty
*vProperty=vtkVolumeProperty::New();<BR>vProperty->SetColor(color);<BR>vProperty->SetScalarOpacity(opacity);</P>
<P>vtkVolumeRayCastCompositeFunction
*function=vtkVolumeRayCastCompositeFunction::New();<BR>vtkVolumeRayCastMapper
*vMapper=vtkVolumeRayCastMapper::New();<BR>vMapper->SetVolumeRayCastFunction(function);<BR>vMapper->SetInput((vtkImageData
*)probe->GetOutput());</P>
<P>vtkVolume
*volume=vtkVolume::New();<BR>volume->SetMapper(vMapper);<BR>volume->SetProperty(vProperty);</P>
<P>ren->AddProp(volume);</P>
<P>renWin->AddRenderer(ren);<BR>iren->SetRenderWindow(renWin);<BR>renWin->Render();<BR>iren->Start();<BR>}<BR><BR>The
file <FONT color=#ff0033>blow_havetopo.vtk</FONT>:<BR>DATASET
UNSTRUCTURED_GRID<BR>POINTS 687 float<BR> 5 7 10<BR> 5 7
10<BR> 5 8 11.25<BR> ...<BR>CELLS 1057 4357<BR> 4 58 42 41
56<BR> 4 57 58 56 55<BR> 4 57 43 42 58<BR> ...<BR>CELL_TYPES
1057<BR> 9<BR> 9<BR> 9<BR> ...<BR>COLOR_SCALARS scalars
1<BR> 0.90702939<BR> 0.90702939<BR>
0.90702939<BR> ...</P></DIV>
<P><FONT face=Tahoma size=2> I've successfully finished the
Probing with this file. But if I remove the information of the
cells of triangles etc. that is, it only has the points in the file, as is
shown in file blow_notopo.vtk, </FONT><FONT face=Tahoma size=2>it also can
be done successfully,but the attribute value of<BR>all interplated points
on the image data are all zero, as is shown in file write:</FONT></P>
<P><FONT face=Tahoma size=2><FONT
color=#ff0000>blow_notopo.vtk<BR></FONT>DATASET UNSTRUCTURED_GRID<BR>POINTS
687 float<BR> 5 7 10<BR> 5 7 10<BR> 5 8
11.25<BR> ...<BR>CELLS 687 1374<BR> 1 0<BR> 1 1<BR> 1
2<BR> 1 3<BR> ...<BR>CELL_TYPES
687<BR>1<BR>1<BR>1<BR>...<BR>COLOR_SCALARS scalars 1<BR>
0.90702939<BR> 0.90702939<BR>
0.90702939<BR> ...</FONT></P>
<P><FONT><FONT size=2><FONT face=Tahoma><FONT
color=#ff0000>write.vtk:</FONT><BR>DATASET STRUCTURED_POINTS<BR>DIMENSIONS
50 50 50<BR>SPACING 0.2 0.2 0.2<BR>ORIGIN 0 0 0<BR>CELL_DATA
117649<BR>POINT_DATA 125000<BR>COLOR_SCALARS scalars 1<BR>0 0 0 <BR>0 0
<BR>0 0 <BR>...</FONT></FONT></P>
<P><BR></FONT><FONT face=Tahoma size=2>So I wonder about it:<BR>1) What's
wrong with the data? We can only use unstructured grid format with the
files like <FONT color=#ff0033>blow_havetopo.vtk</FONT>?<BR>2) Is there any
other data format that can be the source data of the
vtkProbeFilter?<BR>Thanks.<BR> <BR>
Ivy</FONT><BR>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
</P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#a0c6e5 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>From: <I>"Engr. Saira Saleem Pathan"
<sarakhan_engr@hotmail.com></I><BR>To: <I>yaya_aisi@hotmail.com</I><BR>Subject: <I>RE:
[vtkusers] the probing problems</I><BR>Date: <I>Sun, 22 Apr 2007
18:28:32 +0000</I><BR>>hi<BR>>ya ya .........i dont understand the
problem in ur code, can u show <BR>>ur code, so that i can see the
problem<BR>><BR>>s<BR>><BR>><html><DIV><BR>><P><STRONG><FONT
color=#0000ff>Saira Saleem
<BR>>Pathan</FONT></STRONG><IMG height=2
<BR>>src="http://graphics.hotmail.com/greypixel.gif" width="100%"
<BR>>vspace=9></P><BR>><P>Lecturer, Ph.D.
Scholar</P><BR>><P>Department of Computer System and
Software
<BR>>Engineering&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Merhan <BR>>Univeristy of Engineering and Technology,
<BR>>Pakistan.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>></P><BR>><P>Contact: cell :
92-0333&nbsp;2265249, office 92-022-2772250
<BR>>ext(4215)</P><BR>><P>Email: <A
<BR>>href="mailto:sarakhanengr@gmail.com">sarakhanengr@gmail.com</A>,
<A
<BR>>href="mailto:saira99cs07@yahoo.com">saira99cs07@yahoo.com</A></P><BR>><P>&nbsp;</P><BR>><P>&nbsp;</P></DIV></html><BR>><BR>><BR>><BR>><BR>>>From:
"ya ya" <yaya_aisi@hotmail.com><BR>>>To:
vtkusers@vtk.org<BR>>>Subject: [vtkusers] the probing
problems<BR>>>Date: Sun, 22 Apr 2007 14:50:48
+0000<BR>>><BR>>><BR>>><BR>>>Hi
all,<BR>>><BR>>> I've successfully
finished the Probing,<BR>>>with unstructured grid format as the
source and image data format<BR>>>as the input. The unstructured grid
data includes some<BR>>>points, triangles quadrangles and so on.
However, if I set the<BR>>>unstructured grid data which has only
points,with no cells like <BR>>>triangles<BR>>>or quadrangles,
it also can be done successfully,but the attribute <BR>>>value
of<BR>>>all interplated points on the image data are all zero. So I
wonder <BR>>>about<BR>>>it:<BR>>><BR>>>1) What's
wrong with the data? We can only use unstructured grid
<BR>>>format<BR>>>with cells?<BR>>>2) Is there any other
data format that can be the source<BR>>>data of the
vtkProbeFilter?<BR>>><BR>>>Thanks.<BR>>><BR>>> <BR>>>
Ivy<BR>>>使用 MSN Messenger<BR>>> 与联机的
朋友进行交流
<BR>><BR>><BR>>>_______________________________________________<BR>>>This
is the private VTK discussion list.<BR>>>Please keep messages
on-topic. Check the FAQ at:
<BR>>>http://www.vtk.org/Wiki/VTK_FAQ<BR>>>Follow this link to
subscribe/unsubscribe:<BR>>>http://www.vtk.org/mailman/listinfo/vtkusers<BR>><BR>>_________________________________________________________________<BR>>Don't
just search. Find. Check out the new MSN Search!
<BR>>http://search.msn.com/<BR>><BR></FONT></BLOCKQUOTE></div><br
clear=all><hr>使用 <a href="http://g.msn.com/8HMBCNCN/2731??PS=47575"
target="_top">MSN Messenger </a> 与联机的朋友进行交流 </html>