<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> </P>
<P>Please help me!!</P>
<P> </P>
<P>What's the problem???</P>
<P>This is my simple source code.</P>
<P> </P>
<P> </P>
<P> if(pvtkStructuredPointsReader)<BR> {<BR> <BR> this->opacityTransferFunction->AddPoint(2.0,0.0);<BR> this->opacityTransferFunction->AddPoint(255,0.2);</P>
<P> this->colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0);<BR> this->colorTransferFunction->AddRGBPoint(64.0,1.0,0.0,0.0);<BR> this->colorTransferFunction->AddRGBPoint(128.0,0.0,0.0,1.0);<BR> this->colorTransferFunction->AddRGBPoint(192.0,0.0,1.0,0.0);<BR> this->colorTransferFunction->AddRGBPoint(255.0,0.0,0.2,0.0);</P>
<P> this->volumeProperty->SetColor(colorTransferFunction);<BR> this->volumeProperty->SetScalarOpacity(opacityTransferFunction);</P>
<P> <BR> this->volumeMapper -> SetVolumeRayCastFunction(compositeFunction);<BR> this->volumeMapper -> SetInputConnection(this->pvtkStructuredPointsReader->GetOutputPort());<BR> <BR> <BR> this->volume->SetMapper(volumeMapper);<BR> this->volume->SetProperty(volumeProperty);</P>
<P> <BR> pcvtkSDIView->GetRenderer()->SetBackground(0,0,0);<BR> pcvtkSDIView->GetRenderer()->AddVolume(this->volume);<BR> pcvtkSDIView->GetRenderer()->ResetCamera();<BR> pvtkStructuredPointsReader->Delete();<BR> pvtkStructuredPointsReader = NULL;<BR> } </P>
<P> </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>