[vtkusers] Reverse vtkWarpScalar

Malcolm Drummond geov at netactive.co.za
Thu Apr 26 12:39:08 EDT 2001


If I understand you correctly you already have a 3d polydata model you want
to convert to 2d. First of all use vtkElevationFilter - this sets scalars to
the elevation value. Then loop through all points, setting the z component
to zero. Finally you can probe this datatset with StructuredPoints or use
vtkShepardMethod to obtain a structured-points dataset. I usually do the
final step in Surfer so I can't give more details - but it should work (you
might not even have to bring all points uop to surface).

Malcolm

----- Original Message -----
From: Brian A. Todd <bat5 at po.cwru.edu>
To: <vtkusers at public.kitware.com>
Sent: Thursday, April 26, 2001 4:40 PM
Subject: [vtkusers] Reverse vtkWarpScalar


>
> Hello vtkusers,
>
> I have generated a vtkPolyData model of a surface and now I want to turn
> it into a 2D elevation map (ie height(i,j)).  Could someone point me
> towards a pipeline that will do this?  I've been spinning my wheels for
> over 24 hours now.
>
> Thanks,
> Brian
>
> PS Please cc me on a reply.  Thanks!
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>





More information about the vtkusers mailing list