//
//  Cylinder.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 18/2/21.
//

#ifndef Cylinder_hpp
#define Cylinder_hpp

#include "Vector3D.hpp"

class Mesh;
class Color;


class Cylinder{
  
public:
  const Vector3D _start;
  const Vector3D _end;
  const double   _startRadius;
  const double   _endRadius;

  Cylinder(const Vector3D& start,
           const Vector3D& end,
           const double startRadius,
           const double endRadius):
  _start(start),
  _end(end),
  _startRadius(startRadius),
  _endRadius(endRadius)
  {

  }
  
  Mesh* createMesh(const Color& color,
                   const int nSegments) const;
  
};

#endif
