[Paraview] problems setting vtkDoubleArray with 3 components

2009-03-15 Thread Natalie Happenhofer
Hi! I´d like to set a vtkDoubleArray with 3 Components, it should be a vector array, the code looks like this: vtkDoubleArray* momentum = vtkDoubleArray::New(); momentum - SetNumberOfTuples(numOfTuples); momentum - SetNumberOfComponents(3); for(vtkIdType i = 0; i numOfTuples; i++)

Re: [Paraview] problems setting vtkDoubleArray with 3 components

2009-03-15 Thread Burlen Loring
try calling SetNumberOfComponents first, the memory is allocated in the call to SetNumberOfTuples Natalie Happenhofer wrote: Hi! I´d like to set a vtkDoubleArray with 3 Components, it should be a vector array, the code looks like this: vtkDoubleArray* momentum = vtkDoubleArray::New();

Re: [Paraview] problems setting vtkDoubleArray with 3 components

2009-03-15 Thread Burlen Loring
Also, if you SetNumberOfComponents, and SetNumberOfTuples, you want to use SetTuple(i,Tuple) not InsertNextTuple, because that will add them at the end. Natalie Happenhofer wrote: Hi! I´d like to set a vtkDoubleArray with 3 Components, it should be a vector array, the code looks like this:

Re: [Paraview] Contour from Table - how?

2009-03-15 Thread Berk Geveci
What kind of dataset is this and which variable are you contouring by? Before you can contour a dataset, you have to create cells (triangles, quads, tetrahedras etc.) so that VTK has a way of interpolating values over the area/volume. You can do this by using one of the Delaunay filters but the

Re: [Paraview] Contour from Table - how?

2009-03-15 Thread Steven Janzou
Berk, I am trying to construct a 24 (hour) by 365 (days) plot of energy values generated from a simulation and stored in SQLite. The query that constructs a data table with the the three columns for plotting is: select [hour],(([Month]-1)*31+ [day]) as y, variablevalue from reportmeterdata rmd

Re: [Paraview] slow (broken?) volume rendering in 3.4.0 (Fedora 10)

2009-03-15 Thread Scott, W Alan
Mike, This is a known problem with ParaView 3.4.0. The next version of ParaView should have much more robust volume rendering. Volume rendering is (mostly) clean in the trunk. You can build a version of your own (see the ParaView web site wiki - http://www.paraview.org/Wiki/ParaView, then

Re: [Paraview] vtkTableFFT compilation issue with CVS version

2009-03-15 Thread Scott, W Alan
Make a new source code pull. This was broken the middle of last week, but was fixed by Thursday or Friday. If you still have troubles after a new source pull and clean cmake and build, let us know. Alan -Original Message- From: paraview-boun...@paraview.org