[Paraview] network created with box glyphs and tubes
Sreejith Pulloor
sreejithpk at gmail.com
Tue Oct 27 02:51:04 EDT 2009
Thanks Jerome and Ken. In my case, the Jerome's tip didn't work as the cube
itself was rotating while transforming.
I will try the work around suggested by Ken and see how it goes.
Many thanks for the tips.
Sreejith
On Mon, Oct 26, 2009 at 5:19 PM, Moreland, Kenneth <kmorel at sandia.gov>wrote:
> I don’t think that is going to work. If you transform the tubes, the
> entire lattice will rotate whereas I think Sreejith wants each tube to
> rotate around its center.
>
> I know of no straightforward way to do this in ParaView. The problem is
> that the tube filter is designed to create round tubes, and any visible
> facets are just an artifact of that. Even if you were able to rotate the
> tubes, the shading would still be wrong; the normals are oriented to make
> the polygons look rounded instead of flat.
>
> Attached is a Python script that, in a roundabout way, creates square links
> oriented the way you want with a sequence of filters (including one from the
> Moments plugin, which you will have to load to get it to work). The basic
> sequence is to create a cell vector field array that captures the length and
> orientation of the lines, then run cell centers, then glyph the centers
> using the vectors for orientation and scaling. This of course is actually
> quite ugly to set up (which is why I captured it in a script), and there is
> the additional problem that if your lines are different lengths, the links’
> widths will be scaled along with their lengths. If you need to do this
> frequently, you may need to resort to creating your own version of the tube
> filter.
>
> -Ken
>
>
>
> On 10/23/09 2:01 AM, "Jérôme" <jerome.velut at gmail.com> wrote:
>
> Hi,
>
> if your links are independent polydatas, you can simply apply a transform
> filter with a 90deg-rotation to the ouput of your tube filters.
>
> HTH,
> Jerome
>
> 2009/10/23 Sreejith Pulloor <sreejithpk at gmail.com>
>
> Paraview,
>
> I am trying to create a network with some cubic pores connected by square
> links. For the pores, I applied the box glyphs and for getting square links,
> I applied the tube filter with 4 sides. And the final picture
> is attached. Now if we look, the square cross section of the link lying
> diagonal to the cubic cross section. What i would like to have the cubic
> pores and square cross section aligned parallel. How can I do that? Any
> tips?
>
> thank you
> Sreejith
>
> _______________________________________________
> Powered by www.kitware.com <http://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
>
>
>
>
>
> **** Kenneth Moreland
> *** Sandia National Laboratories
> ***********
> *** *** *** email: kmorel at sandia.gov
> ** *** ** phone: (505) 844-8919
> *** web: http://www.cs.unm.edu/~kmorel<http://www.cs.unm.edu/%7Ekmorel>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091027/28604bcd/attachment.htm>
More information about the ParaView
mailing list