MGCL V10
V10
MGCL V10
|
Defines parameters to draw MGObject, maily to approximate by lines and facets. [詳解]
公開メンバ関数 | |
MGDrawParam (double curve_tolerance=-1., double surface_tolerance=-1., double maximum_edge_length=-1., double span_length_wire=20, int line_desity_wire_face=1) | |
MGDrawParam (const MGObject &obj, double span_length_wire=20) | |
Construct from a object(box) data and the span length to draw object. [詳解] | |
MGDrawParam (const MGContext &contx, double span_length_wire=20) | |
Constructor. [詳解] | |
MGDrawParam (const mgTLInputParam &tlpara) | |
Conversion constructor. [詳解] | |
double | span_length_wire () const |
int | line_desity_wire_face () const |
double | curve_tolerance_tess () const |
double | surface_tolerance_tess () const |
double | maximum_edge_length_tess () const |
void | set_line_density (int line_density=1) |
void | set_span_length (double span_length) |
void | set_maximum_edge_length_tess (double maximum_edge_length) |
フレンド | |
MG_DLL_DECLR friend std::ostream & | operator<< (std::ostream &out, const MGDrawParam ¶) |
MG_DLL_DECLR friend MGOfstream & | operator<< (MGOfstream &buf, const MGDrawParam ¶) |
MG_DLL_DECLR friend MGIfstream & | operator>> (MGIfstream &buf, MGDrawParam ¶) |
Defines parameters to draw MGObject, maily to approximate by lines and facets.
(1) m_span_length_wire: Used for the approximation of a curve by a polyline. m_span_length_wire is the maximum length of the one line segment of the polyline. (2) m_line_desity_wire_face: Used for the approximation of a surface by polylines. All of the curves(boundary or inner lines) are approximated by m_span_length_wire. And m_line_desity_wire_face indicates how many wires be drawn for the inner lines of the wire representation of the face. (3) m_curve_tolerance: The maximum deviation from a curve allowed for the tessellaiton of a surface. The length of the one line segment of this approximation is limitted by m_maximum_edge_length. (4) m_surface_tolerance: The maximum deviation allowed of a traiangle from surfaces forn the tessellation. (5) m_maximum_edge_length: The maximum length of a triangle of the tessellation.
The minimum parameter to construct MGDrawParam object is m_line_desity_wire_face. All of the other parameters can be derived from objects to draw and m_line_desity_wire_face.
MGDrawParam::MGDrawParam | ( | double | curve_tolerance = -1. , |
double | surface_tolerance = -1. , |
||
double | maximum_edge_length = -1. , |
||
double | span_length_wire = 20 , |
||
int | line_desity_wire_face = 1 |
||
) |
curve_tolerance | Maximum deviation allowed to approximate curves. |
surface_tolerance | Maximum deviation allowed to approximate surfaces. |
maximum_edge_length | Maximum edge length for the tessellation. |
span_length_wire | length of a line segment to approximate curves. |
line_desity_wire_face | Indicates how many wires be drawn for the inner lines of the wire representation of the face. |
MGDrawParam::MGDrawParam | ( | const MGObject & | obj, |
double | span_length_wire = 20 |
||
) |
Construct from a object(box) data and the span length to draw object.
obj | Target object to get box. |
span_length_wire | span length. |
MGDrawParam::MGDrawParam | ( | const MGContext & | contx, |
double | span_length_wire = 20 |
||
) |
Constructor.
contx | Context to get from. |
span_length_wire | span length. |
MGDrawParam::MGDrawParam | ( | const mgTLInputParam & | tlpara | ) |
Conversion constructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |