what python library to use when compiling ParaView using windows 7 64bit VS2013 express (UNCLASSIFIED)

Classification: UNCLASSIFIED
Caveats: NONE

Hello,

When I used WinPython-64bit-2.7.6.4 (which allows installation of Python
library without admin rights but has no python debug library) library to
compile ParaView with VS2013 express edition, I get this tons of warning
messages. Search the web, someone mentioned WinPython-64bit-2.7.6.4 wasn't
compiled with VS2013 express edition and I shouldn't be using library
compiled with one Visual Studio version in another version of VS. 

Is compiling a version of python from source code using vs2013 express the
only way available to me? Or is there python library compiled with vs2013
express out there that I am yet to find? Or can I just ignore the warning
messages in VS2013 express?

Any help is much appreciated

Thanks
-simon

Classification: UNCLASSIFIED
Caveats: NONE

Attachment (smime.p7s): application/x-pkcs7-signature, 13 KiB
Classification: UNCLASSIFIED
Caveats: NONE
(Continue reading)

Jordi Moliner | 28 Jul 16:42 2014
Picon

Change the SplineSource resolution from Python shell

Hello ParaView users!

I am quite a newbie in the world of Paraview and Python.

I am trying to create a spline from a list of points in paraview.
I have created a little script so paraview can read my list of points and creates the spline.

The problem is that no matter how many points I put as an input, the spline is always composed of 51 points.
So if I put 4 points I'll get a spline resolution of 51 points, and if I put 400 I'll get a resolution of 51 points too.
Does anybody know how to change the spline resolution ?

Afterwards I'd like to calculate the length of this spline. Is it possible to get this result from paraview ?

Thanks to everyone,

Jordi

<div><div dir="ltr">
<div>Hello ParaView users!<br><br>I am quite a newbie in the world of Paraview and Python.<br><br>I am trying to create a spline from a list of points in paraview.<br>I have created a little script so paraview can read my list of points and creates the spline.<br><br>The problem is that no matter how many points I put as an input, the spline is always composed of 51 points.<br>So if I put 4 points I'll get a spline resolution of 51 points, and if I put 400 I'll get a resolution of 51 points too.<br>
Does anybody know how to change the spline resolution&nbsp;?<br><br>Afterwards I'd like to calculate the length of this spline. Is it possible to get this result from paraview&nbsp;?<br><br>Thanks to everyone,<br><br>
</div>Jordi<br><div><br></div>
</div></div>
Tristan Schlögl | 28 Jul 14:37 2014
Picon
Picon

Clean Grid and Average Point Data

Hi,

I'm using ParaView to visualise finite element simulation results created by the deal.ii C++ library. Deal.ii outputs hex elements such that each element has its own vertices. To illustrate that point a simple cube consisting of 8 elements and 27 nodes has 8*8=64 data points. When I display vector valued data as glyphs I have multiple vectors at the same location resulting from the contributions of neighbouring cells, see

I now want to display only a single vector at each point, namely the average value of all contributions. I tried and applied a "Clean to Grid" filter, see
This is quite good already however, it seems that ParaView only takes one of the vectors for each point and not the average (see top mid vector of the front (z-max) face). 

Is there any other way to realise what I need in ParaView?

Regards
Tristan


