MGCL V10
V10
MGCL V10
|
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 ¶) |
MGOfstream & | operator<< (MGOfstream &buf, const mgTLInputParam ¶) |
Serialization fucntion. [詳解] | |
MGIfstream & | operator>> (MGIfstream &buf, mgTLInputParam ¶) |
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 | 最大アスペクト比 |
fk | fk=SINGLE_TRIANGLE: 1 triangle/FAN fk=MULTIPLE_TRIANGLES: as many triangles as possible/FAN |
minimum_tri | Specify minimum number of triangles. |
max_edge_len | when 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().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
Serialization fucntion.
|
friend |