<!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.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Doug</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'd convert your data into x,y,z then run it 
through vtkDelaunay2D (which just uses x and y for the triangulation).&nbsp;This 
will give you a triangulated mesh&nbsp;as vtkPolyData output. The points do not 
need to be regular.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If you want a regular grid you could convert the z 
values to scalars with vtkElevation filter and resample with vtkShepardMethod. I 
did this a long, long time ago but could probably dig out some demo code if you 
want it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>HTH</FONT></DIV>
<DIV>Malcolm Drummond<BR>GeoVision cc</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=brilligent@gmail.com href="mailto:brilligent@gmail.com">Doug 
  Henry</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">VTK</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 30, 2005 2:46 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] data for 3D 
  surface</DIV>
  <DIV><BR></DIV>I am looking to make a surface plot similar to matlab's surf 
  function.&nbsp; I have location (az,el) and magnitude data, which can easily 
  be turned in to x,y,z data if needed, and I would like to create a simple 
  surface (mesh) from this data.&nbsp; What options are available for doing 
  this?&nbsp; Do I need data at regular intervals, I saw reference to structured 
  and unstructured grids.<BR><BR>-thanks<BR><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>This is the private 
  VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: 
  http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to 
  subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>