<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">&nbsp;&nbsp; Hi Yadin,&nbsp; I suggest y to use vtkGaussianSplatter, thats a fragment code:<br><br>&nbsp;&nbsp;&nbsp; vtkUnstructuredGrid grid= new vtkUnstructuredGrid();<br>&nbsp;&nbsp;&nbsp; inferno.SetPoints(points);<br>&nbsp;&nbsp;&nbsp; inferno.SetCells(1,polys);<br>&nbsp;&nbsp;&nbsp; inferno.GetPointData().SetScalars(scalars);&nbsp;&nbsp;  <br><br>&nbsp;&nbsp;&nbsp; vtkGaussianSplatter popSplatter = new vtkGaussianSplatter();<br>&nbsp;&nbsp;&nbsp; popSplatter.SetInput(grid);<br>&nbsp;&nbsp;&nbsp; popSplatter.SetSampleDimensions(50, 50, 50);<br>&nbsp;&nbsp;&nbsp; popSplatter.SetRadius(0.05);<br>&nbsp;&nbsp;&nbsp; popSplatter.ScalarWarpingOff();<br>&nbsp;&nbsp;&nbsp; popSplatter.Update();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; vtkContourFilter popSurface = new vtkContourFilter();<br>&nbsp;&nbsp;&nbsp; popSurface.SetInputConnection(popSplatter.GetOutputPort());<br>&nbsp;&nbsp;&nbsp; popSurface.SetValue(0, 0.01);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; vtkPolyDataMapper popMapper = new vtkPolyDataMapper();<br>&nbsp;&nbsp;&nbsp; popMapper.SetInputConnection(popSurface.GetOutputPort());<br>&nbsp; &nbsp; popMapper.ScalarVisibilityOn();<br>&nbsp; &nbsp; popMapper.SetScalarRange(grid.GetScalarRange());<br>&nbsp;&nbsp;&nbsp; popMapper.ImmediateModeRenderingOn();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; vtkActor popActor = new vtkActor();<br>&nbsp;&nbsp;&nbsp; popActor.SetMapper(popMapper);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  &nbsp;&nbsp;  <br></div>&nbsp;&nbsp;&nbsp; cya.<br><br><br><blockquote><hr id="EC_stopSpelling">Date: Fri, 31 Aug 2007 10:24:26 -0500<br>From: conra2004@yahoo.com<br>To: vtkusers@vtk.org<br>Subject: [vtkusers] please help on ploting surfaces vith VTK<br><br><div>hi!</div>  <div>how do you plot surfaces in VTK?</div>  <div>I know how to do it with matlab using surf or meshgrid....</div>  <div>what is the command to plot surcaes in VTK?</div>  <div>I just one to use it for ploting some points(x,y,z) ...generate a surface&nbsp;through jhe points and no more</div>  <div>thanks </div> __________________________________________________<br>Correo Yahoo!<br>Espacio para todos tus mensajes, antivirus y antispam ¡gratis! <br>Regístrate ya - http://correo.espanol.yahoo.com/ <BR></blockquote><br /><hr />Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça  o MSN Mobile! <a href='http://mobile.live.com/signup/signup2.aspx?lc=pt-br' target='_new'>Cadastre-se já!</a></body>
</html>