MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
mgTLInputParam クラス

A class that contains all the necessary input parameters to make tessellation. [詳解]

公開メンバ関数

 mgTLInputParam (double crvTol=.15, double surfTol=.2, double max_ratio=2., MGCL::fan_kind fk=MGCL::MULTIPLE_TRIANGLES, int minimum_tri=8, double max_edge_len=-1.)
 
 mgTLInputParam (const MGObject &obj, double span_length)
 
double crvTol () const
 
void set_crvTol (double new_tol)
 
double surfTol () const
 
void set_surfTol (double new_tol)
 
double max_ratio () const
 
void set_max_ratio (double new_ratio)
 
MGCL::fan_kind fanKind () const
 
void set_fanKind (MGCL::fan_kind new_fan)
 
int minimum_tri () const
 
void set_minimum_tri (int new_tri)
 
double max_edge_len () const
 
void set_max_edge_len (double new_len)
 

フレンド

std::ostream & operator<< (std::ostream &out, const mgTLInputParam &para)
 
MGOfstreamoperator<< (MGOfstream &buf, const mgTLInputParam &para)
 Serialization fucntion. [詳解]
 
MGIfstreamoperator>> (MGIfstream &buf, mgTLInputParam &para)
 

詳解

A class that contains all the necessary input parameters to make tessellation.

This is used to construct mgTLData(the tessellation of a surface), or for other parameter for tessellation.

構築子と解体子

mgTLInputParam::mgTLInputParam ( double  crvTol = .15,
double  surfTol = .2,
double  max_ratio = 2.,
MGCL::fan_kind  fk = MGCL::MULTIPLE_TRIANGLES,
int  minimum_tri = 8,
double  max_edge_len = -1. 
)
引数
crvTolバウンダリのトレランス
surfTol平面とみなすトレランス
max_ratio最大アスペクト比
fkfk=SINGLE_TRIANGLE: 1 triangle/FAN fk=MULTIPLE_TRIANGLES: as many triangles as possible/FAN
minimum_triSpecify minimum number of triangles.
max_edge_lenwhen max_edge_len<=0, this means no limits on an edge length.
mgTLInputParam::mgTLInputParam ( const MGObject obj,
double  span_length 
)

Construct from the object box data and the span length to draw object. span_length=MGOpenGLView::span_length().

関数詳解

double mgTLInputParam::crvTol ( ) const
inline
MGCL::fan_kind mgTLInputParam::fanKind ( ) const
inline
double mgTLInputParam::max_edge_len ( ) const
inline
double mgTLInputParam::max_ratio ( ) const
inline
int mgTLInputParam::minimum_tri ( ) const
inline
void mgTLInputParam::set_crvTol ( double  new_tol)
inline
void mgTLInputParam::set_fanKind ( MGCL::fan_kind  new_fan)
inline
void mgTLInputParam::set_max_edge_len ( double  new_len)
inline
void mgTLInputParam::set_max_ratio ( double  new_ratio)
inline
void mgTLInputParam::set_minimum_tri ( int  new_tri)
inline
void mgTLInputParam::set_surfTol ( double  new_tol)
inline
double mgTLInputParam::surfTol ( ) const
inline

フレンドと関連関数の詳解

std::ostream& operator<< ( std::ostream &  out,
const mgTLInputParam para 
)
friend
MGOfstream& operator<< ( MGOfstream buf,
const mgTLInputParam para 
)
friend

Serialization fucntion.

MGIfstream& operator>> ( MGIfstream buf,
mgTLInputParam para 
)
friend

このクラス詳解は次のファイルから抽出されました: