]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/DWinding.h
Merge branch 'NateEag-master-patch-12920' into 'master'
[xonotic/netradiant.git] / contrib / bobtoolz / DWinding.h
index 61d8e3ff0bf4c2bdcb88b5793a6bc78f7e52c424..cb8ddda759197504eb5eeef5dd2970aae9b87172 100644 (file)
 
 class DPlane;
 
-class DWinding {
+class DWinding
+{
 public:
-    DWinding();
+DWinding();
+virtual ~DWinding();
 
-    virtual ~DWinding();
+void AllocWinding( int points );
 
-    void AllocWinding(int points);
+bool ChopWinding( DPlane* chopPlane );
+bool ChopWindingInPlace( DPlane* chopPlane, vec_t ON_EPSILON );
+void ClipWindingEpsilon( DPlane* chopPlane, vec_t epsilon, DWinding** front, DWinding** back );
 
-    bool ChopWinding(DPlane *chopPlane);
+void CheckWinding();
+void WindingCentre( vec3_t centre );
+void WindingBounds( vec3_t mins, vec3_t maxs );
+void RemoveColinearPoints();
 
-    bool ChopWindingInPlace(DPlane *chopPlane, vec_t ON_EPSILON);
+DWinding* ReverseWinding();
+DWinding* CopyWinding();
+DPlane* WindingPlane();
 
-    void ClipWindingEpsilon(DPlane *chopPlane, vec_t epsilon, DWinding **front, DWinding **back);
+int WindingOnPlaneSide( vec3_t normal, vec_t dist );
 
-    void CheckWinding();
-
-    void WindingCentre(vec3_t centre);
-
-    void WindingBounds(vec3_t mins, vec3_t maxs);
-
-    void RemoveColinearPoints();
-
-    DWinding *ReverseWinding();
-
-    DWinding *CopyWinding();
-
-    DPlane *WindingPlane();
-
-    int WindingOnPlaneSide(vec3_t normal, vec_t dist);
-
-    vec_t WindingArea();
+vec_t WindingArea();
 
 //     members
-    int numpoints;
-    vec3_t *p;
-    vec3_t clr;
+int numpoints;
+vec3_t* p;
+vec3_t clr;
 };
 
 const int MAX_POINTS_ON_WINDING = 64;