Hello all,<br><br>I&#39;m trying to plot 2D isolines from a PolyDataSet. It works, but now I&#39;m trying to plot the isolines projected on a plane, and not draw on the space. Here&#39;s what I&#39;m doing:<br><br>I set the PolyData with a group of points and scalars:<br>
<br>    PolyData = vtkPolyData::New();<br>    PolyData-&gt;SetPoints(points);<br>    PolyData-&gt;GetPointData()-&gt;SetScalars(scalares);<br><br>Then, create a mesh with Delaunay2D:<br><br>    delaunay2D = vtkDelaunay2D::New();<br>
    delaunay2D-&gt;SetInput(PolyData);<br>    delaunay2D-&gt;Update();<br><br>Everything fine here. So, I try to create the isolines using <br><br>   vtkContourFilter * contour = vtkContourFilter::New();<br>   contour-&gt;SetInputConnection(delaunay2D-&gt;GetOutputPort());<br>
<br>    double range[2];<br>    range[0] = min_scalar;<br>    range[1] = max_scalar;<br>    contour-&gt;GenerateValues(200, range);<br><br><br>    mapper = vtkPolyDataMapper::New();<br>    mapper-&gt;SetInputConnection(contour-&gt;GetOutputPort());<br>
    mapper-&gt;SetScalarRange(min_scalar, max_scalar);<br><br>It works, but the lines are draw in 3D space, not projected on a plane. I would like to project then on a plane. <br>Also, if there is a jump on the values, say, a big difference of values in one area, several isolines are draw on the slope, creating an artificial hole. <br>
<br>Thanks in advance<br><br><br>