|
如图所示,现在需要创建一段圆弧,如何获取plane0的matrix!代码入下:6 I: i. n. w2 A/ ~: l' Y# [9 x
' s3 L- M) n% p: s
Point3d point = point0->GetProperties()->GetPoint("Point"); double radius=radius0->GetProperties()->GetDouble("Value");8 Y5 d9 X) L0 w
double angle=angle0->GetProperties()->GetDouble("Value");
4 r& o# H" Z, t0 ^ tag_t arcTag = null_tag;, L$ j. @4 w" ]9 P) e5 o u8 g
UF_CURVE_arc_t arc_coords;9 S. h0 `. h( E; m
arc_coords.arc_center[0]=point.X;
' ^6 x; \5 y1 j3 V o4 W$ O arc_coords.arc_center[1]=point.Y;. x! h: j, K9 `' J( s
arc_coords.arc_center[2]=point.Z;( |! ]3 m( S; Y/ T* L% m
arc_coords.radius=radius;! \; s0 |. v" L2 A3 K
arc_coords.start_angle = 0.0;
' Z; e) E& G1 G% o9 Z5 T arc_coords.end_angle =angle * DEGRA;
& u5 W7 v8 B6 q2 g& f+ G& N6 k# Y8 T arc_coords.matrix_tag=???;- ]# V- R. y* {* A8 V& t3 p* f
UF_CURVE_create_arc (&arc_coords, &arcTag);1 s) _( U- V, K% c8 E1 X( Z
+ S; D0 |4 F- W$ ?' X
7 Z$ B M6 _+ H( Y9 l 3 V1 ?5 m5 C, f8 [
9 c* u1 H% a1 l& _5 B/ ^) @
|
|