|
如图所示,现在需要创建一段圆弧,如何获取plane0的matrix!代码入下:( j; @ n% |/ v$ ^. Q6 ~
, F7 M: Y1 ~7 Q2 F
Point3d point = point0->GetProperties()->GetPoint("Point"); double radius=radius0->GetProperties()->GetDouble("Value");
3 t. m% Y7 y7 h double angle=angle0->GetProperties()->GetDouble("Value");
9 G- B& d' `5 A U tag_t arcTag = null_tag;' z* Z) D2 ?7 `
UF_CURVE_arc_t arc_coords;
/ X& }6 {! g/ D# `9 O arc_coords.arc_center[0]=point.X;% o. ] G7 F5 _: p7 N( w c* x: e
arc_coords.arc_center[1]=point.Y;- l1 y( g q* E6 J% I
arc_coords.arc_center[2]=point.Z;
1 E* d9 ~( a& p% v: Y0 M arc_coords.radius=radius;
* u4 S5 X& J8 n. u3 Q arc_coords.start_angle = 0.0;
# s! L, ]6 c- E arc_coords.end_angle =angle * DEGRA;
5 M* A# J2 e! o& E6 n* v0 R arc_coords.matrix_tag=???;8 m0 |$ `- ]. X7 B. Z( \( P
UF_CURVE_create_arc (&arc_coords, &arcTag);
+ C0 x9 T# _6 N- F
- |* U8 O Z5 F0 H. q: _
: ?3 {! a! `8 p6 l% p2 }
y( c; Y, g- o( \8 ^ ) ^0 X3 {" c+ g0 E0 m V
|
|