|
MG_DLL_DECLR int | MGRLBRep_ellipse_weight (const MGPosition &P0, const MGVector &T0, const MGPosition &P, const MGPosition &P2, const MGVector &T2, MGPosition &P1, double &w1) |
|
int MG_DLL_DECLR | construct_perimeters (const MGPvector< MGCurve > &peris, MGPvector< MGLBRep > &perimeters2) |
|
MG_DLL_DECLR void | bool_sum (const MGCurve *edge_crvl[4], const MGSBRepTP &tp, int &error, MGSBRep &surf) |
| construct boolean sum surface from the four perimeters and their tangent planes. [詳解]
|
|
MG_DLL_DECLR void | bool_sum (const MGCurve *edge_crvl[4], MGSBRepVecTP &vectp, int &error, MGSBRep &surf) |
|
MGGeometry is top abstract class for MGPoint, MGCurve, and MGSurface.
construct boolean sum surface from the four perimeters and their tangent planes.
- 引数
-
edge_crvl | 境界線リスト(vmin,umax,vmax,uminの順,辺番号0,1,2,3の順) |
tp | 接続面(パラメータ範囲は境界線と同じ) |
error | エラーコード |
surf | Constructed surf will be output. |
- 引数
-
edge_crvl | 境界線リスト(vmin,umax,vmax,uminの順,辺番号0,1,2,3の順) |
vectp | 接続面(パラメータ範囲は境界線と同じ) |
error | エラーコード |
surf | Constructed surf will be output. |
Construct 4 perimeters, given at least two of the four. Input perimeters may have different knot configuration. In this case they will be updated so as to have the same configuration. Function's return value indicates which perimeter(s) was missing: 10: all of the 4 were input(and knot configurations were updated to have the same). 0: only perimeter 0 was missing. 1: only perimeter 1 was missing. 2: only perimeter 2 was missing. 3: only perimeter 3 was missing. 4: perimeter 2 and 3 were missing. 5: perimeter 1 and 3 were missing. 6: perimeter 1 and 2 were missing. 7: perimeter 0 and 3 were missing. 8: perimeter 0 and 2 were missing. 9: perimeter 0 and 1 were missing. -2: less than 2 perimeters were provided.
- 引数
-
peris | 境界線リスト(vmin,umax,vmax,uminの順,辺番号0,1,2,3の順). Let i be the perimeter number, and the data is missing, perimeter[i] must be null. If perimeter 3 data is missing, perimeters.size() may be 3. If perimeter 2 and 3 data are missing, perimeters.size() may be 2. When perimeters were not the same knot configuration along u(perimeter 0 and 2) or along v(perimeter 3 and1), they will be rebuild to have the same configuration. |
perimeters2 | new perimeters will be output. |
Function to compute control point P1 and weight w1 of rational form of an ellipse segment. Pi and Ti are points and tangents of start and end for i=0,2. P is mid point of the ellipse. Function's output is if obtained(!=0:true) or not(=0:false). When obtained, =1:as finite control point, =2:as infinite. When T0, T2, P0, and P2 are not in one plane, function return 0.
(P0,1.) (P1,w1) (P2,1.) constitute the ellipse control polygon of order 3 in homogeneous form.
See "The NURBS Book" of W.Tiller and L.Piegl publised by Springer.