ed
shape_loader.h
Go to the documentation of this file.
1 #ifndef ED_MODELS_SHAPE_LOADER_H_
2 #define ED_MODELS_SHAPE_LOADER_H_
3 
4 #include <geolib/datatypes.h>
5 #include <geolib/Mesh.h>
6 #include <geolib/Shape.h>
7 
8 #include <cmath>
9 #include <map>
10 
11 namespace ed
12 {
13 
14 namespace models
15 {
16 
17 
25 void createCylinder(geo::Shape& shape, double radius, double height, int num_corners = 12);
26 
37 uint getMiddlePoint(geo::Mesh& mesh, uint i1, uint i2, std::map<unsigned long, uint> cache, double radius);
38 
45 void createSphere(geo::Shape& shape, double radius, uint recursion_level = 2);
46 
47 } // end namespace models
48 
49 } // end namespace ed
50 
51 #endif
datatypes.h
Shape.h
cmath
ed::models::getMiddlePoint
uint getMiddlePoint(geo::Mesh &mesh, uint i1, uint i2, std::map< unsigned long, uint > cache, double radius)
getMiddlePoint Gets the middle point of two points in a mesh of a sphere. Uses a cache to not create ...
Definition: shape_loader.cpp:924
map
Mesh.h
ed::models::createCylinder
void createCylinder(geo::Shape &shape, double radius, double height, int num_corners=12)
createCylinder create a mesh from radius and height
Definition: shape_loader.cpp:884
ed::models::createSphere
void createSphere(geo::Shape &shape, double radius, uint recursion_level=2)
createSphere Create a shape of sphere
Definition: shape_loader.cpp:953
ed
Definition: convex_hull.h:8
geo::Mesh
geo::Shape