-- 
Dipl.-Ing. Tristan Schlögl
Chair of Applied Dynamics
University of Erlangen-Nuremberg
Haberstrasse 1
D-91058 Erlangen, Germany
room 01.013
phone +49 (0)9131 85 61003
fax +49 (0)9131 85 61011
url www.ltd.tf.uni-erlangen.de
<div>
<div>Hi,</div>
<div><br></div>
<div>I'm using ParaView to visualise finite element simulation results created by the deal.ii C++ library. Deal.ii outputs hex elements such that each element has its own vertices. To illustrate that point a simple cube consisting of 8 elements and 27 nodes has 8*8=64 data points. When I display vector valued data as glyphs I have multiple vectors at the same location resulting from the contributions of neighbouring cells, see</div>
<div>
<a href="http://blogs.fau.de/schloegl/files/2014/07/orig_grid.png">http://blogs.fau.de/schloegl/files/2014/07/orig_grid.png</a>&nbsp;.</div>
<div><br></div>
<div>I now want to display only a single vector at each point, namely the average value of all contributions. I tried and applied a "Clean to Grid" filter, see</div>
<div>
<a href="http://blogs.fau.de/schloegl/files/2014/07/clean_grid.png">http://blogs.fau.de/schloegl/files/2014/07/clean_grid.png</a>&nbsp;.</div>
<div>This is quite good already however, it seems that ParaView only takes one of the vectors for each point and not the average (see top mid vector of the front (z-max) face).&nbsp;</div>
<div><br></div>
<div>Is there any other way to realise what I need in ParaView?</div>
<div><br></div>
<div>Regards</div>
<div>Tristan</div>
<div><br></div>
<div>
<div><br></div>
<div>--&nbsp;</div>
<div>Dipl.-Ing. Tristan Schl&ouml;gl</div>
<div>Chair of Applied Dynamics</div>
<div>University of Erlangen-Nuremberg</div>
<div>Haberstrasse 1</div>
<div>D-91058 Erlangen, Germany</div>
<div>room 01.013</div>
<div>phone +49 (0)9131 85 61003</div>
<div>fax +49 (0)9131 85 61011</div>
<div>url www.ltd.tf.uni-erlangen.de</div>
</div>
</div>
Sebastien Jourdain | 27 Jul 17:51 2014

Gatekeeper review

SUMMARY
---------------------------------------------
Topics merged into master: 
        14888_fix_state_loading_for_domains
(VTK)   pvweb-visualizer-widgets


---------------------------------------------
Topics reverted from next: 
  widen_properties_panel
<div><div dir="ltr">
<div>SUMMARY</div>
<div>---------------------------------------------</div>
<div>Topics merged into master:&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; 14888_fix_state_loading_for_domains</div>
<div>(VTK) &nbsp; pvweb-visualizer-widgets</div>
<div><br></div>
<div><br></div>
<div>---------------------------------------------</div>
<div>Topics reverted from next:&nbsp;</div>
<div>&nbsp; widen_properties_panel</div>
</div></div>
KESTENER Pierre | 26 Jul 01:07 2014
Picon

Re: Building Piston

Hello Praveen,

I faced the same problem as you when trying to build Piston standalone sources today.

you probably have found out by now, but just to let other people know, piston standalone must be configured like this

ccmake -DCUDA_NVCC_FLAGS=" -gencode=arch=compute_30,code=sm_30 -DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA" ..

this is because THRUST_DEVICE_BACKEND is unset by default that error like
    error: invalid redeclaration of type name "float3"

raises from piston_math.h

So for paraview point of view, piston_math.h must be either modified or parsed with
 THRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA




I also noticed that thrust interface used in piston standalone is quite old
thrust::detail::default_device_space_tag must be replaced by thrust::device_space_tag
to build, but it is deprecated. I think that someone more skilled than me in thrust details could refresh a bit piston sources.

At least, it working with these small changes.


Pierre.


<div>
<div>Hello Praveen,<br><br>I faced the same problem as you when trying to build Piston standalone sources today.<br><br>
you probably have found out by now, but just to let other people know, piston standalone must be configured like this<br><br>
ccmake -DCUDA_NVCC_FLAGS=" -gencode=arch=compute_30,code=sm_30 -DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA" ..<br><br>
this is because THRUST_DEVICE_BACKEND is unset by default that error like<br>&nbsp;&nbsp;&nbsp; error: invalid redeclaration of type name "float3"<br><br>raises from piston_math.h<br><br>So for paraview point of view, piston_math.h must be either modified or parsed with<br>&nbsp;THRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA<br><br><br><br><br>I also noticed that thrust interface used in piston standalone is quite old<br>thrust::detail::default_device_space_tag must be replaced by thrust::device_space_tag<br>
to build, but it is deprecated. I think that someone more skilled than me in thrust details could refresh a bit piston sources.<br><br>
At least, it working with these small changes.<br><br><br>
Pierre.<br><div>
<br><div>
<div>
<div>
<div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Quang Ha | 25 Jul 16:32 2014
Picon
Picon

