Counter Strike : Global Offensive Source Code
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.

33 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef BRUSHOPS_H
  7. #define BRUSHOPS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "MapFace.h"
  12. #define ON_PLANE_EPSILON 0.5f // Vertices must be within this many units of the plane to be considered on the plane.
  13. #define MIN_EDGE_LENGTH_EPSILON 0.1f // Edges shorter than this are considered degenerate.
  14. #define ROUND_VERTEX_EPSILON 0.01f // Vertices within this many units of an integer value will be rounded to an integer value.
  15. void Add3dError(DWORD dwObjectID, LPCTSTR pszReason, PVOID pInfo);
  16. winding_t *ClipWinding(winding_t *in, PLANE *split);
  17. winding_t *CopyWinding(winding_t *w);
  18. winding_t *NewWinding(int points);
  19. void FreeWinding (winding_t *w);
  20. winding_t *CreateWindingFromPlane(PLANE *pPlane);
  21. size_t WindingSize(int points);
  22. void RemoveDuplicateWindingPoints(winding_t *pWinding, float fMinDist = 0);
  23. #endif // BRUSHOPS_H