Hi!

I cant get this working (although I understand what we are trying to
do...). I get an "Map: invalid data: rank/shape mismatch between input
and map" error from map - object description from both inputs is:

the glyphs:

Object Description:
Input object is a Field, the basic data carrying structure in DX.
There are 2 data items, each is of type float (4-byte or real*4).
The positions are enclosed within the box defined by the corner points:
[ -0.0331346 -9.17951 0 ] and [ 0.0255136 7.06822 0 ]
Data range is:
minimum = 0.77, maximum = 1, average = 0.885
Input is not ready to be rendered because the Field does not have colors yet.
Use the `AutoColor', `AutoGreyScale', or `Color' modules to add colors.


the surface:

Object Description:
Input object is a Field, the basic data carrying structure in DX.
There are 13158 data items, each is of type float (4-byte or real*4).
The positions are enclosed within the box defined by the corner points:
[ -390.084 -390.084 -30 ] and [ 390.084 390.084 -1.85511 ]
Data range is:
minimum = -6, maximum = -0.371022, average = -2.81847
Input contains a surface.  Planar (flat) surfaces exactly aligned
along the viewpoint will NOT be visible.  To see the
surface move the viewpoint slightly off-axis.
Input contains Fields with Float colors.  Float colors use 3-float triplets per 
data value.
Valid color values are between 0 and 1 for each of Red, Green and Blue.

Thanx again, Richard.


On Fri, 9 Feb 2001, nancy collins wrote:

> hi,
>
> someone may come up with something simpler, but one idea is to make
> the Rubbersheet output into a 2D field with the Z heights as computed
> by Rubbersheet as the data value, then you can use it in Map with your
> 2D scattered points and the dimensions will be fine.  then you can make
> the scattered points into 3D and finally put them into Autoglyph.
>
> (disclaimer: i didn't test this - my apologies if i've missed a step)
>
> Rubbersheet(2d_data) - Mark(positions) - Compute([a.z]) - Replace(2d_data)
>
> Compute outputs a field where the data component contains the Z values
> generated by Rubbersheet, and they are inserted back as data into the
> original 2d field which went into Rubbersheet.
>
> then for your scattered points, assuming the positions are 2D (if not,
> use Mark - Compute([a.x,a.y]) - Unmark to make them so) then:
>
> Map(scattered, replace_output) - Mark(positions) - Compute([a.x, a.y, b]) - 
> Unmark - Autoglyph            \ ---------------- /
>
> the output of map contains your scattered points with the Z heights in the
> data component, so you need to get that into the positions component.  i'm
> not sure my ascii art will make sense - the inputs to Compute are first the
> output of Mark, and second the output of Map.
>
> nancy
>
>
> > Hi!
> >
> > I need to map z-coordinates from a non-regular grid (output of
> > rubbersheet) to the z-coordinates of an n-body (unconnected)
> > set (to be displayed via autoglyph as spheres). I.e. I want to
> > have the glyphs be vertically aligned with the rubbersheet surface.
> >
> > just doing
> >
> > rubbersheet - mark[positions] \
> >                                 compute - unmark
> > autoglyph - mark[positions]   /
> >
> > does not work (Bad parameter: inputs must be of the same length / input 1
> > not matching the master (input 0)).
> >
> > Is there a way to extract (sample) the rubbersheet at the positions of
> > the n-body set? I tried to use lookup for this purpose but did not
> > succeed (well, because I do not have integer indexes for the lookup), also
> > map does not work because rubber-sheet is 3d, but the connections are
> > only 2d.
> >
> > Any Ideas? Richard.
> >
> > --
> > Richard Guenther <[EMAIL PROTECTED]>
> > WWW: http://www.anatom.uni-tuebingen.de/~richi/
> > The GLAME Project: http://www.glame.de/
>

--
Richard Guenther <[EMAIL PROTECTED]>
WWW: http://www.anatom.uni-tuebingen.de/~richi/
The GLAME Project: http://www.glame.de/

Reply via email to