jaws1.f
来自「Intro/: Directory containing introducto」· F 代码 · 共 40 行
F
40 行
$alias fdopen='fdopen'(%val,%ref) include 'phigs.f1.h' ! get the HP-PHIGS aliases program jaws1 ! file "jaws1.f" include 'phigs.f2.h' ! get the HP-PHIGS constants integer*4 WorkstnID ! workstation identifier parameter (WorkstnID=1) ! value chosen by the user integer*4 ConnID ! connection identifier integer*4 WorkstnType ! workstation type parameter (WorkstnType=POIDDX) ! out/in, direct, dbl bfr, X real CtrlPts1X(6), CtrlPts1Y(6) ! control points for curve 1 data CtrlPts1X /.1, .7, .9, .9, .7, .6/ data CtrlPts1Y /.1, .1, .1, .3, .3, .3/ real KnotVector1(9) ! knot vector for curve 1 data KnotVector1 /0., 0., 0., 1., 2., 3., 4., 4., 4./ real CtrlPtsZ(6), CtrlPtsW(6) data CtrlPtsZ /0., 0., 0., 0., 0., 0./ data CtrlPtsW /0., 0., 0., 0., 0., 0./ real ParmRange(2) ! limits of parameter range integer*4 fdopen ! to get file descriptor call popph(fdopen(fnum(7), 'w'//char(0)), 0) ! open phigs call pue004('/dev/screen/phigs_window', ConnID) ! get connection ID call popwk(WorkstnID, ConnID, WorkstnType)! open workstation call popst(1) ! open display list structure call psmk(PAST) ! set marker type to asterisk call psmksc(4.0) ! set marker scale factor !--- draw curve 1 ------------------------------------------------------ call ppm(6, CtrlPts1X, CtrlPts1Y) ! polymarker ParmRange(1)=0.0 ParmRange(2)=4.0 call pbsc3(3, 9, KnotVector1, ParmRange, ! non-uniform b-spline curve + PNRAT, 6, CtrlPts1X, CtrlPts1Y, CtrlPtsZ, CtrlPtsW) call pclst ! close display list structure call ppost(WorkstnID, 1, 1.) ! send picture to display call pclwk(WorkstnID) ! close workstation call pclph ! close phigs stop ! stop processing end ! end of program
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?