Re: [Paraview] Help :Texture coordinates

2018-03-21 Thread David E DeMarle
Adding the list back into the discussion so everyone can contribute to and
benefit from the discussion.

To the best of my knowledge we don't have anything that will do that type
of modelling yet. Presumably you could write a programmable filter that
would iterate over all of the cells, and use the cells orientation to make
up texture coordinates, duplicating point coordinates as needed. That will
be tricky.

You will likely have more success by exporting the model from ParaView into
a dedicated modelling/graphics package, generating the textures you want
there, and then reimporting the result back into ParaView.


David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Tue, Mar 20, 2018 at 5:12 PM, GeorgeP S  wrote:

> Hello David E DeMarle,
>
> i saw the filters section although when i apply texture to plane it will
> append the texture i want onto the whole surface of my building.
> I shared through wetransfer a  sample of one of the models. The generation
> of this model came to be from LMGC90 platform.
> As you will see the model is made from a series of "brick" elements, i
> would like to find a way to texture them firstly because i am quite new to
> paraview and i missed if there are the texture coordinates and how to use
> them correctly, in case there are not any texture coordiantes for each one
> of the "bricks" i would like to know a way to generate them and use them to
> append a texture on them.
>
> Best regards,
> Salachoris Georgios Panagiotis
>
> On Tue, Mar 20, 2018 at 8:35 PM, David E DeMarle  > wrote:
>
>> The three Filters->Texture Map To ... filters programmatically create
>> simple texture coordinates based on simple functions of the geometry.
>>
>> David E DeMarle
>> Kitware, Inc.
>> Principal Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Tue, Mar 20, 2018 at 1:58 PM, GeorgeP S  wrote:
>>
>>> Hello all,
>>>
>>> i wanted to know if there is a way to apply a texture on cells that do
>>> not have texture coordinates. If so how can i do it?
>>>
>>> Thank you,
>>> George
>>>
>>>
>>> 
>>>  Mail
>>> priva di virus. www.avast.com
>>> 
>>> <#m_1611315017454307188_m_-4157686217231244707_m_-7146931150643625814_m_-4213450803092441443_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> ___
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Help :Texture coordinates

2018-03-20 Thread David E DeMarle
The three Filters->Texture Map To ... filters programmatically create
simple texture coordinates based on simple functions of the geometry.

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909 <(518)%20881-4909>

On Tue, Mar 20, 2018 at 1:58 PM, GeorgeP S  wrote:

> Hello all,
>
> i wanted to know if there is a way to apply a texture on cells that do not
> have texture coordinates. If so how can i do it?
>
> Thank you,
> George
>
>
> 
>  Mail
> priva di virus. www.avast.com
> 
> <#m_-7146931150643625814_m_-4213450803092441443_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Help with ProgrammableFilter and PATH problem in 5.4.1

2018-03-07 Thread Martin Weinberg
An easy fix is adding:

export PYTHONUSERBASE=/dev/null

to my bash script that sets the LD_LIBRARY_PATH and PYTHONPATH and
"wraps" the paraview invocation.   I also tried setting PYTHONNOUSERSITE
but that did not help.

Thanks, Shawn for the discussion and may this help someone else down the
line.


On 03/07/2018 01:05 PM, Martin Weinberg wrote:
> Okay . . . I figured out the problem but not the fix.
>
> The problem is: I installed some packages with pip, and python is
> prepending ~/.local/lib/python2.7/site-packages paths to PYTHONPATH even
> when I rewrite the that path in the shell.
>
> So if I temporarily rename ~/.local/lib/python2.7/site-packages to
> something else, the programmable filter works as expected.
>
> Any idea how to best handle this?
>
>
> On 03/07/2018 09:03 AM, Shawn Waldon wrote:
>> The only dependent package I can think of for python filters is numpy,
>> which is used in the dataset adapter code (VTK arrays are wrapped to
>> be numpy array-like).  But that should be installed with the binaries
>> and you should get a failed import if it is missing.
>>
>> Shawn
>>
>> On Wed, Mar 7, 2018 at 8:57 AM, Martin Weinberg
>> > wrote:
>>
>> Thanks. The data is definitely loaded; e.g. I can render with an
>> upstream filter.
>>
>> I wonder of I'm missing some dependent package on the problem
>> machine?
>>
>>
>> On March 7, 2018 8:26:13 AM EST, Shawn Waldon
>> > wrote:
>>
>> Hi Martin,
>>
>> My first guess would be that your state file is trying to load
>> data that isn't there.  Then when you run your programmable
>> filter inputs[0] is None and you get this error message.  I
>> can't think of anything else that could be going wrong with
>> that script, especially since it works on one of your machines.
>>
>> HTH,
>> Shawn
>>
>> On Tue, Mar 6, 2018 at 6:16 PM, Martin Weinberg
>> > > wrote:
>>
>> I have two nearly identical machine running Ubuntu 17.10. 
>> The both have
>> the latest stable Paraview 5.4.1 from the download page
>> installed in /opt.
>>
>> I wrote a wrapper script like this:
>>
>> 
>> 
>>
>> #!/bin/bash
>>
>> # PVHOME=/opt/ParaView-5.4.1-822-g597adef-Qt5-MPI-Linux-64bit
>> PVHOME=/opt/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit
>>
>> export PATH=$PVHOME/bin
>> export LD_LIBRARY_PATH=$PVHOME/lib/
>> export
>> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PVHOME/lib/paraview-5.4/
>> export PYTHONPATH=$PVHOME/lib/python2.7/bin/
>> export
>> PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/
>> export
>> PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/vtk/
>> export
>> 
>> PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/paraview/
>>
>> $PVHOME/bin/paraview
>> 
>> 
>>
>> On each machine I start paraview and load a state that has a
>> programmable filter with the line:
>>
>> d0 = inputs[0].PointSet['d']
>>
>> One one machine, this works just fine.  On the other
>> machine, I get the
>> following message in the Output:
>>
>> 
>> 
>>
>> Traceback (most recent call last): File "", line 24, in
>> File "", line 2,
>> in RequestData TypeError: 'NoneType' object has no
>> attribute '__getitem__'
>>
>> BTW, this is just a test; obviously, my real filter does
>> something.
>>
>> I assume that some module is not being loaded here, but
>> I've tried
>> _everything_ I could think of and I'm not making
>> progress.  Any ideas??
>>
>> --
>> Martin Weinberg
>> 6 Grass Hill Rd
>> 
>> 
>> West Whately, MA
>> 010039
>>
>>
>>
>> ___
>> Powered by www.kitware.com 
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 

