|
如图所示,现在需要创建一段圆弧,如何获取plane0的matrix!代码入下:, v4 V: Y5 g$ o6 S3 x9 F
* ?5 y6 U9 t2 ^9 M1 x/ m0 g Point3d point = point0->GetProperties()->GetPoint("Point"); double radius=radius0->GetProperties()->GetDouble("Value");
+ C3 W1 `$ y2 N: Q# S double angle=angle0->GetProperties()->GetDouble("Value");
: t$ Y9 H9 t: c2 e" `4 Q% q5 y- p/ r tag_t arcTag = null_tag;9 f. f {4 [$ X6 ~
UF_CURVE_arc_t arc_coords;1 I9 c. p: c$ F( `- {2 [; d
arc_coords.arc_center[0]=point.X;7 d4 V" ]9 T) v. p- x g. C) ]
arc_coords.arc_center[1]=point.Y;( `" I* i% J) z/ q8 e
arc_coords.arc_center[2]=point.Z;3 q/ i' t2 f+ @7 D* ^
arc_coords.radius=radius;
$ Y: b5 ^4 Z- | arc_coords.start_angle = 0.0;! R! k* H2 Q" p- W/ I5 R
arc_coords.end_angle =angle * DEGRA;7 l+ r; n, s A9 b- f% u
arc_coords.matrix_tag=???;9 ?5 M/ s% ~9 Z0 a. {; M
UF_CURVE_create_arc (&arc_coords, &arcTag);
1 ^9 _ f; p, A, p # Z7 |2 t7 d1 w" j
7 b- K, m! m1 M( @
# E$ ~4 t: B1 d4 y, J , Z# S8 N' Y& y4 V
|
|