<HTML>
<HEAD>
<STYLE>
BODY{FONT-FAMILY: Gulim;FONT-SIZE: 9pt;}
P {margin-top:2px;margin-bottom:2px;}
</STYLE>
</HEAD>

<BODY><P>I' m doing a simple example for volume rendering using c++ based on SDI.</P>
<P>But it doesn't work!!</P>
<P>What's the problem??</P>
<P>&nbsp;</P>
<P>Please help me!!</P>
<P>&nbsp;</P>
<P>What's the problem???</P>
<P>This is my simple source code.</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;if(pvtkStructuredPointsReader)<BR>&nbsp; {<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; this-&gt;opacityTransferFunction-&gt;AddPoint(2.0,0.0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this-&gt;opacityTransferFunction-&gt;AddPoint(255,0.2);</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(0.0, 0.0, 0.0, 0.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(64.0,1.0,0.0,0.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(128.0,0.0,0.0,1.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(192.0,0.0,1.0,0.0);<BR>&nbsp;&nbsp;&nbsp; this-&gt;colorTransferFunction-&gt;AddRGBPoint(255.0,0.0,0.2,0.0);</P>
<P>&nbsp;&nbsp;&nbsp; this-&gt;volumeProperty-&gt;SetColor(colorTransferFunction);<BR>&nbsp;&nbsp;&nbsp; this-&gt;volumeProperty-&gt;SetScalarOpacity(opacityTransferFunction);</P>
<P>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; this-&gt;volumeMapper -&gt; SetVolumeRayCastFunction(compositeFunction);<BR>&nbsp; &nbsp;&nbsp; this-&gt;volumeMapper -&gt; SetInputConnection(this-&gt;pvtkStructuredPointsReader-&gt;GetOutputPort());<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; this-&gt;volume-&gt;SetMapper(volumeMapper);<BR>&nbsp;&nbsp;&nbsp; this-&gt;volume-&gt;SetProperty(volumeProperty);</P>
<P>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; pcvtkSDIView-&gt;GetRenderer()-&gt;SetBackground(0,0,0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pcvtkSDIView-&gt;GetRenderer()-&gt;AddVolume(this-&gt;volume);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pcvtkSDIView-&gt;GetRenderer()-&gt;ResetCamera();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pvtkStructuredPointsReader-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pvtkStructuredPointsReader = NULL;<BR>&nbsp; } </P>
<P>&nbsp;</P>
<img src="http://webmail.pusan.ac.kr/cgi-bin/setconfirm.cgi?k=1182840641901177302590&u=madness78&d=pusan.ac.kr" width=1 height=1>
</BODY>
</HTML>