<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Malcolm,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm having problems trying to implement your suggestion.&nbsp; </DIV>
<DIV>&nbsp;</DIV>&gt;&gt;One approach would be to run an elevation filter on your 3D map (to create scalar values) and then a &gt;&gt;transform with scale set to 1.0,1.0,0.0 which will set all your z values to 0.0. Then probe this dataset &gt;&gt;with your overlay features (which are at elevation 0.0) and run the output through vtkWarpScalars (to &gt;&gt;apply the sampled elevations to your overlay). The only problem is that sampling will only take place at &gt;&gt;points defined in your overlay dataset and the result may not look good due to non-sampled &gt;&gt;intersections with your 3D map. Adding some extra elevation to your overlay may fix this.<BR>
<DIV>&nbsp;</DIV>
<DIV>I do understand that reconfiguring my 2D shape file to have points located on the edges of my 3d mesh is the best approach, and will attempt this once I get the above working first.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is my pipeline</DIV>
<DIV>&nbsp;</DIV>
<DIV>....</DIV>
<DIV>&nbsp;</DIV>
<DIV>// run the elevation filter to get the elevation scalars</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;vtkElevationFilter *Elevation = vtkElevationFilter::New();<BR>&nbsp;Elevation-&gt;SetInput(Mesh3D);<BR>&nbsp;<BR>&nbsp;//&nbsp;convert our 3d mesh to 2d</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;vtkTransform *Transform = vtkTransform::New();<BR>&nbsp;Transform-&gt;Scale(1.0,1.0,0.0);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;vtkTransformPolyDataFilter *transFilter = vtkTransformPolyDataFilter::New();<BR>&nbsp;transFilter-&gt;SetInput(Mesh);<BR>&nbsp;transFilter-&gt;SetTransform(Transform);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;//&nbsp;probe 2d mesh with shape data</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; vtkProbeFilter *Probe = vtkProbeFilter::New();<BR>&nbsp; &nbsp;Probe-&gt;SetInput(Shape2D);<BR>&nbsp;&nbsp; Probe-&gt;SetSource(trasnFilter-&gt;GetOutput());<BR>&nbsp;&nbsp;&nbsp;</DIV>
<DIV>&nbsp;// apply the sampled elevation to the overlay</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;vtkWarpScalar *Warp = vtkWarpScalar::New();<BR>&nbsp;Warp-&gt;SetInput(Probe-&gt;GetPolyDataOutput());<BR>&nbsp;Warp-&gt;XYPlaneOn();</DIV>
<DIV>&nbsp;</DIV>
<DIV>....</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm confused as to how the elevation filter&nbsp;and warpscalars are working together to get my 2D shape file into 3D?&nbsp; The above pipeline is giving me garbage.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ron</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>