<HTML>
<HEAD>
<TITLE>Re: [vtkusers] Help with blanket/surface plotting</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Did you specify scalar point or cell data? If so did you set one of the arrays as the active scalar? <BR>
I think vtkWarpScalar prints that info out if it can&#8217;t determine which scalars to use.<BR>
Gerrick<BR>
<BR>
On 8/26/08 11:26 AM, &quot;James Dippner&quot; &lt;jdippner@informetric.com&gt; wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thanks for the reply.<BR>
Yes, I did set the scale factor (ranging from 2.5 to 10) to no effect. I also tried setting the USeNormalsOn, and explicitly setting the Normal to (0,0,1). &nbsp;I'm thinking that my problem exists on the grid or geometry setup, but I'm still trying to get my head around the object model.<BR>
<BR>
Gerrick Bivins wrote: <BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
I know you may have done this but maybe not from the code snippet below.Did<BR>
you specify a scale factor for your warp?<BR>
<BR>
<BR>
On 8/26/08 11:01 AM, &quot;James Dippner&quot; &lt;jdippner@informetric.com&gt; <a href="mailto:jdippner@informetric.com">&lt;mailto:jdippner@informetric.com&gt;</a> &nbsp;wrote:<BR>
<BR>
&nbsp;&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
Let me start by saying that I am new to using vtk, as in I started<BR>
working with the toolkit over the weekend ;)<BR>
<BR>
I am trying to plot a simple 3d blanket/surface plot of data. &nbsp;Combing<BR>
through the examples, I put together a simple example that I thought<BR>
would work, but I am apparently missing something.<BR>
<BR>
I am working in C++, so I will spare you the detailed code, but a<BR>
summary of the &nbsp;pipleline is as follows:<BR>
<BR>
x[10], y[5], z[50] -&gt;<BR>
vtkRectilinearGrid w/ dimensions (10,5,1) -&gt;<BR>
vtkRectilinearGridGeometryFilter w/ extent (0,9, 0,4, 0,49) -&gt;<BR>
vtkWarpScalar w/ XYPlaneOn -&gt;<BR>
vtkDataSetMapper -&gt;<BR>
vtkActor -&gt; renderer<BR>
<BR>
Despite much experimentation, my resulting plot is always a flat xy<BR>
grid. Using the vtkRectilinearGrid::GetNumberOfPoints and<BR>
vtkRectilinearGrid::GetNumberOfCells functions, I get the expected 36<BR>
cells and 50 points. &nbsp;With the vtkWarpScalar debugging on, I get the<BR>
following message, &quot;vtkWarpScalar (016C70D8): No data to warp&quot;.<BR>
How do I warp the grid to show z as height? &nbsp;Am I not using the right<BR>
classes, or have I simply set the classes up wrong?<BR>
<BR>
Any help or suggestions would be much appreciated.<BR>
<BR>
Thanks,<BR>
Jim<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
<BR>
<BR>
<BR>
<BR>
&nbsp;&nbsp;<BR>
</SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE>
</BODY>
</HTML>