Create 4D Animation from sets of 3D Data

Hi,

I have a group of 10 data sets of the left ventricle at different 
cardiac phases. They have been 3D reconstructed using segmentation 
method. Now I am trying to use ParaView to see the dynamic changes over 
different cardiac phases.

I have been able to get to the View -> Animation mode and add each 3D 
data at different time, but they only show me a jump from one data to 
another, rather than 'deforming' into another. I have done some searches 
on the internet and found someone suggesting the use of 'Temporal 
Interpolator' but failed to utilise it.

Would anyone be kind enough to give me some advices on this, please?

Thanks,
Quang
denis cohen | 25 Jul 15:26 2014
Picon

box "Coordinate Results" in Calculator not in version 4.1.0

Hi,
It looks like the box "Coordinate Results" in the calculator is no longer there in version 4.1.0 (was present in 4.0.1).
How do I replace ticking this box?
Thanks
Denis

<div><div dir="ltr">
<div>
<div>
<div>Hi,<br>
</div>It looks like the box "Coordinate Results" in the calculator is no longer there in version 4.1.0 (was present in 4.0.1).<br>
</div>How do I replace ticking this box?<br>Thanks<br>
</div>Denis<br><br>
</div></div>
Ainsworth, Robert | 24 Jul 19:45 2014
Picon

Plotting an extracted selection

Hi,

I am having difficult trying to plot an extracted selection. My workflow is to open the mesh and data using the SLACTools plugin. Then extract a block and then select cells and perform extract selection.

If I save the data of the extracted selection as a csv and plot two variables against each other I get the expected results. However, if I try to use the plot data filter on the same extracted selection I get unexpected results. Essentially, the plot data filter for the same two variables plots far two many data points and the data doesn’t seem to make sense. The bounds of the data seems right thought. I do not understand why the paraview plot and saving as a file and plotting gives different results?

I am using Paraview 4.1.0 on Mac.

Any help would be much appreciated.

Thanks,
Rob

<div>Hi,<br><div>
<br>I am having difficult trying to plot an extracted selection. My workflow is to open the mesh and data using the SLACTools plugin. Then extract a block and then select cells and perform extract selection.<br><br>If I save the data of the extracted selection as a csv and plot two variables against each other I get the expected results. However, if I try to use the plot data filter on the same extracted selection I get unexpected results. Essentially, the plot data filter for the same two variables plots far two many data points and the data doesn&rsquo;t seem to make sense. The bounds of the data seems right thought. I do not understand why the paraview plot and saving as a file and plotting gives different results?<br><br>I am using Paraview 4.1.0 on Mac.<br><br>Any help would be much appreciated.<br><br>Thanks,<br><div>Rob</div>
</div>
<br>
</div>
Louie Cardone-Noott | 24 Jul 13:37 2014
Picon
Picon

Re: pvbatch: python - help make animation window bigger

Hi Anton,

RenderView1.ViewSize = [1000, 1000]

Best wishes,
Louie





On 24 July 2014 12:33, Anton Shterenlikht <mexas <at> bris.ac.uk> wrote:
I've recorded this python script with PV Trace.
However, the resulting animation window is small.
What do I need to edit to make the window, e.g. 1000x1000 pixels?

Thanks

Anton


# use defined variables, no indent allowed, start at col 1

infile  = "z.xdmf"  # name of XDMF file
picfile = "z.png"   # image output file
vidfile = "z.ogv"   # animation output file
trlo    = -4        # lower threshold
trhi    = 0         # upper threshold

# end of user variables

try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

# load XDMF file
z_xdmf = XDMFReader( FileName=infile )

AnimationScene1 = GetAnimationScene()
AnimationScene1.EndTime = 10.0
AnimationScene1.PlayMode = 'Snap To TimeSteps'

z_xdmf.Sets = []
z_xdmf.Grids = ['T0', 'T30', 'T60', 'T90', 'T120', 'T150', 'T180', 'T210', 'T240', 'T270', 'T300']
z_xdmf.PointArrays = ['crack']

