ProcAnalyzer.h
Go to the documentation of this file.
1 /*
2 * ==========================================================================
3 *
4 * class: ProcAnalyzer
5 *
6 * This file is part of the implementation of
7 *
8 * <Sustainable Fabrication of Frame Shapes>
9 * Yijiang Huang, Juyong Zhang, Guoxian Song, Zhongyuan Liu, Lei Yu, Ligang Liu
10 * In ACM Transactions on Graphics (Proc. SIGGRAPH Asia 2016)
11 *
12 * Description: This module take charge of output result sequence and associated
13 * printing angles to KUKA robot source code generation Grasshopper file.
14 *
15 * Version: 2.0
16 * Created: Oct/10/2015
17 * Updated: Aug/24/2016
18 *
19 * Author: Guoxian Song, Xin Hu, Yijiang Huang,
20 * Company: GCL@USTC
21 * ==========================================================================
22 */
23 
24 #pragma once
25 
27 
28 using namespace std;
29 
30 struct Process
31 {
32  bool fan_state_;
36  std::vector<GeoV3> normal_;
37 };
38 
40 {
41  public:
42  ProcAnalyzer();
43  ProcAnalyzer(SeqAnalyzer *seqanalyzer, const char *path);
44  ~ProcAnalyzer();
45 
46  bool ProcPrint();
47 
48  private:
49  bool WriteJson();
50 
51  bool IfPointInVector(point p);
52 
53  inline double truncDigits(double v, double scale) { return ((int)(v / scale)*scale); }
54 
55  private:
57  const char* path_;
58 
59  vector<point> exist_point_;
61 
62  vector<Process> process_list_;
63 
64  bool debug_;
65  int support_;
66 };
67 
GLenum GLenum GLenum GLenum GLenum scale
GLsizei const GLchar *const * path
vector< point > exist_point_
Definition: ProcAnalyzer.h:59
vector< Process > process_list_
Definition: ProcAnalyzer.h:62
ExtruderCone extruder_
Definition: ProcAnalyzer.h:60
double truncDigits(double v, double scale)
Definition: ProcAnalyzer.h:53
SeqAnalyzer * ptr_seqanalyzer_
Definition: ProcAnalyzer.h:56
point start_
Definition: ProcAnalyzer.h:34
const GLdouble * v
bool fan_state_
Definition: ProcAnalyzer.h:32
point end_
Definition: ProcAnalyzer.h:35
std::vector< GeoV3 > normal_
Definition: ProcAnalyzer.h:36
const char * path_
Definition: ProcAnalyzer.h:57
GLfloat GLfloat p
int wireframe_id_
Definition: ProcAnalyzer.h:33


choreo_task_sequence_planner
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:03:14