+#define PATCH_LODS_NUM 2
+#define PATCH_LOD_COLLISION 0
+#define PATCH_LOD_VISUAL 1
+
+typedef struct patchinfo_s
+{
+ int xsize, ysize;
+ struct {
+ int xtess, ytess;
+ } lods[PATCH_LODS_NUM];
+} patchinfo_t;
+
+// Calculate number of resulting vertex rows/columns by given patch size and tesselation factor
+// When tess=0 it means that we reduce detalization of base 3x3 patches by removing middle row and column
+// "DimForTess" is "DIMension FOR TESSelation factor"
+int Q3PatchDimForTess(int size, int tess);
+