MGCL V10
V10
MGCL V10
|
名前空間 | |
MGCL | |
クラス | |
class | MGBox |
Defines a Box of any space dimendion. [詳解] | |
class | MGBPointSeq |
Defines BPoint seq of a space dimension and of a capacity. [詳解] | |
class | MGDefault |
Defines default values of each class. [詳解] | |
class | MGDrawParam |
Defines parameters to draw MGObject, maily to approximate by lines and facets. [詳解] | |
class | MGEReal |
MGEReal is extended real number to define infinity. [詳解] | |
class | MGInterval |
Interval of 1 dimension, i.e. MGInterval is a real line. [詳解] | |
class | MGKnot |
Defines knot value and its multiplicity. [詳解] | |
class | MGKnotArray |
Defines Array of Knots. [詳解] | |
class | MGKnotVector |
Defines Knot vector of B-Representation. [詳解] | |
class | MGMatrix |
MGMatrix is a matix of m by m, where m is the space dimension. [詳解] | |
class | MGNDDArray |
Defines non-decreasing double data array. [詳解] | |
class | MGPlist< T > |
Defines List of newed object pointers. [詳解] | |
class | MGPosition |
Represent a positional data. [詳解] | |
class | MGPvector< T > |
Defines Vector of newed object pointers. [詳解] | |
class | MGSPointSeq |
Defines Spoint seq of a space dimension and of a size. [詳解] | |
class | MGTolerance |
MGTolerance is a class to hold various tolerance data used in MGCL. [詳解] | |
class | MGTransf |
MGTransf represents a transformation of a space dimension. [詳解] | |
class | MGUnit_vector |
Define a unit vector, is a MGVector. [詳解] | |
class | MGVector |
Vector of a general n space dimension. [詳解] | |
マクロ定義 | |
#define | MG_MAX_TOL_STACK_SIZE 10 |
関数 | |
double | compute_curve_tolerance (const MGObject &obj, double span_length) |
MG_DLL_DECLR MGVector | operator* (const MGVector &v, const MGMatrix &m) |
MG_DLL_DECLR MGVector & | operator*= (MGVector &v, const MGMatrix &m) |
MG_DLL_DECLR MGUnit_vector & | operator*= (MGUnit_vector &v, const MGMatrix &) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGINTERVAL_TYPE rel) |
Dbug function. デバッグ関数 [詳解] | |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGPSRELATION rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGCURVE_TYPE rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGELLIPSE_TYPE rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGSTRAIGHT_TYPE rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGSURFACE_TYPE rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGCCRELATION rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGCSRELATION rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGSSRELATION rel) |
MG_DLL_DECLR std::ostream & | operator<< (std::ostream &out, MGENDCOND rel) |
template<class T > | |
std::ostream & | operator<< (std::ostream &out, const MGPlist< T > &lst) |
MG_DLL_DECLR bool | is_collinear (const MGPosition &P1, const MGPosition &P2, const MGPosition &P3) |
Test if P1, P2, and P3 are on a single straight line. [詳解] | |
template<class T > | |
std::ostream & | operator<< (std::ostream &out, const MGPvector< T > &vector) |
MG_DLL_DECLR double | MGAngle (double ca, double) |
Compute radian angle from cosine and sine value. [詳解] | |
MGUnit_vector | UnitNormal (const MGPosition &P0, const MGPosition &P1, const MGPosition &P2) |
MGPlist< T >::~MGPlist () | |
Destroy the object and delete all pointers that this holds. [詳解] | |
MGPlist< T > & | MGPlist< T >::operator= (const MGPlist< T > &rhs) |
operator overload [詳解] | |
MGPvector< T >::~MGPvector () | |
Destroy the object and delete all pointers that this object holds. [詳解] | |
MGPvector< T > & | MGPvector< T >::operator= (const MGPvector< T > &rhs) |
void | MGPvector< T >::resize (size_type n) |
#define MG_MAX_TOL_STACK_SIZE 10 |
enum MGCL::fan_kind |
Tessellation parameter to select fan kind for the tessellation.
enum MGCCRELATION |
enum MGCSRELATION |
Relation of curve and surface(曲線と曲面の交点の関係).
enum MGCURVE_TYPE |
Curve type(曲線の種類).
列挙値 | |
---|---|
MGCURVE_UNKNOWN |
Unkown. 不明 |
MGCURVE_STRAIGHT | |
MGCURVE_ELLIPSE | |
MGCURVE_SPLINE |
B-Spline(MGLBRep). スプライン |
MGCURVE_RSPLINE |
B-Spline(MGRLBRep) |
MGCURVE_SURFACE | |
MGCURVE_TRIMMED | |
MGCURVE_COMPOSITE | |
MGCURVE_USER1 |
Auxiliary curve type 1. |
MGCURVE_USER2 |
Auxiliary curve type 2. |
MGCURVE_BSUM |
Boolean sum curve. |
enum MGELLIPSE_TYPE |
enum MGENDCOND |
enum MGINFINITE_TYPE |
enum MGINTERVAL_TYPE |
MGInterval type.
enum MGPSRELATION |
Relation type of plane and stright line. (Plane vs Plane, Plane vs S.Line, S.Line vs S.Line)
enum MGSSRELATION |
enum MGSTRAIGHT_TYPE |
enum MGSURFACE_TYPE |
Surface type(曲面の種類).
enum mgTESTRIANG |
enum MGCL::TL_DATA_KIND |
enum MGCL::VIEWMODE |
double compute_curve_tolerance | ( | const MGObject & | obj, |
double | span_length | ||
) |
obj | Target object |
span_length | Span length of MGOpenglView. |
MG_DLL_DECLR bool is_collinear | ( | const MGPosition & | P1, |
const MGPosition & | P2, | ||
const MGPosition & | P3 | ||
) |
Test if P1, P2, and P3 are on a single straight line.
Function's return value is true if the three points are on a straight, false if not.
MG_DLL_DECLR double MGAngle | ( | double | ca, |
double | |||
) |
Compute radian angle from cosine and sine value.
Function's return value is angle in radian, from zero to 2PAI. sine value
ca | cosine value |
マトリックスによるベクトルの変換を行いオブジェクトを生成 Matrix transformation of the vector.
マトリックスによるベクトルの変換を行い自身のベクトルとする Matrix transformation of the vector.
MG_DLL_DECLR MGUnit_vector& operator*= | ( | MGUnit_vector & | v, |
const MGMatrix & | |||
) |
マトリックスによるベクトルの変換を行い自身のベクトルとする Update own vector by matrix transformation. The result is unit of transformed vector.
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGINTERVAL_TYPE | rel | ||
) |
Dbug function. デバッグ関数
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGPSRELATION | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGCURVE_TYPE | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGELLIPSE_TYPE | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGSTRAIGHT_TYPE | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGSURFACE_TYPE | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGCCRELATION | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGCSRELATION | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGSSRELATION | rel | ||
) |
MG_DLL_DECLR std::ostream& operator<< | ( | std::ostream & | out, |
MGENDCOND | rel | ||
) |
std::ostream& operator<< | ( | std::ostream & | out, |
const MGPlist< T > & | lst | ||
) |
std::ostream& operator<< | ( | std::ostream & | out, |
const MGPvector< T > & | vector | ||
) |
operator overload
assignment operator The argument rhs will be empty after assignment, and transfer the ownership of all pointers to this object. 代入演算子 所有権はすべて、新しいオブジェクトに移るので rhsは空になります)
もとのデータをクリア
代入する。
代入元をクリア
assignment operator The argument rhs will be empty after assignment, and transfer the ownership of all pointers to this object. 代入演算子 所有権はすべて、新しいオブジェクトに移るので rhsのすべての要素はNULLになります。(sizeは変わりません)
もとのデータをクリア
代入する。
代入元をクリア
Resize the vector. When size is enlarged, enlarged part will contain null pointer.
MGUnit_vector UnitNormal | ( | const MGPosition & | P0, |
const MGPosition & | P1, | ||
const MGPosition & | P2 | ||
) |
Get the unit normal of the triangle (P0, P1, P2). UnitNormal(P0,P1,P2)=-UnitNormal(P0,P2,P1). (V1,V2,UnitNOrmal) organizes orthonormal system, wher V1=P1-P0, V2=P2-P1.
Destroy the object and delete all pointers that this holds.
Destructor
Destroy the object and delete all pointers that this object holds.
Implementation.
MG_DLL_DECLR const char* _MGCL_FILE |
MG_DLL_DECLR const char* _MGCL_VER |
MG_DLL_DECLR const MGAbstractGel mgAll_0Manifold |
MG_DLL_DECLR const MGAbstractGel mgAll_1Manifold |
MG_DLL_DECLR const MGAbstractGel mgAll_2Manifold |
MG_DLL_DECLR const MGAbstractGel mgAll_Attrib |
MG_DLL_DECLR const MGAbstractGel mgAll_BVertex |
MG_DLL_DECLR const MGAbstractGel mgAll_CompositeCurve |
MG_DLL_DECLR const MGAbstractGel mgAll_Curve |
MG_DLL_DECLR const MGAbstractGel mgAll_Cylinder |
MG_DLL_DECLR const MGAbstractGel mgAll_Edge |
MG_DLL_DECLR const MGAbstractGel mgAll_Ellipse |
MG_DLL_DECLR const MGAbstractGel mgAll_Face |
MG_DLL_DECLR const MGAbstractGel mgAll_FSurface |
MG_DLL_DECLR const MGAbstractGel mgAll_Gell |
MG_DLL_DECLR const MGAbstractGel mgAll_Geo |
MG_DLL_DECLR const MGAbstractGel mgAll_Group |
MG_DLL_DECLR const MGAbstractGel mgAll_LBRep |
MG_DLL_DECLR const MGAbstractGel mgAll_Loop |
MG_DLL_DECLR const MGAbstractGel mgAll_Object |
MG_DLL_DECLR const MGAbstractGel mgAll_Plane |
MG_DLL_DECLR const MGAbstractGel mgAll_Point |
MG_DLL_DECLR const MGAbstractGel mgAll_PVertex |
MG_DLL_DECLR const MGAbstractGel mgAll_RLBRep |
MG_DLL_DECLR const MGAbstractGel mgAll_RSBRep |
MG_DLL_DECLR const MGAbstractGel mgAll_SBRep |
MG_DLL_DECLR const MGAbstractGel mgAll_Shell |
MG_DLL_DECLR const MGAbstractGel mgAll_SPhere |
MG_DLL_DECLR const MGAbstractGel mgAll_STL |
MG_DLL_DECLR const MGAbstractGel mgAll_Straight |
MG_DLL_DECLR const MGAbstractGel mgAll_Surface |
MG_DLL_DECLR const MGAbstractGel mgAll_SurfCurve |
MG_DLL_DECLR const MGAbstractGel mgAll_Topo |
MG_DLL_DECLR const MGAbstractGel mgAll_TrimmedCurve |
const double mgDBLPAI = mgPAI*2. |
2.0 * π 値の設定
MG_DLL_DECLR const MGBox mgEMP_BOX |
MG_DLL_DECLR const MGBox mgEMP_BOX_2D |
MG_DLL_DECLR const MGInterval mgEMP_INTERV |
mgHALFPAI = mgPAI/2. |
π/2 値の設定
MG_DLL_DECLR const MGTransf mgID_TRANSF |
MG_DLL_DECLR const MGTransf mgID_TRANSF_2D |
MG_DLL_DECLR const MGKnotVector mgINFINITE_KNOT_VECTOR |
const double mgInfiniteVal = 1.e+20 |
Infinite value Definition. This value is used in MGEReal class to identify infinite value of double.
MG_DLL_DECLR const MGBox mgNULL_BOX |
MG_DLL_DECLR const MGKnotVector mgNULL_KNOT_VECTOR |
MG_DLL_DECLR const MGMatrix mgNULL_MATR |
MG_DLL_DECLR const MGTransf mgNULL_TRANSF |
const double mgPAI = 3.1415926535897932384626433833 |
π 値の設定
MG_DLL_DECLR const MGMatrix mgUNIT_MATR |
MG_DLL_DECLR const MGMatrix mgUNIT_MATR_2D |
MG_DLL_DECLR const MGInterval mgZERO_TO_DBLPAI |