RenderView1 = GetRenderView()
RenderView1.CenterOfRotation = [127.5, 127.5, 95.5]

DataRepresentation1 = Show()
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation1.Slice = 95
DataRepresentation1.SelectionPointFieldDataArrayName = 'crack'
DataRepresentation1.ScalarOpacityUnitDistance = 1.762150384296635
DataRepresentation1.Representation = 'Outline'
DataRepresentation1.ScaleFactor = 25.5

RenderView1.CameraPosition = [127.5, 127.5, 883.8540784668097]
RenderView1.CameraFocalPoint = [127.5, 127.5, 95.5]
RenderView1.CameraClippingRange = [590.4255376821416, 1039.4068896438118]
RenderView1.CameraParallelScale = 204.0410497914574

Threshold1 = Threshold()
Threshold1.Scalars = ['POINTS', 'crack']
Threshold1.AllScalars = 0
Threshold1.ThresholdRange = [ trlo, trhi ]

DataRepresentation2 = Show()
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation2.SelectionPointFieldDataArrayName = 'crack'
DataRepresentation2.ColorArrayName = ('POINT_DATA', 'crack')
DataRepresentation2.ScalarOpacityUnitDistance = 1.88988157484231
DataRepresentation2.ScaleFactor = 0.2

a1_crack_PVLookupTable = GetLookupTableForArray( "crack", 1, RGBPoints=[-3.0, 0.23, 0.299, 0.754, 1073741822.0, 0.865, 0.865, 0.865, 2147483647.0, 0.706, 0.016, 0.15], VectorMode='Magnitude', NanColor=[0.25, 0.0, 0.0], ColorSpace='Diverging', ScalarRangeInitialized=1.0 )

a1_crack_PiecewiseFunction = CreatePiecewiseFunction( Points=[-3.0, 0.0, 0.5, 0.0, 2147483647.0, 1.0, 0.5, 0.0] )

DataRepresentation2.ScalarOpacityFunction = a1_crack_PiecewiseFunction
DataRepresentation2.LookupTable = a1_crack_PVLookupTable

a1_crack_PVLookupTable.NanColor = [1.0, 1.0, 0.0]
a1_crack_PVLookupTable.RGBPoints = [-3.0, 1.0, 1.0, 1.0, 365072217.5, 0.0, 0.0, 1.0, 730144438.0, 0.0, 1.0, 1.0, 1073741822.0, 0.0, 1.0, 0.0, 1438814042.5, 1.0, 1.0, 0.0, 1803886263.0, 1.0, 0.0, 0.0, 2147483647.0, 0.878431, 0.0, 1.0]
a1_crack_PVLookupTable.ScalarOpacityFunction = a1_crack_PiecewiseFunction
a1_crack_PVLookupTable.ColorSpace = 'RGB'

RenderView1.CameraPosition = [127.49999999999966, 127.5, 883.8540000000002]
RenderView1.CameraClippingRange = [590.4254600000002, 1039.4068100000004]

# custom background

RenderView1.UseGradientBackground = 1
RenderView1.Background2 = [0.0, 0.0, 0.17254901960784313]
RenderView1.Background = [0.32941176470588235, 0.34901960784313724, 0.42745098039215684]

AnimationScene1.AnimationTime = 10.0
AnimationScene1.NumberOfFrames = 100
AnimationScene1.PlayMode = 'Sequence'

CameraAnimationCue1 = GetCameraTrack()
CameraAnimationCue1.AnimatedProxy = RenderView1
CameraAnimationCue1.Mode = 'Path-based'

TimeAnimationCue1 = GetTimeTrack()
#TimeAnimationCue1.Enabled = 0

AnimationScene1.NumberOfFrames = 100
AnimationScene1.PlayMode = 'Sequence'

