[vtkusers] interactor with edge

zhangming zhangming at cad.zju.edu.cn
Mon Apr 12 04:06:11 EDT 2004


hi all,
  
    I've come across coloring edge cell.But if I use the code I can color the triangle cell correctly.

tempActor->GetMapper()->GetInput()->GetCellData()->GetScalars()->SetTuple1(CellID,red);
tempActor->GetMapper()->Modified();
renWin->Render();

When the tempActor's cell type is triangle,this code can work right.but when the tempActor cell type is edge,the color of edge doesn't change.

I am sure that the scalars is changed but the color doesn't change. why? the changing doesn't represent?

many thanks
 				

        zhangming
        zhangming at cad.zju.edu.cn
          2004-04-12





More information about the vtkusers mailing list