<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi all</div>

<div> </div>

<div>Consider this :</div>

<div> </div>

<div># tetraheder #1<br/>
            unstructuredGrid = vtk.vtkUnstructuredGrid()<br/>
            unstructuredGrid.SetPoints(pointsLocal) # pointsLocal already defined<br/>
                        <br/>
            tetra= vtk.vtkTetra()<br/>
            tetra.GetPointIds().SetId(0,0)<br/>
            tetra.GetPointIds().SetId(1,1)<br/>
            tetra.GetPointIds().SetId(2,3)<br/>
            tetra.GetPointIds().SetId(3,4)<br/>
            <br/>
            cellArray = vtk.vtkCellArray()<br/>
            cellArray.InsertNextCell(tetra)<br/>
            unstructuredGrid.SetCells(vtk.VTK_TETRA, cellArray)<br/>
            <br/>
            unstructuredGrids.append(unstructuredGrid)</div>

<div> </div>

<div>           mapper = vtk.vtkDataSetMapper()<br/>
    mapper.SetInputData(unstructuredGrid)<br/>
    actor = vtk.vtkActor()<br/>
    actor.SetMapper(mapper)<br/>
    actors.append(actor)</div>

<div> </div>

<div> </div>

<div> </div>

<div>So I have my tetrahedra</div>

<div> </div>

<div>Now, I want to color the tetrahedra using opacity gradient. The top vetrx will have the solid color, the bottom triangluar plane will have complete transparency. I know I can use volumeProperty.SetGradientOpacity - but that only works with volumeProperty, not with vtktetra / dataset mapper.<br/>
<br/>
Please help.</div>

<div>Thank you</div>

<div> </div>

<div> </div>

<div> </div>

<div class="signature">Sayandeep Khan<br/>
<br/>
Student, M.Sc. Meteorologie<br/>
Meteorologiesches Institut der<br/>
Rheinische Friedrich-Wilhelms-Universität Bonn<br/>
<br/>
Wissenschaftlicher Beirat<br/>
Forschungsgemeinschaft Alternative Raumfahrt</div>

<div> 
<div> </div>
</div></div></body></html>