MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
TLInputParam.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _mgTLInputParam_HH_
6 #define _mgTLInputParam_HH_
7 
9 
10 class MGIfstream;
11 class MGOfstream;
12 #include "mg/MGCL.h"
13 #include "mg/Object.h"
14 
20 
24 class MG_DLL_DECLR mgTLInputParam{
25 public:
26 
27 friend std::ostream& operator<< (std::ostream& out, const mgTLInputParam& para);
28 
30 friend MGOfstream& operator<< (MGOfstream& buf, const mgTLInputParam& para);
31 friend MGIfstream& operator>> (MGIfstream& buf, mgTLInputParam& para);
32 
34  double crvTol=.15,
35  double surfTol=.2,
36  double max_ratio=2.,
40  int minimum_tri=8,
41  double max_edge_len=-1.
42 );
43 
47  const MGObject& obj,
48  double span_length
49 );
50 
52 
54 double crvTol()const{return m_crvTol;};
55 void set_crvTol(double new_tol){ m_crvTol = new_tol;}
56 
57 double surfTol()const{return m_surfTol;};
58 void set_surfTol(double new_tol){ m_surfTol = new_tol;}
59 
60 double max_ratio()const{return m_max_ratio;};
61 void set_max_ratio(double new_ratio){ m_max_ratio = new_ratio;}
62 
63 MGCL::fan_kind fanKind()const{return m_fk;};
64 void set_fanKind(MGCL::fan_kind new_fan){ m_fk = new_fan;}
65 
66 int minimum_tri()const{return m_minimum_tri;};
67 void set_minimum_tri(int new_tri){ m_minimum_tri = new_tri;}
68 
69 double max_edge_len()const{return m_max_edge_len;};
70 void set_max_edge_len(double new_len){ m_max_edge_len = new_len;}
71 
72 private:
73  double m_crvTol;
74  double m_surfTol;
75  double m_max_ratio;
76  MGCL::fan_kind m_fk;
87  int m_minimum_tri;
88  double m_max_edge_len;
89 };
90  // end of UseTessellation group
92 #endif
void set_minimum_tri(int new_tri)
Definition: TLInputParam.h:67
fan_kind
Tessellation parameter to select fan kind for the tessellation.
Definition: MGCL.h:251
int minimum_tri() const
Definition: TLInputParam.h:66
void set_max_ratio(double new_ratio)
Definition: TLInputParam.h:61
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
A class that contains all the necessary input parameters to make tessellation.
Definition: TLInputParam.h:24
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
double max_ratio() const
Definition: TLInputParam.h:60
Is an abstract class which represents a whole geometry and a topology.
Definition: Object.h:42
double max_edge_len() const
Definition: TLInputParam.h:69
STRIP triangles may cover multiple rectangles.
Definition: MGCL.h:255
MGCL::fan_kind fanKind() const
Definition: TLInputParam.h:63
double surfTol() const
Definition: TLInputParam.h:57
double crvTol() const
Definition: TLInputParam.h:54
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
void set_crvTol(double new_tol)
Definition: TLInputParam.h:55
void set_fanKind(MGCL::fan_kind new_fan)
Definition: TLInputParam.h:64
void set_surfTol(double new_tol)
Definition: TLInputParam.h:58
void set_max_edge_len(double new_len)
Definition: TLInputParam.h:70