On Thu, 3 Apr 2003, Lloyd A Treinish wrote:

> An option in Slice is which slice.  By default, it will give you all of the
> slices as a series.  That's why it worked for 1x1xN.  Tell each instance of
> Slice, which one you want.

I know. I tried to reproduce my problems with a simple

 Slice(Slice(Construct({[0 0 0]}, {[1 0 0][0 1 0][0 0 1]}, [128 2 2],
{0}), "z", 0), "y", 0)

but this seems to work ok - interestingly enough, for counts as [128 1 1]
I get
ERROR: Slice: Bas parameter: dimension is 1, connections for input have
only dimensions 0-0
but for my real data this works (and only this works) ok.

My data is generated from a custom module that uses something along

  field = DXNewField();
  data =  DXNewArrayV(TYPE_FLOAT, CATEGORY_REAL, elem_rank, elem_idims);
where elem_rank/elem_dims is 1/3 for the particular case (but rank 0 shows
the same problems)
  DXSetComponentValue(field, "data", (Object)data);
  DXAddArrayData(data, 0, size, NULL);
now we fill data
  positions = DXMakeGridPositionsV(rank, idims, origins, deltas);
  DXSetComponentValue(field, "positions", (Object)positions);
  connections = DXMakeGridConnectionsV(rank, idims);
  DXSetComponentValue(field, "connections", (Object)connections);

so this procedure does not seem to be an equivalent to the above Construct
example - how so?

Any ideas?

Thanks, Richard.


--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/

Reply via email to