29 #ifndef NEMOSYS_CONVEXCONTAINER_H_ 30 #define NEMOSYS_CONVEXCONTAINER_H_ 33 #include "nemosys_export.h" 44 #include <QuickHull.hpp> 45 #include <Structs/Vector3.hpp> 73 return x * p.
x + y * p.
y + z * p.
z;
78 return std::sqrt(x*x + y*y + z*z);
94 std::vector<NEM::MTH::Vector>
v;
132 virtual void setVertex(std::vector<std::vector<double> >& verts);
137 virtual void computeConvexHull();
144 bool isInConvexPoly(
const std::vector<double>& p);
150 void toSTL(std::string file_name)
const;
154 std::vector<quickhull::Vector3<double> >
vrts;
155 quickhull::QuickHull<double>*
qHull;
156 std::vector<Face>
fv;
165 #endif // NEMOSYS_CONVEXCONTAINER_H_
std::vector< NEM::MTH::Vector > v
double dot(Vector p) const
Vector operator-(Vector p) const
std::vector< quickhull::Vector3< double > > vrts
An implementation of convex container object for point The class implements methods to generate a con...
Vector cross(Vector p) const
virtual ~convexContainer()
quickhull::QuickHull< double > * qHull
NEM::MTH::Vector normal() const