[vtkusers] Delaunay3D triangulation

Pablo Cosias pcosias at hotmail.com
Thu Apr 22 22:58:12 EDT 2004


Hi, all

I read a serie of point of a file and I wish triangulate them using
Delaunay3D:

My source is:

.   .   .   .   .    .   .   .   .   .
.   .   .   .   .    .   .   .   .   .
.   .   .   .   .    .   .   .   .   .

vtkDelaunay3D del
    del SetInput [pointSource GetPolyDataOutput]
    del SetTolerance 0.01
    del SetAlpha 0.2
    del BoundingTriangulationOff

vtkShrinkFilter shrink
    shrink SetInput [del GetOutput]
    shrink SetShrinkFactor 0.9

vtkDataSetMapper map
map SetInput [shrink GetOutput]

vtkActor triangulation
    triangulation SetMapper map
    [triangulation GetProperty] SetColor 1 0 0

vtkRenderer ren1
vtkRenderWindow renWin
    renWin AddRenderer ren1
vtkRenderWindowInteractor iren
    iren SetRenderWindow renWin

ren1 AddActor triangulation
ren1 SetBackground 1 1 1
renWin SetSize 250 250
renWin Render

set cam1 [ren1 GetActiveCamera]
$cam1 Zoom 1.5


With it, only visualizate the points and I whish triangulate.

Please, help, and sorry for my English





More information about the vtkusers mailing list