-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathObject3D.h
More file actions
42 lines (31 loc) · 1.14 KB
/
Object3D.h
File metadata and controls
42 lines (31 loc) · 1.14 KB
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
41
42
//
// Created by Jackson Hall on 4/27/2020.
//
#ifndef PART_2___GRAPHICS_ALTERNATE_OBJECT3D_H
#define PART_2___GRAPHICS_ALTERNATE_OBJECT3D_H
#include "Object.h"
class Object3D : public Object {
public:
/** Constructors */
Object3D();
// Object3D(const std::vector<edge3d>& edges);
Object3D(const std::vector<point3d>& vertices,
const std::vector<edge3d>& edges);
Object3D(std::vector<std::shared_ptr<point3d>> vertices,
std::vector<std::shared_ptr<edge3d>> edges);
/** Getters */
const std::vector<std::shared_ptr<point3d>>& getVertices() const;
const std::vector<std::shared_ptr<edge3d>>& getEdges() const;
/** Other Methods */
/// TODO These methods segfault
// void extrude(const std::vector<double>& direction) override;
// void extrude(const spatialVector& direction) override;
void draw(const Camera3D& camera3d, const Camera4D& camera4d) const
override;
protected:
/** Fields */
std::vector<std::shared_ptr<point3d>> vertices;
// Pairs between the points in the object
std::vector<std::shared_ptr<edge3d>> edges;
};
#endif //PART_2___GRAPHICS_ALTERNATE_OBJECT3D_H