40 explicit operator const agx::Vec3&()
const {
return projected; }
83 const Point& front()
const;
88 const Point& back()
const;
156 return m_hull[ index ];
161 return m_hull.
front();
166 return m_hull.
back();
171 return m_hull.
size();
176 return m_hull.
begin();
#define AGXPHYSICS_EXPORT
Utility class to create a convex hull in a plane given point cloud.
const Point & operator[](agx::UInt index) const
Access hull points of given index.
ConvexHull2D(const agx::Vec3Vector &points, const agx::Plane &plane)
Construct given point cloud and a plane.
HullContainer::const_iterator const_iterator
const HullContainer & getHull() const
ConvexHull2D(const agx::Vec3Vector &points, const agx::Plane &plane, agx::UInt numSubQuadrangles)
Construct given point cloud, plane and number of sub-quadrangles.
const HullContainer & computeHullQuadrangles(const agx::Vec3Vector &points, const agx::Plane &plane, agx::UInt numSubQuadrangles)
Computes the convex hull in the given plane using a set of quadrangles.
const Point & back() const
const Point & front() const
Curve asCurve(agx::Bool closed=true) const
Current hull as a curve object.
agx::Real calculateArea() const
Calculates the area of the hull - if the hull is present.
agx::Real calculatePerimeter() const
Computes the perimeter of the hull - if the hull is present.
const_iterator end() const
const_iterator begin() const
const HullContainer & computeHullJarvisMarch(const agx::Vec3Vector &points, const agx::Plane &plane)
Computes the convex hull in the given plane using 2D gift wrapping algorithm - Jarvis march.
ConvexHull2D()
Default constructor.
Utility class curve defined by a set of points.
Class representing the mathematical concept of a plane, also called a half- space.
const Point * const_iterator
The agxUtil namespace contain classes and methods for utility functionality.
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Point in hull containing the point projected onto the plane and the original point.
agx::Vec3 original
Original point.
agx::Vec3 projected
Hull point projected onto the given plane.
Segment data with begin and end point.