Package org.robwork.sdurw_geometry
Class Delaunay
- java.lang.Object
-
- org.robwork.sdurw_geometry.Delaunay
-
public class Delaunay extends java.lang.Object
Utility functions for doing Delaunay triangulations.
-
-
Constructor Summary
Constructors Constructor Description Delaunay(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(Delaunay obj)
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.
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.
-
-
-
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.
-
-