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>Darshan <br>