[vtkusers] please help on ploting surfaces vith VTK
rafael possani
gentefinabr at hotmail.com
Fri Aug 31 16:35:38 EDT 2007
Hi Yadin, I suggest y to use vtkGaussianSplatter, thats a fragment code:
vtkUnstructuredGrid grid= new vtkUnstructuredGrid();
inferno.SetPoints(points);
inferno.SetCells(1,polys);
inferno.GetPointData().SetScalars(scalars);
vtkGaussianSplatter popSplatter = new vtkGaussianSplatter();
popSplatter.SetInput(grid);
popSplatter.SetSampleDimensions(50, 50, 50);
popSplatter.SetRadius(0.05);
popSplatter.ScalarWarpingOff();
popSplatter.Update();
vtkContourFilter popSurface = new vtkContourFilter();
popSurface.SetInputConnection(popSplatter.GetOutputPort());
popSurface.SetValue(0, 0.01);
vtkPolyDataMapper popMapper = new vtkPolyDataMapper();
popMapper.SetInputConnection(popSurface.GetOutputPort());
popMapper.ScalarVisibilityOn();
popMapper.SetScalarRange(grid.GetScalarRange());
popMapper.ImmediateModeRenderingOn();
vtkActor popActor = new vtkActor();
popActor.SetMapper(popMapper);
cya.
Date: Fri, 31 Aug 2007 10:24:26 -0500
From: conra2004 at yahoo.com
To: vtkusers at vtk.org
Subject: [vtkusers] please help on ploting surfaces vith VTK
hi! how do you plot surfaces in VTK? I know how to do it with matlab using surf or meshgrid.... what is the command to plot surcaes in VTK? I just one to use it for ploting some points(x,y,z) ...generate a surface through jhe points and no more thanks __________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_________________________________________________________________
Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça o MSN Mobile!
http://mobile.live.com/signup/signup2.aspx?lc=pt-br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070831/d25b3452/attachment.htm>
More information about the vtkusers
mailing list