RobWorkProject  23.9.11-
Public Member Functions | List of all members
ConvexHull2D Class Referenceabstract

interface for convexhull calculators on 2d point sets More...

#include <ConvexHull2D.hpp>

Public Member Functions

virtual ~ConvexHull2D ()
 Destructor.
 
virtual void rebuild (const std::vector< rw::math::Vector2D<>> &vertices)=0
 rebuilts the hull More...
 
virtual bool isInside (const rw::math::Vector2D<> &vertex)=0
 test if the given vertex is inside the convex hull
 
virtual double getMinDist (const rw::math::Vector2D<> &vertex)=0
 if the vertex is inside the convex hull the minimum distance to any of the half-spaces of the hull is returned. If its not inside 0 is returned. More...
 
virtual std::vector< rw::math::Vector2D<> > * toContour ()=0
 create a plain trimesh from the hull facets More...
 

Detailed Description

interface for convexhull calculators on 2d point sets

Member Function Documentation

◆ getMinDist()

virtual double getMinDist ( const rw::math::Vector2D<> &  vertex)
pure virtual

if the vertex is inside the convex hull the minimum distance to any of the half-spaces of the hull is returned. If its not inside 0 is returned.

Parameters
vertex
Returns
minimum distance to vertex

◆ rebuild()

virtual void rebuild ( const std::vector< rw::math::Vector2D<>> &  vertices)
pure virtual

rebuilts the hull

Parameters
vertices

◆ toContour()

virtual std::vector<rw::math::Vector2D<> >* toContour ( )
pure virtual

create a plain trimesh from the hull facets

Returns
the hull facets as a plain triangle mesh with normal information

The documentation for this class was generated from the following file: