[vtkusers] Delaunay triangulation of point data

Donald S Dunbar dsd at lorax.ca
Tue Jun 10 18:40:03 EDT 2003


Thanks - that works (I said it would be easy).  As a novice, I find one 
of the biggest problems in getting things to work is matching types 
correctly in the pipeline.

On Tuesday, June 10, 2003, at 03:23 PM, Goodwin Lawlor wrote:

> Try:
>
>  vtkUnstructuredGridReader reader
>       reader SetFileName "bathy.vtk"
>
>  vtkDelaunay3D del
>       del SetInput [reader GetOutput]
>       del SetTolerance 0.01
>       del SetAlpha 0.2
>       del BoundingTriangulationOff
>
> HTH
>
> Goodwin
> ----- Original Message -----
> From: "Donald S Dunbar" <dsd at lorax.ca>
> To: "VTK Users" <vtkusers at public.kitware.com>
> Sent: Tuesday, June 10, 2003 10:34 PM
> Subject: [vtkusers] Delaunay triangulation of point data
>
>
>> I'm having trouble doing something very simple:  read ASCII point data
>> from a file, apply Delaunay triangulation, and visualize.  I'm stuck 
>> at
>> the beginning.   I understand that I'm missing a step or two, I just
>> can't seem to figure out how to fix it.  Help appreciated (this should
>> be an easy one).
>>
>> Thanks - Don Dunbar
>>
>> My data looks like this:
>> ==================
>> # vtk DataFile Version 3.0
>> Point data
>> ASCII
>> DATASET UNSTRUCTURED_GRID
>> POINTS 20129 float
>> 491534.14 5460893.29 -1.70
>> 491508.13 5460934.29  0.20
>> (continued)
>>
>> My TCL code looks like this:
>> ======================
>> package require vtk
>> package require vtkinteraction
>> vtkUnstructuredGridReader reader
>>      reader SetFileName "bathy.vtk"
>> vtkPolyData profile
>>      profile SetPoints [reader GetOutput]
>> vtkDelaunay3D del
>>      del SetInput profile
>>      del SetTolerance 0.01
>>      del SetAlpha 0.2
>>      del BoundingTriangulationOff




More information about the vtkusers mailing list