Re: [Paraview] Help with ProgrammableFilter and PATH problem in 5.4.1

2018-03-07 Thread Martin Weinberg
Okay . . . I figured out the problem but not the fix.

The problem is: I installed some packages with pip, and python is
prepending ~/.local/lib/python2.7/site-packages paths to PYTHONPATH even
when I rewrite the that path in the shell.

So if I temporarily rename ~/.local/lib/python2.7/site-packages to
something else, the programmable filter works as expected.

Any idea how to best handle this?


On 03/07/2018 09:03 AM, Shawn Waldon wrote:
> The only dependent package I can think of for python filters is numpy,
> which is used in the dataset adapter code (VTK arrays are wrapped to
> be numpy array-like).  But that should be installed with the binaries
> and you should get a failed import if it is missing.
>
> Shawn
>
> On Wed, Mar 7, 2018 at 8:57 AM, Martin Weinberg
> > wrote:
>
> Thanks. The data is definitely loaded; e.g. I can render with an
> upstream filter.
>
> I wonder of I'm missing some dependent package on the problem
> machine?
>
>
> On March 7, 2018 8:26:13 AM EST, Shawn Waldon
> > wrote:
>
> Hi Martin,
>
> My first guess would be that your state file is trying to load
> data that isn't there.  Then when you run your programmable
> filter inputs[0] is None and you get this error message.  I
> can't think of anything else that could be going wrong with
> that script, especially since it works on one of your machines.
>
> HTH,
> Shawn
>
> On Tue, Mar 6, 2018 at 6:16 PM, Martin Weinberg
>  > wrote:
>
> I have two nearly identical machine running Ubuntu 17.10. 
> The both have
> the latest stable Paraview 5.4.1 from the download page
> installed in /opt.
>
> I wrote a wrapper script like this:
>
> 
> 
>
> #!/bin/bash
>
> # PVHOME=/opt/ParaView-5.4.1-822-g597adef-Qt5-MPI-Linux-64bit
> PVHOME=/opt/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit
>
> export PATH=$PVHOME/bin
> export LD_LIBRARY_PATH=$PVHOME/lib/
> export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PVHOME/lib/paraview-5.4/
> export PYTHONPATH=$PVHOME/lib/python2.7/bin/
> export
> PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/
> export
> PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/vtk/
> export
> 
> PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/paraview/
>
> $PVHOME/bin/paraview
> 
> 
>
> On each machine I start paraview and load a state that has a
> programmable filter with the line:
>
> d0 = inputs[0].PointSet['d']
>
> One one machine, this works just fine.  On the other
> machine, I get the
> following message in the Output:
>
> 
> 
>
> Traceback (most recent call last): File "", line 24, in
> File "", line 2,
> in RequestData TypeError: 'NoneType' object has no
> attribute '__getitem__'
>
> BTW, this is just a test; obviously, my real filter does
> something.
>
> I assume that some module is not being loaded here, but
> I've tried
> _everything_ I could think of and I'm not making
> progress.  Any ideas??
>
> --
> Martin Weinberg
> 6 Grass Hill Rd
> 
> 
> West Whately, MA
> 010039
>
>
>
> ___
> 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
> 
>
> Search the list archives at:
> http://markmail.org/search/?q=ParaView
> 
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
> 

Re: [Paraview] Help with ProgrammableFilter and PATH problem in 5.4.1

2018-03-07 Thread Shawn Waldon
Hi Martin,

