<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’t determine which scalars to use.<BR>
Gerrick<BR>
<BR>
On 8/26/08 11:26 AM, "James Dippner" <jdippner@informetric.com> 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). 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, "James Dippner" <jdippner@informetric.com> <a href="mailto:jdippner@informetric.com"><mailto:jdippner@informetric.com></a> wrote:<BR>
<BR>
<BR>
<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. 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 pipleline is as follows:<BR>
<BR>
x[10], y[5], z[50] -><BR>
vtkRectilinearGrid w/ dimensions (10,5,1) -><BR>
vtkRectilinearGridGeometryFilter w/ extent (0,9, 0,4, 0,49) -><BR>
vtkWarpScalar w/ XYPlaneOn -><BR>
vtkDataSetMapper -><BR>
vtkActor -> 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. With the vtkWarpScalar debugging on, I get the<BR>
following message, "vtkWarpScalar (016C70D8): No data to warp".<BR>
How do I warp the grid to show z as height? 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>
<BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE>
</BODY>
</HTML>