|
如图所示,现在需要创建一段圆弧,如何获取plane0的matrix!代码入下:
/ U6 r1 C, l; e/ v- Z# k, N" r
$ r7 E6 W9 a* y9 R Y0 ~ Point3d point = point0->GetProperties()->GetPoint("Point"); double radius=radius0->GetProperties()->GetDouble("Value");0 ~4 G0 }/ W! R) _; x/ w% D
double angle=angle0->GetProperties()->GetDouble("Value");+ J* B6 V9 ^3 M- q
tag_t arcTag = null_tag;5 R# L) I9 u: b+ F" Q3 S
UF_CURVE_arc_t arc_coords;
4 b5 a0 z$ y& _% A4 Y7 {, v% T arc_coords.arc_center[0]=point.X;
/ H! b6 b' ?7 a arc_coords.arc_center[1]=point.Y;9 n; O; W% ]3 m Q
arc_coords.arc_center[2]=point.Z;# R+ h8 s; E8 N% k% b
arc_coords.radius=radius;
7 p1 k7 a* B4 ^: W T+ I! ^ arc_coords.start_angle = 0.0; m) r o7 r* z6 D) d6 T
arc_coords.end_angle =angle * DEGRA;
) I6 |! Q. }' ~& r# |4 d arc_coords.matrix_tag=???;
9 X6 C% V. `5 F: v( A* V UF_CURVE_create_arc (&arc_coords, &arcTag);8 U$ K" t L( P e% r! H
5 s$ r3 S! i+ q6 N$ [
/ g9 @' m1 K* u! `; d 7 ~$ X% B \, F( [- R% I0 n
0 x+ O f/ z8 O) K2 g' r3 e |
|