41 explicit operator const agx::Vec3&()
const {
return projected; }
93 const Point& front()
const;
98 const Point& back()
const;
187 return m_hull[ index ];
192 return m_hull.
front();
197 return m_hull.
back();
202 return m_hull.
size();
207 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.
HullContainer::const_iterator const_iterator
ConvexHull2D(const agx::Vec3Vector &points, const agx::Plane &plane, agx::UInt numSubQuadrangles, const agx::UInt32Vector &flags=agx::UInt32Vector())
Construct given point cloud, plane and number of sub-quadrangles.
const HullContainer & getHull() const
const Point & back() const
const HullContainer & computeHullQuadrangles(const agx::Vec3Vector &points, const agx::Plane &plane, agx::UInt numSubQuadrangles, const agx::UInt32Vector &flags=agx::UInt32Vector())
Computes the convex hull in the given plane using a set of quadrangles.
const Point & front() const
Curve asCurve(agx::Bool closed=true) const
Current hull as a curve object.
const HullContainer & computeHullJarvisMarch(const agx::Vec3Vector &points, const agx::Plane &plane, const agx::UInt32Vector &flags=agx::UInt32Vector())
Computes the convex hull in the given plane using 2D gift wrapping algorithm - Jarvis march.
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.
size_t findPointIndex(const agx::Vec3 &original) const
Searches for the given original point original (i.e., not projected) in this hull.
const_iterator end() const
ConvexHull2D(const agx::Vec3Vector &points, const agx::Plane &plane, const agx::UInt32Vector &flags=agx::UInt32Vector())
Construct given point cloud and a plane.
void rotateOrder(size_t toIndex)
Changing order of the points so that the given toIndex will become the first point.
const_iterator begin() const
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.
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.