My first guess would be that your state file is trying to load data that
isn't there.  Then when you run your programmable filter inputs[0] is None
and you get this error message.  I can't think of anything else that could
be going wrong with that script, especially since it works on one of your
machines.

HTH,
Shawn

On Tue, Mar 6, 2018 at 6:16 PM, Martin Weinberg  wrote:

> I have two nearly identical machine running Ubuntu 17.10.  The both have
> the latest stable Paraview 5.4.1 from the download page installed in /opt.
>
> I wrote a wrapper script like this:
>
> 
> 
>
> #!/bin/bash
>
> # PVHOME=/opt/ParaView-5.4.1-822-g597adef-Qt5-MPI-Linux-64bit
> PVHOME=/opt/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit
>
> export PATH=$PVHOME/bin
> export LD_LIBRARY_PATH=$PVHOME/lib/
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PVHOME/lib/paraview-5.4/
> export PYTHONPATH=$PVHOME/lib/python2.7/bin/
> export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/
> export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/vtk/
> export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-
> packages/paraview/
>
> $PVHOME/bin/paraview
> 
> 
>
> On each machine I start paraview and load a state that has a
> programmable filter with the line:
>
> d0 = inputs[0].PointSet['d']
>
> One one machine, this works just fine.  On the other machine, I get the
> following message in the Output:
>
> 
> 
>
> Traceback (most recent call last): File "", line 24, in File "", line 2,
> in RequestData TypeError: 'NoneType' object has no attribute '__getitem__'
>
> BTW, this is just a test; obviously, my real filter does something.
>
> I assume that some module is not being loaded here, but I've tried
> _everything_ I could think of and I'm not making progress.  Any ideas??
>
> --
> Martin Weinberg
> 6 Grass Hill Rd
> West Whately, MA
> 010039
>
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] Help with ProgrammableFilter and PATH problem in 5.4.1

2018-03-06 Thread Martin Weinberg
I have two nearly identical machine running Ubuntu 17.10.  The both have
the latest stable Paraview 5.4.1 from the download page installed in /opt.

I wrote a wrapper script like this:



#!/bin/bash

# PVHOME=/opt/ParaView-5.4.1-822-g597adef-Qt5-MPI-Linux-64bit
PVHOME=/opt/ParaView-5.4.1-Qt5-OpenGL2-MPI-Linux-64bit

export PATH=$PVHOME/bin
export LD_LIBRARY_PATH=$PVHOME/lib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PVHOME/lib/paraview-5.4/
export PYTHONPATH=$PVHOME/lib/python2.7/bin/
export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/
export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/vtk/
export PYTHONPATH=$PYTHONPATH:$PVHOME/lib/python2.7/site-packages/paraview/

$PVHOME/bin/paraview


On each machine I start paraview and load a state that has a
programmable filter with the line:

d0 = inputs[0].PointSet['d']

One one machine, this works just fine.  On the other machine, I get the
following message in the Output:



Traceback (most recent call last): File "", line 24, in File "", line 2,
in RequestData TypeError: 'NoneType' object has no attribute '__getitem__'

BTW, this is just a test; obviously, my real filter does something.

I assume that some module is not being loaded here, but I've tried
_everything_ I could think of and I'm not making progress.  Any ideas??

-- 
Martin Weinberg
6 Grass Hill Rd
West Whately, MA
010039




signature.asc
Description: OpenPGP digital signature
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Help

2018-02-14 Thread Moreland, Kenneth
Mohammed,

The answer to your question depends on a lot of things.

Depending on your simulation, it might be easiest if the simulation itself 
detected when a particle exits the pipe. It is, after all, the thing tracking 
the particles to begin with. From there it could output its count in a csv 
file. You could load that up and plot in in ParaView, although a typical 
spreadsheet program can do that as well.

Assuming it is not feasible to have your simulation do the count, getting 
ParaView to do it depends on a lot of things. First, it depends on whether 
particles “die” in your simulation. It is pretty common in simulation code to 
have particles leave the defined domain (or otherwise become invalid) and then 
get removed from the list of particles that get written out. If particles never 
die, then your job in ParaView is easier. You can just count how many particles 
are past the out end of the pipe and count that.

If particles are born or die in your simulation, then the problem becomes much 
more difficult.

-Ken

From: ParaView <paraview-boun...@public.kitware.com> on behalf of Mohammed 
Babiker <en.mhdbabi...@gmail.com>
Date: Wednesday, February 14, 2018 at 11:31 AM
To: "paraview@public.kitware.com" <paraview@public.kitware.com>
Subject: [EXTERNAL] [Paraview] Help

Good evening

I am a new user of paraview . I am running a simulation of particles passing 
through a horizontal pipe exiting from other side I would like to know howm 
many numbers of particles exit and plot that number with respect to time . any 
help will be appreciated.

Regards.

___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] Help

2018-02-14 Thread Mohammed Babiker
Good evening 

I am a new user of paraview . I am running a simulation of particles passing 
through a horizontal pipe exiting from other side I would like to know howm 
many numbers of particles exit and plot that number with respect to time . any 
help will be appreciated.

Regards. 

___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview