1
subroutine fpadpo(idim,t,n,c,nc,k,cp,np,cc,t1,t2)
2
c given a idim-dimensional spline curve of degree k, in its b-spline
3
c representation ( knots t(j),j=1,...,n , b-spline coefficients c(j),
4
c j=1,...,nc) and given also a polynomial curve in its b-spline
5
c representation ( coefficients cp(j), j=1,...,np), subroutine fpadpo
6
c calculates the b-spline representation (coefficients c(j),j=1,...,nc)
7
c of the sum of the two curves.
9
c other subroutine required : fpinst
12
c ..scalar arguments..
13
integer idim,k,n,nc,np
15
real*8 t(n),c(nc),cp(np),cc(nc),t1(n),t2(n)
17
integer i,ii,j,jj,k1,l,l1,n1,n2,nk1,nk2
34
if(nk1.eq.k1) go to 70
44
c find the b-spline representation of the given polynomial curve
45
c according to the given set of knots.
51
call fpinst(0,t1,n1,cc(j),k,t(l1),l,t2,n2,cc(j),n)
59
c find the b-spline representation of the resulting curve.