Blender V5.0
cubes.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifndef __CUBES_H__
6#define __CUBES_H__
7
8#include "MEM_guardedalloc.h"
9
11
12/* simple wrapper for auto-generated marching cubes data */
13class Cubes {
14 public:
17 {
19 }
20
22 void getTriangle(int mask, int index, int indices[3])
23 {
24 for (int i = 0; i < 3; i++) {
26 }
27 }
28
29 MEM_CXX_CLASS_ALLOC_FUNCS("DUALCON:Cubes")
30};
31
32#endif /* __CUBES_H__ */
Read Guarded memory(de)allocation.
Definition cubes.h:13
int getNumTriangle(int mask)
Get number of triangles.
Definition cubes.h:16
void getTriangle(int mask, int index, int indices[3])
Get a triangle.
Definition cubes.h:22
static ushort indices[]
const int marching_cubes_tris[TOTCONF][MAX_TRIS][3]
const int marching_cubes_numtri[TOTCONF]
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
i
Definition text_draw.cc:230