home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / pex / 529 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  2.3 KB

  1. Xref: sparky comp.windows.x.pex:529 comp.unix.aix:9387 alt.graphics:337 comp.graphics:9445
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!fhg!igd!pfuetz
  3. From: pfuetz@igd.fhg.de (Matthias Pfuetzner)
  4. Newsgroups: comp.windows.x.pex,comp.unix.aix,alt.graphics,comp.graphics
  5. Subject: IBM's graPHIGS package, problem with GPNBS, any hint?
  6. Message-ID: <1484@igd.fhg.de>
  7. Date: 4 Sep 92 13:14:24 GMT
  8. Sender: news@igd.fhg.de
  9. Followup-To: poster
  10. Organization: Zentrum fuer Graphische Datenverarbeitung, Darmstadt, FRG
  11. Lines: 41
  12.  
  13. Hi Everybody!
  14.  
  15. I have a problem with IBM RS/6000 graPHIGS library and the GPNBS call.
  16.  
  17. Simply said: The above call inserts the corresponding element into the
  18. structure store, but I don't see nothing on the screen!
  19.  
  20. I checked whether the currently open workstation supports non-uniform B-spline
  21. surfaces (it does), what the maximum order is (6, I only use 2x3 and sometimes
  22. 3x3), so that I'm sure, this primitive is available.
  23.  
  24. Before inserting the GPNBS I inserted "pfill_area_set3" using the ISO C
  25. Binding provided under /usr/lpp/graPHIGS/samples/cbinding, so that I can use
  26. mixed calls for those routines that are currently not supported in ISO C
  27. Binding form.  This fill_area_set3 is properly drawn, so that I'm sure the
  28. workstation is opened correctly. The data I supply for the B-spline surface is
  29. OK, as I am also using libphigs.a (producing PEX calls) on the IBM and on Sun
  30. workstations with X11R5 by MIT. With these libraries I see my surface!
  31.  
  32. I never use trimcurves, so I don't use GPTNBS.
  33.  
  34. Here is the call:
  35. #if defined( AIXV3 ) && defined( USE_GRAPHIGS )
  36.    GPNBS( (Pint)2, (Pint)3, uknots.num_floats - 2, vknots.num_floats - 3,
  37.           uknots.floats, vknots.floats, 0, 0, 0, 1, 4, grid.points.point4d,
  38.           uknots.floats[0], uknots.floats[uknots.num_floats - 1],
  39.           vknots.floats[0], vknots.floats[vknots.num_floats - 1] );
  40. #else   
  41.    pnuni_bsp_surf( (Pint)2, (Pint)3, &uknots, &vknots, PRATIONAL, &grid,
  42.                    (Pint) 0, (Ptrimcurve_list *) 0 );
  43. #endif
  44.  
  45. Any hint is highly appreciated!
  46.  
  47. Sincerly,
  48.         Matthias
  49. -- 
  50.     Matthias Pfuetzner  |  @work:  +49 6151 155-150  | @home: +49 6151 75717
  51.     6100 Darmstadt, FRG | ZGDV, Wilhelminenstrasse 7 | Lichtenbergstrasse 73
  52.       pfuetzner@igd.fhg.de, pfuetzner@zgdvda.UUCP    |  Keith Packard said:
  53.       R5 is different from R4. That's why we changed the release number :-)
  54.