My Project
helperfunctions.h
Go to the documentation of this file.
1 #ifndef HELPERFUNCTIONS_H
2 #define HELPERFUNCTIONS_H
3 
4 #include "basicComponents.h"
5 #include "complexComponents.h"
6 #include<vector>
7 #include<set>
8 
10 Vertice transform(Vertice v_in,double Xrot,double Yrot,double Zrot,double Xoff,double Yoff,double Zoff);
11 
13 pair<int,Vertice> get_intersection(Edge a, Edge b);
14 
16 bool is_inside(Vertice v, set<Edge> edgeSet);
17 
18 bool isSubset(vector<int> & a, vector<int> & b);
19 
21 int verticePresent(vector<Vertice> & a, Vertice b);
22 
25 
26 #endif // HELPERFUNCTIONS_H
int verticePresent(vector< Vertice > &a, Vertice b)
Checks if a vertice is present in a vector of vertices.
Definition: helperfunctions.cpp:204
Vertice transform(Vertice v_in, double Xrot, double Yrot, double Zrot, double Xoff, double Yoff, double Zoff)
Transforms a vertice (rotation and offset) using matrix multiplication and returns a new Vertice obje...
Definition: helperfunctions.cpp:14
bool isSubset(vector< int > &a, vector< int > &b)
Definition: helperfunctions.cpp:196
Definition: basicComponents.h:71
bool is_inside(Vertice v, set< Edge > edgeSet)
Checks whether a vertice is inside (in 2d) of a face formed by an edge loop.
Definition: helperfunctions.cpp:154
Definition: complexComponents.h:24
Definition: basicComponents.h:9
pair< int, Vertice > get_intersection(Edge a, Edge b)
Finds intersection of two edges (line segments) and also returns error if intersection does not exist...
Definition: helperfunctions.cpp:51
WireFrame modifyWireframe(WireFrame wf, Vertice v)
Takes a wireframe and subtracts coordinates of v from all its edge vertices.
Definition: helperfunctions.cpp:218