MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
BezierMove.h
1 #include "mg/MGCL.h"
2 #include "mg/Position.h"
3 #include "mg/LBRep.h"
4 
6 class MG_DLL_DECLR MGBezierMove{
7 public:
8 
10  const MGLBRep& bezier,
11  bool Divide,
12  double t_pivot
13  );
14 
15  void movePoint(const MGPosition& ToPoint, MGLBRep& mevedBezier);
16 
17 private:
18  const MGLBRep& m_originalBezier;
19  double m_pivot;//移動させる場所を示すm_originalBezierのパラメータ値
20  MGPosition m_pivotP;
21  bool m_closed;
22  int m_index;
23  bool m_divide;//折れとしてよいかどうか, =true:折れとしてよい。
24  bool m_bIsParallel_s, m_bIsParallel_e;//それぞれ始点、終点側が折れているかどうか。
25 
26  //指定された点の前後の方向線が平行か調べる。
27  //return : 平行ではない・前後に点が無い時はfalse, 平行な時はtrue
28  bool isParallel(
29  const MGBPointSeq& bp//=調べる点列
30  , int index//=調べる点のインデックス(0,1,2,・・・,n-1)
31  );
32 };
Bezier curveをつまみ変形するためのclass.
Definition: BezierMove.h:6
MGLBRep is a class for B-SPline representation.
Definition: LBRep.h:41
Represent a positional data.
Definition: Position.h:28
Defines BPoint seq of a space dimension and of a capacity.
Definition: BPointSeq.h:38