|
UF_CURVE_state_t *states;; b& Y' }/ @2 W2 o5 z+ h0 U1 k
UF_CURVE_spline_t splinedata;# ]7 a, N y) I `5 ]1 ?# {; [
1 t$ y9 a5 `# v1 H* Nsplinedata.knots=new double[9];4 `6 J8 d6 R6 o
splinedata.knots[0]=0.0;
, s3 w" Q) D- }6 m) ksplinedata.knots[1]=0.0;7 h8 F/ W9 y6 j% J. O# D
splinedata.knots[2]=0.0;4 H* Q. l: |8 h, @. ?
splinedata.knots[3]=0.0;. y7 z* v8 H x1 ~( D8 m4 ^
splinedata.knots[4]=0.5;
: [1 V5 b x' f+ o8 ]) \3 nsplinedata.knots[5]=1.0;
* m; @* v" X; `: m" u& ?7 Vsplinedata.knots[6]=1.0;: l1 ~( @9 z- Y8 E* ~' i& I
splinedata.knots[7]=1.0;$ {4 M! [0 O( i' r5 V/ S
splinedata.knots[8]=1.0;! }; B- C# t- z" u+ y
splinedata.start_param=0;
) L b8 c! Z c3 c1 u7 P0 esplinedata.end_param=1;8 p/ v4 R& j7 N: l5 Z9 r
splinedata.is_rational=1;3 d* U7 R; w7 {4 ? \! H3 r5 Q( z
splinedata.num_poles=5;
# q' |7 g, `1 R5 u7 X; E4 u9 _splinedata.order=4;
5 L( x" ?: [, K, C- Csplinedata.poles=new double[5][4];) v+ ~* ?- U! c6 o0 R1 G8 O
splinedata.poles[0][0]=111.0;1 Q9 n6 d5 v( x K5 G! f& \
splinedata.poles[0][1]=31.0;
' R& ~ m, l) O+ Rsplinedata.poles[0][2]=46.0;
# A9 O4 ^+ r4 V' w# o* |splinedata.poles[0][3]=1.0;
7 l! ?9 m3 R: u# g: K' csplinedata.poles[1][0]=107.0;1 F2 x# C z9 r( N2 G0 }5 Z+ W1 r
splinedata.poles[1][1]=46.0;
+ b8 S* T6 o7 I! l1 hsplinedata.poles[1][2]=46.0;7 G+ V- V6 C5 C; i3 p% @
splinedata.poles[1][3]=1.0;
# K6 k- z. |7 \splinedata.poles[2][0]=98.0;. ^" ]2 g, F8 I/ c* K7 k/ [5 [4 B5 S7 [
splinedata.poles[2][1]=37.0;/ P6 B% Z X/ ^( e
splinedata.poles[2][2]=46.0;
; U# I" o O: Bsplinedata.poles[2][3]=1.0;
' R/ Q7 Q& ^2 e( _1 ]9 Esplinedata.poles[3][0]=100.0;
( j- B5 `) x) ?* Psplinedata.poles[3][1]=35.0;9 n: N; w0 c5 U: T
splinedata.poles[3][2]=46.0;- ~& x' z1 r- d n
splinedata.poles[3][3]=1.0;
" F e6 P- J6 T: Gsplinedata.poles[4][0]=8.0;' Y, J) U5 b5 ]* x
splinedata.poles[4][1]=89.0;
+ A7 K$ Y( w3 }4 nsplinedata.poles[4][2]=56.0;2 Q! |$ ^8 j# r, n
splinedata.poles[4][3]=1.0;
1 z0 X7 e% t& ~, X3 u% [. ]( M+ x0 i7 X0 p) O- ^
UF_CURVE_create_spline (&splinedata,&splinetag,&num_states,&states); |
评分
-
查看全部评分
|