Blender  V3.3
BLI_polyfill_2d.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 struct MemArena;
14 
18 void BLI_polyfill_calc_arena(const float (*coords)[2],
19  unsigned int coords_num,
20  int coords_sign,
21  unsigned int (*r_tris)[3],
22 
23  struct MemArena *arena);
24 
38 void BLI_polyfill_calc(const float (*coords)[2],
39  unsigned int coords_num,
40  int coords_sign,
41  unsigned int (*r_tris)[3]);
42 
43 /* default size of polyfill arena */
44 #define BLI_POLYFILL_ARENA_SIZE MEM_SIZE_OPTIMAL(1 << 14)
45 
46 #ifdef __cplusplus
47 }
48 #endif
void BLI_polyfill_calc(const float(*coords)[2], unsigned int coords_num, int coords_sign, unsigned int(*r_tris)[3])
Definition: polyfill_2d.c:875
void BLI_polyfill_calc_arena(const float(*coords)[2], unsigned int coords_num, int coords_sign, unsigned int(*r_tris)[3], struct MemArena *arena)
Definition: polyfill_2d.c:830