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.

46 lines
1.4 KiB

  1. #ifndef __glutrimvertex_h_
  2. #define __glutrimvertex_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. * trimvertex.h - $Revision: 1.2 $
  16. */
  17. #include "types.h"
  18. /*#define USE_OPTTT*/
  19. #ifdef NT
  20. class TrimVertex { public: /* a vertex on a trim curve */
  21. #else
  22. struct TrimVertex { /* a vertex on a trim curve */
  23. #endif
  24. REAL param[2]; /* parametric space coords */
  25. #ifdef USE_OPTTT
  26. REAL cache_point[4]; //only when USE_OPTTT is on in slicer.c++
  27. REAL cache_normal[3];
  28. #endif
  29. long nuid;
  30. };
  31. typedef TrimVertex *TrimVertex_p;
  32. inline REAL
  33. det3( TrimVertex *a, TrimVertex *b, TrimVertex *c )
  34. {
  35. return a->param[0] * (b->param[1]-c->param[1]) +
  36. b->param[0] * (c->param[1]-a->param[1]) +
  37. c->param[0] * (a->param[1]-b->param[1]);
  38. }
  39. #endif /* __glutrimvertex_h_ */