<div>Hi,</div>
<div>&nbsp;</div>
<div>I'm having trouble making a simple constrained Delaunay work. Let's say&nbsp;I have a set of points and a single line </div>
<div>connecting two of those points (or a couple of lines, or open polylines) that I use for constraint. Now I make</div>
<div>a vtkPoints object, fill it up with points, I make a vtkCellArray, and if I want to add just one line I'd go:</div>
<div>&nbsp;</div>
<div>CellArray-&gt;InsertNextCell(2); and CellArray-&gt;InsertNextPoint(id1), -&gt;InsertNextPoint(id2), right? Right.</div>
<div>&nbsp;</div>
<div>Now, I make a vtkPolyData, call setPoints with vtkPoints and setPolys with vtkCellArray and set it up</div>
<div>with a vtkDelaunay2D, as in the example constrainedDelaunay.py/.tcl, with SetInput and SetSource.</div>
<div>That doesn't work for some reason, there are as many triangles as there are constraining lines, at </div>
<div>least one provided. If no constraints are applied, the triangulation works perfectly. What's the deal?</div>
<div>&nbsp;</div>
<div>Now I've noticed that, in the example, which works fine, there are 40 points and all of these points are</div>
<div>used for constraints (there are two polyline constraints, one of 12 and one of 28 points)! Ok, so</div>
<div>the first 12 points make the outer rectangle, and the rest form the letters &quot;vtk&quot;. So, what must be done</div>
<div>in order for CDT to work? Must all the points be included in the constraining lines/polylines? I mean,</div>
<div>constrained Delaunay is supposed to work over an arbitrary set of points and a set of lines connecting </div>
<div>these points which should remain in the triangulation.</div>
<div>&nbsp;</div>
<div>Anyone had any experiences with that?</div>
<div>Please help,</div>
<div>Janko Jerinic</div>