KeyFrame3658 = CameraKeyFrame( FocalPathPoints=[127.5, 127.5, 95.5], FocalPoint=[127.5, 127.5, 95.5], PositionPathPoints=[127.5, 127.5, 883.854, 740.1661272984488, 127.5, 591.6272475657036, 898.6265736288988, 127.5, -68.40801310294381, 485.4052264316708, 127.5, -606.9285573699966, -193.1524595153794, 127.5, -624.6972157143753, -633.9914888582924, 127.5, -108.54102948275286, -510.2917835834677, 127.5, 558.8828547857805], ClosedPositionPath=1, ParallelScale=204.0410497914574, Position=[127.5, 127.5, 883.8540784668097] )

KeyFrame3659 = CameraKeyFrame( ParallelScale=204.0410497914574, Position=[127.5, 127.5, 883.8540784668097], KeyTime=1.0, FocalPoint=[127.5, 127.5, 95.5] )

CameraAnimationCue1.KeyFrames = [ KeyFrame3658, KeyFrame3659 ]
WriteAnimation( vidfile , Magnification=1, Quality=2, FrameRate=6.000000)

Render()

_______________________________________________
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://public.kitware.com/mailman/listinfo/paraview

<div>
<div dir="ltr">
<div>Hi Anton,<br><br>RenderView1.ViewSize = [1000, 1000]<br><br>
</div>Best wishes,<br>Louie<br><br><div>
<br><br>
</div>
</div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">On 24 July 2014 12:33, Anton Shterenlikht <span dir="ltr">&lt;<a href="mailto:mexas <at> bris.ac.uk" target="_blank">mexas <at> bris.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">I've recorded this python script with PV Trace.<br>
However, the resulting animation window is small.<br>
What do I need to edit to make the window, e.g. 1000x1000 pixels?<br><br>
Thanks<br><br>
Anton<br><br><br>
# use defined variables, no indent allowed, start at col 1<br><br>
infile &nbsp;= "z.xdmf" &nbsp;# name of XDMF file<br>
picfile = "z.png" &nbsp; # image output file<br>
vidfile = "z.ogv" &nbsp; # animation output file<br>
trlo &nbsp; &nbsp;= -4 &nbsp; &nbsp; &nbsp; &nbsp;# lower threshold<br>
trhi &nbsp; &nbsp;= 0 &nbsp; &nbsp; &nbsp; &nbsp; # upper threshold<br><br>
# end of user variables<br><br>
try: paraview.simple<br>
except: from paraview.simple import *<br>
paraview.simple._DisableFirstRenderCameraReset()<br><br>
# load XDMF file<br>
z_xdmf = XDMFReader( FileName=infile )<br><br>
AnimationScene1 = GetAnimationScene()<br>
AnimationScene1.EndTime = 10.0<br>
AnimationScene1.PlayMode = 'Snap To TimeSteps'<br><br>
z_xdmf.Sets = []<br>
z_xdmf.Grids = ['T0', 'T30', 'T60', 'T90', 'T120', 'T150', 'T180', 'T210', 'T240', 'T270', 'T300']<br>
z_xdmf.PointArrays = ['crack']<br><br>
RenderView1 = GetRenderView()<br>
RenderView1.CenterOfRotation = [127.5, 127.5, 95.5]<br><br>
DataRepresentation1 = Show()<br>
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
DataRepresentation1.Slice = 95<br>
DataRepresentation1.SelectionPointFieldDataArrayName = 'crack'<br>
DataRepresentation1.ScalarOpacityUnitDistance = 1.762150384296635<br>
DataRepresentation1.Representation = 'Outline'<br>
DataRepresentation1.ScaleFactor = 25.5<br><br>
RenderView1.CameraPosition = [127.5, 127.5, 883.8540784668097]<br>
RenderView1.CameraFocalPoint = [127.5, 127.5, 95.5]<br>
RenderView1.CameraClippingRange = [590.4255376821416, 1039.4068896438118]<br>
RenderView1.CameraParallelScale = 204.0410497914574<br><br>
Threshold1 = Threshold()<br>
Threshold1.Scalars = ['POINTS', 'crack']<br>
Threshold1.AllScalars = 0<br>
Threshold1.ThresholdRange = [ trlo, trhi ]<br><br>
DataRepresentation2 = Show()<br>
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
DataRepresentation2.SelectionPointFieldDataArrayName = 'crack'<br>
DataRepresentation2.ColorArrayName = ('POINT_DATA', 'crack')<br>
DataRepresentation2.ScalarOpacityUnitDistance = 1.88988157484231<br>
DataRepresentation2.ScaleFactor = 0.2<br><br>
a1_crack_PVLookupTable = GetLookupTableForArray( "crack", 1, RGBPoints=[-3.0, 0.23, 0.299, 0.754, 1073741822.0, 0.865, 0.865, 0.865, 2147483647.0, 0.706, 0.016, 0.15], VectorMode='Magnitude', NanColor=[0.25, 0.0, 0.0], ColorSpace='Diverging', ScalarRangeInitialized=1.0 )<br><br>
a1_crack_PiecewiseFunction = CreatePiecewiseFunction( Points=[-3.0, 0.0, 0.5, 0.0, 2147483647.0, 1.0, 0.5, 0.0] )<br><br>
DataRepresentation2.ScalarOpacityFunction = a1_crack_PiecewiseFunction<br>
DataRepresentation2.LookupTable = a1_crack_PVLookupTable<br><br>
a1_crack_PVLookupTable.NanColor = [1.0, 1.0, 0.0]<br>
a1_crack_PVLookupTable.RGBPoints = [-3.0, 1.0, 1.0, 1.0, 365072217.5, 0.0, 0.0, 1.0, 730144438.0, 0.0, 1.0, 1.0, 1073741822.0, 0.0, 1.0, 0.0, 1438814042.5, 1.0, 1.0, 0.0, 1803886263.0, 1.0, 0.0, 0.0, 2147483647.0, 0.878431, 0.0, 1.0]<br>

