Class Delaunay


  • public class Delaunay
    extends java.lang.Object
    Utility functions for doing Delaunay triangulations.
    • Constructor Summary

      Constructors 
      Constructor Description
      Delaunay​(long cPtr, boolean cMemoryOwn)  
    • Constructor Detail

      • Delaunay

        public Delaunay​(long cPtr,
                        boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        public static long getCPtr​(Delaunay obj)
      • delete

        public void delete()
      • triangulate

        public static IndexedTriMeshPtr triangulate​(SWIGTYPE_p_std__vectorT_rw__math__Vector2DT_double_t_t vertices,
                                                    vector_d values)
        Do the Delaunay triangulation of a set of 2D points.

        The border of the triangulation will be the convex hull of the vertices.
        It is possible to attach a value to each of the vertices, which will be
        the third coordinate in the returned 3D triangle mesh.
        If no values are given, the third coordinate will simply be zero.

        Parameters:
        vertices - [in] the set of 2D points to triangulate.
        values - [in] (optional) attach a value to each of the vertices.
        Returns:
        an indexed triangle mesh in 3D, where the first two coordinates
        gives the triangulation and the third coordinate holds corresponding
        values if given.
      • triangulate

        public static IndexedTriMeshPtr triangulate​(SWIGTYPE_p_std__vectorT_rw__math__Vector2DT_double_t_t vertices)
        Do the Delaunay triangulation of a set of 2D points.

        The border of the triangulation will be the convex hull of the vertices.
        It is possible to attach a value to each of the vertices, which will be
        the third coordinate in the returned 3D triangle mesh.
        If no values are given, the third coordinate will simply be zero.

        Parameters:
        vertices - [in] the set of 2D points to triangulate.

        Returns:
        an indexed triangle mesh in 3D, where the first two coordinates
        gives the triangulation and the third coordinate holds corresponding
        values if given.