forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrushops.h
33 lines (23 loc) · 1 KB
/
brushops.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef BRUSHOPS_H
#define BRUSHOPS_H
#ifdef _WIN32
#pragma once
#endif
#include "MapFace.h"
#define ON_PLANE_EPSILON 0.5f // Vertices must be within this many units of the plane to be considered on the plane.
#define MIN_EDGE_LENGTH_EPSILON 0.1f // Edges shorter than this are considered degenerate.
#define ROUND_VERTEX_EPSILON 0.01f // Vertices within this many units of an integer value will be rounded to an integer value.
void Add3dError(DWORD dwObjectID, LPCTSTR pszReason, PVOID pInfo);
winding_t *ClipWinding(winding_t *in, PLANE *split);
winding_t *CopyWinding(winding_t *w);
winding_t *NewWinding(int points);
void FreeWinding (winding_t *w);
winding_t *CreateWindingFromPlane(PLANE *pPlane);
size_t WindingSize(int points);
void RemoveDuplicateWindingPoints(winding_t *pWinding, float fMinDist = 0);
#endif // BRUSHOPS_H