5 #ifndef _MGDrawParam_HH_
6 #define _MGDrawParam_HH_
18 #define SURFACE_TOL_BY_CURVE 1.5
60 double curve_tolerance=-1.,
61 double surface_tolerance=-1.,
62 double maximum_edge_length=-1.,
63 double span_length_wire=20,
64 int line_desity_wire_face=1
71 double span_length_wire=20
77 double span_length_wire=20
102 m_maximum_edge_length_tess=maximum_edge_length;};
107 void build_crv_srf_tolerance(
108 double curve_tolerance,
109 double surface_tolerance
113 double m_span_length_wire;
115 int m_line_desity_wire_face;
117 double m_curve_tolerance_tess;
120 double m_surface_tolerance_tess;
122 double m_maximum_edge_length_tess;
void set_maximum_edge_length_tess(double maximum_edge_length)
Definition: drawParam.h:101
void set_span_length(double span_length)
Definition: drawParam.h:100
double compute_curve_tolerance(const MGObject &obj, double span_length)
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
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)
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
Is an abstract class which represents a whole geometry and a topology.
Definition: Object.h:42
MGContext defines the attributes of a document.
Definition: Context.h:33
Defines parameters to draw MGObject, maily to approximate by lines and facets.
Definition: drawParam.h:53
double span_length_wire() const
Definition: drawParam.h:93
double curve_tolerance_tess() const
Definition: drawParam.h:95
double surface_tolerance_tess() const
Definition: drawParam.h:96
double maximum_edge_length_tess() const
Definition: drawParam.h:97
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
void set_line_density(int line_density=1)
Definition: drawParam.h:99
int line_desity_wire_face() const
Definition: drawParam.h:94