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;