a1_crack_PVLookupTable.ScalarOpacityFunction = a1_crack_PiecewiseFunction<br>
a1_crack_PVLookupTable.ColorSpace = 'RGB'<br><br>
RenderView1.CameraPosition = [127.49999999999966, 127.5, 883.8540000000002]<br>
RenderView1.CameraClippingRange = [590.4254600000002, 1039.4068100000004]<br><br>
# custom background<br><br>
RenderView1.UseGradientBackground = 1<br>
RenderView1.Background2 = [0.0, 0.0, 0.17254901960784313]<br>
RenderView1.Background = [0.32941176470588235, 0.34901960784313724, 0.42745098039215684]<br><br>
AnimationScene1.AnimationTime = 10.0<br>
AnimationScene1.NumberOfFrames = 100<br>
AnimationScene1.PlayMode = 'Sequence'<br><br>
CameraAnimationCue1 = GetCameraTrack()<br>
CameraAnimationCue1.AnimatedProxy = RenderView1<br>
CameraAnimationCue1.Mode = 'Path-based'<br><br>
TimeAnimationCue1 = GetTimeTrack()<br>
#TimeAnimationCue1.Enabled = 0<br><br>
AnimationScene1.NumberOfFrames = 100<br>
AnimationScene1.PlayMode = 'Sequence'<br><br>
KeyFrame3658 = CameraKeyFrame( FocalPathPoints=[127.5, 127.5, 95.5], FocalPoint=[127.5, 127.5, 95.5], PositionPathPoints=[127.5, 127.5, 883.854, 740.1661272984488, 127.5, 591.6272475657036, 898.6265736288988, 127.5, -68.40801310294381, 485.4052264316708, 127.5, -606.9285573699966, -193.1524595153794, 127.5, -624.6972157143753, -633.9914888582924, 127.5, -108.54102948275286, -510.2917835834677, 127.5, 558.8828547857805], ClosedPositionPath=1, ParallelScale=204.0410497914574, Position=[127.5, 127.5, 883.8540784668097] )<br><br>
KeyFrame3659 = CameraKeyFrame( ParallelScale=204.0410497914574, Position=[127.5, 127.5, 883.8540784668097], KeyTime=1.0, FocalPoint=[127.5, 127.5, 95.5] )<br><br>
CameraAnimationCue1.KeyFrames = [ KeyFrame3658, KeyFrame3659 ]<br>
WriteAnimation( vidfile , Magnification=1, Quality=2, FrameRate=6.000000)<br><br>
Render()<br><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>
Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
<br>
</div>
</div>
Anton Shterenlikht | 24 Jul 13:33 2014
Picon
Picon

