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++)
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();
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:
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
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
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
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