<br><br><div class="gmail_quote">On Fri, May 7, 2010 at 3:12 AM, Darshan Pai <span dir="ltr">&lt;<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I was trying most of the volume render functionality . I just wanted some input on this effect I see.<br><br>I threshold  a volume dataset between 400 - 699 using vtkImageThreshold. InValue set at 255 , out value set at 0<br>

<br>I feed this to the VolumeRaycastMapper. The function is set to a vtkVolumeRayCastCompositeFunction.<br><br>In the property I set the opacity as follows<br> vtkPiecewiseFunction *oTFun2 = vtkPiecewiseFunction::New();<br>

  oTFun2-&gt;AddSegment(  10, 0.0, 200, 1);<br>  oTFun2-&gt;AddSegment(  200, 1, 201, 0);<br><br>This means that all scalar values higher than 201 should be clamped to opacity 0 . Since the threshold volume has only 2 values 255 and 0 , the output should be a blank screen . But I see some volume structures . <br>

<br>The question is why do I see volume elements even though the opacity for 0 and 255 are both at 0 ? <br><br>Regards<br><font color="#888888">Darshan <br>
</font></blockquote></div><br>