geolib2
shapes.h
Go to the documentation of this file.
1 #ifndef GEOLIB_SHAPES_H_
2 #define GEOLIB_SHAPES_H_
3 
4 #include "geolib/datatypes.h"
5 
6 #include <vector>
7 
8 namespace geo
9 {
10 
11 void createCylinder(geo::Shape& shape, double radius, double height, unsigned int num_corners = 20);
12 
13 // The points should be in clock-wise order, e.g., [ (-1, 1), (1, 1), (1, -1), (-1, -1) ]
14 void createConvexPolygon(geo::Shape& shape, const std::vector<geo::Vec2>& points, double height);
15 
16 } // end namespace geo
17 
18 #endif
geo
Definition: Box.h:6
vector
datatypes.h
geo::createConvexPolygon
void createConvexPolygon(geo::Shape &shape, const std::vector< geo::Vec2 > &points, double height)
Definition: shapes.cpp:53
geo::createCylinder
void createCylinder(geo::Shape &shape, double radius, double height, unsigned int num_corners=20)
Definition: shapes.cpp:13
geo::Shape
A geometric description of a shape.
Definition: Shape.h:19