Blender V4.3
BLI_polyfill_2d.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15struct MemArena;
16
20void BLI_polyfill_calc_arena(const float (*coords)[2],
21 unsigned int coords_num,
22 int coords_sign,
23 unsigned int (*r_tris)[3],
24
25 struct MemArena *arena);
26
40void BLI_polyfill_calc(const float (*coords)[2],
41 unsigned int coords_num,
42 int coords_sign,
43 unsigned int (*r_tris)[3]);
44
45/* default size of polyfill arena */
46#define BLI_POLYFILL_ARENA_SIZE MEM_SIZE_OPTIMAL(1 << 14)
47
48#ifdef __cplusplus
49}
50#endif
void BLI_polyfill_calc(const float(*coords)[2], unsigned int coords_num, int coords_sign, unsigned int(*r_tris)[3])
void BLI_polyfill_calc_arena(const float(*coords)[2], unsigned int coords_num, int coords_sign, unsigned int(*r_tris)[3], struct MemArena *arena)