<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>i am trying to draw a vector field, which is made
from vtkMergeFields</FONT></DIV>
<DIV><FONT face=Arial size=2>heres a piece of my code</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>vtkMergeFields mf<BR> mf SetInput [data
GetOutput]<BR> mf SetOutputField merged POINT_DATA<BR>
mf SetNumberOfComponents 3<BR> mf Merge 0 U 0<BR> mf
Merge 1 V 0<BR> mf Merge 2 W 0</DIV>
<DIV> </DIV>
<DIV>[[mf GetOutput] GetPointData] SetActiveVectors merged</DIV>
<DIV> </DIV>
<DIV>vtkHedgeHog hhog<BR> hhog SetInput [mf GetOutput]<BR> hhog
SetScaleFactor 1.0<BR>vtkPolyDataMapper hhogMapper<BR> hhogMapper SetInput
[hhog GetOutput]<BR>vtkActor hhogActor<BR> hhogActor SetMapper
hhogMapper<BR>ren1 AddActor hhogActor</DIV>
<DIV> </DIV>
<DIV>data that is fed into vtkMergeFields is gnereated from the following:</DIV>
<DIV> </DIV>
<DIV> vtkExtractRectilinearGrid data<BR> data SetInput
[interpdata GetOutput]<BR> data SetSampleRate 2 2
2<BR> data Update</DIV>
<DIV> </DIV>
<DIV>interpdata is generated from 6 rectilineradataset using the following</DIV>
<DIV>the rectilineardata set has 7 SCALAR fields, the 1st 3 are U, V, and
W</DIV>
<DIV>which are teh ones i am trying to combine to form a vector field</DIV>
<DIV> </DIV>
<DIV>vtkInterpolateDataSetAttributes interpdata<BR> interpdata SetT
6.0</DIV>
<DIV> </DIV>
<DIV>interpadata AddInput [ ...] </DIV>
<DIV>...</DIV>
<DIV>...</DIV>
<DIV> </DIV>
<DIV>the error when running the above code is:</DIV>
<DIV>no vector data to input..............</DIV>
<DIV> </DIV>
<DIV>any help or suggenstion would be great</DIV>
<DIV> </DIV>
<DIV>thanks in advance</FONT></DIV></BODY></HTML>