[vtkusers] Mesh regions

Jing Li jli023 at cs.auckland.ac.nz
Wed May 19 20:49:47 EDT 2010

Hi all, 


I use vtkDelaunay2D to make a constrained triangulation mesh from a set of
points  and a set of polylines (see attached image). I need to mark the mesh
into different regions, such as using red to render the triangles of a
region inside a contour, and using blue to render the triangles of a region
between two contours. 


My question is how to divide the mesh into regions by the constrained


Here is part of my code:


this->terrainRawData->InsertNextCell(VTK_POLY_LINE, cellIdList); // the
cellIdList represents a polyline



vtkSmartPointer<vtkPolyData> aPolyData =



vtkSmartPointer<vtkDelaunay2D> delaunay2D =

      delaunay2D->SetInput( aPolyData );

      delaunay2D->SetSource( this->terrainRawData );


      this->terrainTri = delaunay2D->GetOutput();


Thank you very much, 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100520/1aa125bc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constrainedMeshjpg.jpg
Type: image/jpeg
Size: 110098 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100520/1aa125bc/attachment.jpg>

More information about the vtkusers mailing list