[Paraview] Point color according to number of bonds
David E DeMarle
dave.demarle at kitware.com
Thu Jan 17 09:33:48 EST 2013
You could use a python programmable filter to iterate through the
points and call vtkUnstructuredGrid::GetPointCells() to get the count
of bonds for each one, and store those counts into a scalar array.
Then you could apply the glyph filter and color the glyphed points by
that array.
You might also want to investigate some of the chemdata file formats
that paraview understands and switch to one of those, as those should
do more or less the above internally.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Thu, Jan 17, 2013 at 3:22 AM, Tropin, Nikita
<Nikita.Tropin at bakerhughes.com> wrote:
> Hello,
>
>
>
> I’m the new user of Paraview and I’m trying to visualize a set of particles
> with bonds between them (from DEM simulation). So I have a series of vtu
> files with points and cells of type 3 (VTK_LINE) that I call bonds. What I
> want to do is to set the color of each point according to the number of
> bonds that are connected to that point - can you advice how to do it in
> Paraview?
>
>
>
> Nikita Tropin
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list