Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Natural Neighbor Interpolation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Natural Neighbor Interpolation


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Natural Neighbor Interpolation
  • Date: Fri, 19 Apr 2013 09:40:34 +0200
  • Organization: GeometryFactory

If you need to store the z coordinates, you can use the projection_traits, which turn a 3D point into a 2D one [1,2].

Note that the z coordinate does not need to be stored in the point, it
is just a matter of how you display or use your result then. For example
in this example [3], it is stored in a map.

Sebastien.

[1] http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_2/Chapter_main.html#Subsection_37.5.2

[2] http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Kernel_23_ref/Class_Projection_traits_xy_3.html

[3] http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Interpolation/Chapter_main.html#Subsection_70.3.3

On 04/16/2013 07:15 AM, Rhys D wrote:
In your Google tech talk you showed an example of a Japanese weather map
where they interpolated randomly sampled (in 2D) temperatures onto a
random grid.

Is there a sample that shows how I would do this?

I'm not quite following the sample in the docs.
I see where you set the X Y coords of the input and query points. I
don't see where you set the "z" values of each point.

regards,

Rhys.




Archive powered by MHonArc 2.6.18.

Top of Page