ed
Namespaces | Functions
shape_loader.h File Reference
#include <geolib/datatypes.h>
#include <geolib/Mesh.h>
#include <geolib/Shape.h>
#include <cmath>
#include <map>
Include dependency graph for shape_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ed
 
 ed::models
 

Functions

void ed::models::createCylinder (geo::Shape &shape, double radius, double height, int num_corners=12)
 createCylinder create a mesh from radius and height More...
 
void ed::models::createSphere (geo::Shape &shape, double radius, uint recursion_level=2)
 createSphere Create a shape of sphere More...
 
uint ed::models::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 double points. The new point is placed on the radius of the sphere. More...