-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimModelGen2d.h
More file actions
36 lines (29 loc) · 1.1 KB
/
simModelGen2d.h
File metadata and controls
36 lines (29 loc) · 1.1 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
#ifndef SIMMODELGEN2D_H
#define SIMMODELGEN2D_H
#include "MeshSim.h"
#include "SimAdvModel.h"
#include "SimDisplay.h"
#include "SimInfo.h"
#include "SimModel.h"
#include "SimUtil.h"
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#include "modelGen2d.h"
struct ModelTopo {
std::vector<pGVertex> vertices;
std::vector<pGEdge> edges;
std::vector<pGFace> faces;
std::vector<pGEdge> faceEdges; // the array of edges connected to the face
std::vector<int> faceDirs; // the direction of the edge with respect to the face
pGRegion region;
pGIPart part;
pGModel model;
};
void createEdges(ModelTopo& mdlTopo, GeomInfo& geom, PointClassification& ptClass, SplineInterp::SplineInfo& splines, std::vector<int>& isPtOnCurve, std::vector<int>& isMdlVtx, const bool debug=false);
void createFace(ModelTopo& mdlTopo, PlaneBounds& planeBounds, bool debug=false);
void createFaces(ModelTopo& mdlTopo, PlaneBounds& planeBounds, bool debug=false);
void printModelInfo(pGModel model);
void createMesh(ModelTopo mdlTopo, std::string& meshFileName, pProgress progress, bool debug=false);
#endif