/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ #ifndef _mgTLInputParam_HH_ #define _mgTLInputParam_HH_ //////////// class MGIfstream; class MGOfstream; #include "mg/MGCL.h" #include "mg/Object.h" /** @file */ /** @addtogroup UseTessellation * @{ */ ///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. class MG_DLL_DECLR mgTLInputParam{ public: friend std::ostream& operator<< (std::ostream& out, const mgTLInputParam& para); /// Serialization fucntion. friend MGOfstream& operator<< (MGOfstream& buf, const mgTLInputParam& para); friend MGIfstream& operator>> (MGIfstream& buf, mgTLInputParam& para); mgTLInputParam( double crvTol=.15, ///<バウンダリのトレランス double surfTol=.2, ///<平面とみなすトレランス double max_ratio=2., ///<最大アスペクト比 MGCL::fan_kind fk=MGCL::MULTIPLE_TRIANGLES, ///