76 std::vector<Vector2> _points;
87namespace CSOPointInPolygon
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
The CSO represents a contour segmentation object.
This class is a helper class used internally by CSOPointInPolygon.
static ProjectedCSO fromPointListAndNormal(const std::vector< Vector3 > &points, const Vector3 &normal)
The same as fromCSO() but with a vector of positions and a normal instead of a CSO.
ProjectedCSO()
Default constructor.
bool contains(const Vector3 &p) const
Checks whether the projected CSO contains the point p.
static ProjectedCSO fromCSO(const CSO *cso)
Projects the given planar CSO cso to one of the 2D planes X-Y, X-Z, Y-Z.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLCSO_EXPORT bool isPointInCSO(CSO *cso, const Vector3 &point)
MLCSO_EXPORT bool isPointInPolygon(const std::vector< Vector3 > &points, const Vector3 &normal, const Vector3 &point)