<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> </DIV>
<DIV>I'm having problems trying to implement your suggestion. </DIV>
<DIV> </DIV>>>One approach would be to run an elevation filter on your 3D map (to create scalar values) and then a >>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 >>with your overlay features (which are at elevation 0.0) and run the output through vtkWarpScalars (to >>apply the sampled elevations to your overlay). The only problem is that sampling will only take place at >>points defined in your overlay dataset and the result may not look good due to non-sampled >>intersections with your 3D map. Adding some extra elevation to your overlay may fix this.<BR>
<DIV> </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> </DIV>
<DIV>Here is my pipeline</DIV>
<DIV> </DIV>
<DIV>....</DIV>
<DIV> </DIV>
<DIV>// run the elevation filter to get the elevation scalars</DIV>
<DIV> </DIV>
<DIV> vtkElevationFilter *Elevation = vtkElevationFilter::New();<BR> Elevation->SetInput(Mesh3D);<BR> <BR> // convert our 3d mesh to 2d</DIV>
<DIV> </DIV>
<DIV> vtkTransform *Transform = vtkTransform::New();<BR> Transform->Scale(1.0,1.0,0.0);</DIV>
<DIV> </DIV>
<DIV> vtkTransformPolyDataFilter *transFilter = vtkTransformPolyDataFilter::New();<BR> transFilter->SetInput(Mesh);<BR> transFilter->SetTransform(Transform);</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> // probe 2d mesh with shape data</DIV>
<DIV> </DIV>
<DIV> vtkProbeFilter *Probe = vtkProbeFilter::New();<BR> Probe->SetInput(Shape2D);<BR> Probe->SetSource(trasnFilter->GetOutput());<BR> </DIV>
<DIV> // apply the sampled elevation to the overlay</DIV>
<DIV> </DIV>
<DIV> vtkWarpScalar *Warp = vtkWarpScalar::New();<BR> Warp->SetInput(Probe->GetPolyDataOutput());<BR> Warp->XYPlaneOn();</DIV>
<DIV> </DIV>
<DIV>....</DIV>
<DIV> </DIV>
<DIV>I'm confused as to how the elevation filter and warpscalars are working together to get my 2D shape file into 3D? The above pipeline is giving me garbage.</DIV>
<DIV> </DIV>
<DIV>Ron</DIV>
<DIV> </DIV></BODY></HTML>