Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.5 KiB

  1. #ifndef __glupwlarc_h_
  2. #define __glupwlarc_h_
  3. /**************************************************************************
  4. * *
  5. * Copyright (C) 1992, Silicon Graphics, Inc. *
  6. * *
  7. * These coded instructions, statements, and computer programs contain *
  8. * unpublished proprietary information of Silicon Graphics, Inc., and *
  9. * are protected by Federal copyright law. They may not be disclosed *
  10. * to third parties or copied or duplicated in any form, in whole or *
  11. * in part, without the prior written consent of Silicon Graphics, Inc. *
  12. * *
  13. **************************************************************************/
  14. /*
  15. * pwlarc.h - $Revision: 1.1 $
  16. */
  17. #include "myassert.h"
  18. #include "nurbscon.h"
  19. class TrimVertex;
  20. struct PwlArc : public PooledObj { /* a piecewise-linear arc */
  21. TrimVertex * pts; /* sample points */
  22. int npts; /* number of sample points */
  23. long type; /* curve type */
  24. inline PwlArc( void );
  25. inline PwlArc( int, TrimVertex * );
  26. inline PwlArc( int, TrimVertex *, long );
  27. };
  28. inline
  29. PwlArc::PwlArc( void )
  30. {
  31. type = N_P2D;
  32. pts = 0;
  33. npts = -1;
  34. }
  35. inline
  36. PwlArc::PwlArc( int _npts, TrimVertex *_pts )
  37. {
  38. pts = _pts;
  39. npts = _npts;
  40. type = N_P2D;
  41. }
  42. inline
  43. PwlArc::PwlArc( int _npts, TrimVertex *_pts, long _type )
  44. {
  45. pts = _pts;
  46. npts = _npts;
  47. type = _type;
  48. }
  49. #endif /* __glupwlarc_h_ */