<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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:
<blockquote cite="mid:C4D9969F.1C79%25gbivins@objectreservoir.com"
type="cite">
<pre wrap="">I know you may have done this but maybe not from the code snippet below.Did
you specify a scale factor for your warp?
On 8/26/08 11:01 AM, "James Dippner" <a class="moz-txt-link-rfc2396E" href="mailto:jdippner@informetric.com"><jdippner@informetric.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Let me start by saying that I am new to using vtk, as in I started
working with the toolkit over the weekend ;)
I am trying to plot a simple 3d blanket/surface plot of data. Combing
through the examples, I put together a simple example that I thought
would work, but I am apparently missing something.
I am working in C++, so I will spare you the detailed code, but a
summary of the pipleline is as follows:
x[10], y[5], z[50] ->
vtkRectilinearGrid w/ dimensions (10,5,1) ->
vtkRectilinearGridGeometryFilter w/ extent (0,9, 0,4, 0,49) ->
vtkWarpScalar w/ XYPlaneOn ->
vtkDataSetMapper ->
vtkActor -> renderer
Despite much experimentation, my resulting plot is always a flat xy
grid. Using the vtkRectilinearGrid::GetNumberOfPoints and
vtkRectilinearGrid::GetNumberOfCells functions, I get the expected 36
cells and 50 points. With the vtkWarpScalar debugging on, I get the
following message, "vtkWarpScalar (016C70D8): No data to warp".
How do I warp the grid to show z as height? Am I not using the right
classes, or have I simply set the classes up wrong?
Any help or suggestions would be much appreciated.
Thanks,
Jim
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div align="left"><img alt="Informetric Systems, Inc."
src="cid:part1.06070101.02080307@informetric.com" border="0"
height="50" width="173"></div>
<div align="left"><b><font face="Century Gothic" size="2">James Dippner</font></b></div>
<div align="left"><font face="Century Gothic" size="2"><a
href="mailto:jdippner@informetric.com">jdippner@informetric.com</a></font></div>
<div align="left"><font face="Century Gothic" size="2">mobile: (908)
447-1791</font></div>
<div align="left"><font face="Century Gothic" size="2">work: (856)
380-0875</font></div>
<!--<DIV align=left><FONT face="Century Gothic" size=2>work alternate: (510)
524-8399 ext. 104</FONT></DIV>-->
<div align="left"> </div>
</div>
</body>
</html>