Blender V5.3
BLI_polyfill_2d.hh
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
11namespace blender {
12
13struct MemArena;
14
18void 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
38void 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} // namespace blender
BMesh Iterators.
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)