-
Notifications
You must be signed in to change notification settings - Fork 0
/
Converter.hpp
40 lines (28 loc) · 1.12 KB
/
Converter.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _CONVERTER_H
#define _CONVERTER_H
#include "Mesh.hpp"
#include "GeometricObject.hpp"
#include "Hull.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <math.h>
// might be better to implement this as a namespace with many ifdefs to check for different types
// class to define conversion of objects between other objects
// e.g. Hull to PointCloud, or GeometricModel to Mesh, or StaticMesh to MutableMesh
class Converter{
public:
private:
};
// define the functions that build a mesh from a parametric model
Static_Mesh * build_simple_mesh_2d(parametric_model_2d * model, double res, double xmin, double xmax, double ymin, double ymax, std::vector<double> bg_properties);
//Mesh * build_delaunay_mesh_2d(parametric_model_2d * model, double xmin, double xmax, double ymin, double ymax, double res);
// helpers
void add_shape_to_mesh(Static_Mesh * mesh, geometric_object_2d * shape, parametric_model_2d * model, double res);
Hull * approximate_parametric_shape_2d(geometric_object_2d * model, double res);
#endif