Checking

struct Point { 
   int x,y,z; 
};

class Shape{
   std::vector<Point> corners;
public:
   Shape(const std::vector<Point> corners);
   double getVolume();
   double getArea();
   bool   isConvex();
   //etc.
};

Similiar Collections