pvbatch: python - help make animation window bigger

I've recorded this python script with PV Trace.
However, the resulting animation window is small.
What do I need to edit to make the window, e.g. 1000x1000 pixels?

Thanks

Anton

# use defined variables, no indent allowed, start at col 1

infile  = "z.xdmf"  # name of XDMF file
picfile = "z.png"   # image output file
vidfile = "z.ogv"   # animation output file
trlo    = -4        # lower threshold
trhi    = 0         # upper threshold

# end of user variables

try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

# load XDMF file
z_xdmf = XDMFReader( FileName=infile )

AnimationScene1 = GetAnimationScene()
AnimationScene1.EndTime = 10.0
AnimationScene1.PlayMode = 'Snap To TimeSteps'

z_xdmf.Sets = []
z_xdmf.Grids = ['T0', 'T30', 'T60', 'T90', 'T120', 'T150', 'T180', 'T210', 'T240', 'T270', 'T300']
z_xdmf.PointArrays = ['crack']

RenderView1 = GetRenderView()
RenderView1.CenterOfRotation = [127.5, 127.5, 95.5]

DataRepresentation1 = Show()
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation1.Slice = 95
DataRepresentation1.SelectionPointFieldDataArrayName = 'crack'
DataRepresentation1.ScalarOpacityUnitDistance = 1.762150384296635
DataRepresentation1.Representation = 'Outline'
DataRepresentation1.ScaleFactor = 25.5

RenderView1.CameraPosition = [127.5, 127.5, 883.8540784668097]
RenderView1.CameraFocalPoint = [127.5, 127.5, 95.5]
RenderView1.CameraClippingRange = [590.4255376821416, 1039.4068896438118]
RenderView1.CameraParallelScale = 204.0410497914574

Threshold1 = Threshold()
Threshold1.Scalars = ['POINTS', 'crack']
Threshold1.AllScalars = 0
Threshold1.ThresholdRange = [ trlo, trhi ]

DataRepresentation2 = Show()
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation2.SelectionPointFieldDataArrayName = 'crack'
DataRepresentation2.ColorArrayName = ('POINT_DATA', 'crack')
DataRepresentation2.ScalarOpacityUnitDistance = 1.88988157484231
DataRepresentation2.ScaleFactor = 0.2

a1_crack_PVLookupTable = GetLookupTableForArray( "crack", 1, RGBPoints=[-3.0, 0.23, 0.299, 0.754,
1073741822.0, 0.865, 0.865, 0.865, 2147483647.0, 0.706, 0.016, 0.15], VectorMode='Magnitude',
NanColor=[0.25, 0.0, 0.0], ColorSpace='Diverging', ScalarRangeInitialized=1.0 )

a1_crack_PiecewiseFunction = CreatePiecewiseFunction( Points=[-3.0, 0.0, 0.5, 0.0, 2147483647.0,
1.0, 0.5, 0.0] )

DataRepresentation2.ScalarOpacityFunction = a1_crack_PiecewiseFunction
DataRepresentation2.LookupTable = a1_crack_PVLookupTable

a1_crack_PVLookupTable.NanColor = [1.0, 1.0, 0.0]
a1_crack_PVLookupTable.RGBPoints = [-3.0, 1.0, 1.0, 1.0, 365072217.5, 0.0, 0.0, 1.0, 730144438.0,
0.0, 1.0, 1.0, 1073741822.0, 0.0, 1.0, 0.0, 1438814042.5, 1.0, 1.0, 0.0, 1803886263.0, 1.0, 0.0, 0.0,
2147483647.0, 0.878431, 0.0, 1.0]
a1_crack_PVLookupTable.ScalarOpacityFunction = a1_crack_PiecewiseFunction
a1_crack_PVLookupTable.ColorSpace = 'RGB'

