[vtkusers] Color a cell in a polydata

David Doria daviddoria at gmail.com
Sat Sep 1 08:41:09 EDT 2012


On Sat, Sep 1, 2012 at 8:35 AM, kaouther <boutara.kaouther at gmail.com> wrote:

> Thank you for your response,
> I saved the coordinates of a set of cell in a file and I want to color them
> when I load the program again.
>
> this a piece of code of my code:
>
>         triangleFilter = vtkSmartPointer<vtkTriangleFilter>::New();
>         triangleFilter->SetInputConnection(atlas->GetOutputPort());
>         triangleFilter->Update();
>         cellPointIds = vtkSmartPointer<vtkIdList>::New();
>
>         atlasMapper = vtkSmartPointer<vtkDataSetMapper>::New();
>         atlasMapper->SetInputConnection(atlas->GetOutputPort());
>         atlasActor =  vtkSmartPointer<vtkActor>::New();
>         atlasActor->SetMapper(atlasMapper);
>

That code doesn't seem to be relevant to this problem at all? Please
provide the smallest possible, compilable code that demonstrates your
problem: (http://www.vtk.org/Wiki/VTK/MinimalExample).

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120901/91ed021e/attachment.htm>


More information about the vtkusers mailing list