Blender V5.0
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
10
11struct MemArena;
12
16void BLI_polyfill_calc_arena(const float (*coords)[2],
17 unsigned int coords_num,
18 int coords_sign,
19 unsigned int (*r_tris)[3],
20
21 struct MemArena *arena);
22
36void BLI_polyfill_calc(const float (*coords)[2],
37 unsigned int coords_num,
38 int coords_sign,
39 unsigned int (*r_tris)[3]);
40
41/* default size of polyfill arena */
42#define BLI_POLYFILL_ARENA_SIZE MEM_SIZE_OPTIMAL(1 << 14)
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)