RenderView1.CameraPosition = [127.49999999999966, 127.5, 883.8540000000002]
RenderView1.CameraClippingRange = [590.4254600000002, 1039.4068100000004]

# custom background

RenderView1.UseGradientBackground = 1
RenderView1.Background2 = [0.0, 0.0, 0.17254901960784313]
RenderView1.Background = [0.32941176470588235, 0.34901960784313724, 0.42745098039215684]

AnimationScene1.AnimationTime = 10.0
AnimationScene1.NumberOfFrames = 100
AnimationScene1.PlayMode = 'Sequence'

CameraAnimationCue1 = GetCameraTrack()
CameraAnimationCue1.AnimatedProxy = RenderView1
CameraAnimationCue1.Mode = 'Path-based'

TimeAnimationCue1 = GetTimeTrack()
#TimeAnimationCue1.Enabled = 0

AnimationScene1.NumberOfFrames = 100
AnimationScene1.PlayMode = 'Sequence'

KeyFrame3658 = CameraKeyFrame( FocalPathPoints=[127.5, 127.5, 95.5], FocalPoint=[127.5, 127.5,
95.5], PositionPathPoints=[127.5, 127.5, 883.854, 740.1661272984488, 127.5, 591.6272475657036,
898.6265736288988, 127.5, -68.40801310294381, 485.4052264316708, 127.5, -606.9285573699966,
-193.1524595153794, 127.5, -624.6972157143753, -633.9914888582924, 127.5, -108.54102948275286,
-510.2917835834677, 127.5, 558.8828547857805], ClosedPositionPath=1,
ParallelScale=204.0410497914574, Position=[127.5, 127.5, 883.8540784668097] )

KeyFrame3659 = CameraKeyFrame( ParallelScale=204.0410497914574, Position=[127.5, 127.5,
883.8540784668097], KeyTime=1.0, FocalPoint=[127.5, 127.5, 95.5] )

CameraAnimationCue1.KeyFrames = [ KeyFrame3658, KeyFrame3659 ]
WriteAnimation( vidfile , Magnification=1, Quality=2, FrameRate=6.000000)

Render()

Géraud Vaurs | 24 Jul 09:27 2014
Picon

CSV data volume rendering

Good morning, 


I am a new user of Paraview and I am requesting your support regarding volume rendering.

 

I have a set of data included in a CSV file. The data looks like:

                X             Y             Z             C (Value to be represented)

The C value typically represents particle concentration.

 

My ultimate goal would be to display a volume with color and opacity being directly linked to C (particle concentration).

 

I managed to import my data in ParaView and then used the “Tetrahedralize” filter to get an unstructured Grid.

I am able to display my points (using “Points” representation) such that the color of each point depends on its C value. However, changing representation to “Volume” just lead to nothing being displayed.

Obviously I am missing something. Do you have an idea about how to get my volume?

 

Thank you in advance for your help.

 

Géraud Vaurs

<div><div>
<p class="MsoNormal"><span class="Apple-style-span">Good morning,&nbsp;</span></p>
<p class="MsoNormal"><span class="Apple-style-span"><br></span></p>
<p class="MsoNormal"><span class="Apple-style-span">I am a new user of Paraview and I am requesting your support regarding volume rendering.</span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have a set of data included in a CSV file. The data looks like:<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Z&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C (Value to be represented)<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US">The C value typically represents particle concentration.<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">My ultimate goal would be to display a volume with color and opacity being directly linked to C (particle concentration).<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">I managed to import my data in ParaView and then used the &ldquo;Tetrahedralize&rdquo; filter to get an unstructured Grid.<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am able to display my points (using &ldquo;Points&rdquo; representation) such that the color of each point depends on its C value. However, changing representation to &ldquo;Volume&rdquo; just lead to nothing being displayed.<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US">Obviously I am missing something. Do you have an idea about how to get my volume?<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you in advance for your help.<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">G&eacute;raud Vaurs</span></p>
</div></div>

Gmane