Once you run Glyph you have glyph geometry, rather than the original grid,
so you can't Replace. I'd suggest you try this:
Import(pressure)
|
Import(velocity) |
| |
Replace("data", "velocity")
|
RubberSheet()
|
+------------+
| |
| Rename("velocity", "data")
| |
AutoColor() Glyph()
| |
+----+ +---+
| |
Collect()
|
Image()
So you have one grid with two data components after the replace: one,
pressure, will be named "data" (as it was by Import) and the other, named
"velocity" by the Replace. Then you Rubbersheet. That'll deform the
positions of the grid by the "data" component, which is pressure value.
Then you move "velocity" into "data" and glyph - that'll create vector
glyphs rooted at the deformed grid points - eg. on the surface. Combine
them and render.
Greg
Please respond to [email protected]
Sent by: [EMAIL PROTECTED]
To: [email protected]
cc:
Subject: [opendx-users] map glyphs to rubbersheet surf
I have a network where I want to have an image which has a surface
distorted by say pressure with velocity vectors on shown on that
surface. The grids are the same between the two values. I have tried
the following
import(pressure) -> autocolor->rubbersheet->collect->image<-
import(vel)->glyph->replace(gliph pos w/ rs pos)->collect--|
When I do that I get the following error
Invalid data: normals component has 20301 items, expecting 142107
The grid has 20301 nodes and is an unstructured grid.
I tried to do the following
import(pressure) -> autocolor->rubbersheet->collect->image<-
import(vel)->replace(pos with RS pos)-> glyph->collect------|
I am sure I have done something wrong, but I can't figure out what. Any
ideas?? I tried to use map to do the same thing. I have the output of
rubbersheet feeding the 1st tab of map and the output of glyph feeding
the 2nd input of map and I get rank|shape mismatch between input and map
Thanks in advance
Matt