Blender V4.3
BPy_BBox.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
9#pragma once
10
11extern "C" {
12#include <Python.h>
13}
14
15#include "../geometry/BBox.h"
16#include "../geometry/Geom.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23
24extern PyTypeObject BBox_Type;
25
26#define BPy_BBox_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&BBox_Type))
27
28/*---------------------------Python BPy_BBox structure definition----------*/
29typedef struct {
30 PyObject_HEAD
32} BPy_BBox;
33
34/*---------------------------Python BPy_BBox visible prototypes-----------*/
35
36int BBox_Init(PyObject *module);
37
39
40#ifdef __cplusplus
41}
42#endif
A class to hold a bounding box.
PyTypeObject BBox_Type
Definition BPy_BBox.cpp:70
int BBox_Init(PyObject *module)
Definition BPy_BBox.cpp:21
Vectors and Matrices (useful type definitions)
static struct PyModuleDef module
Definition python.cpp:991
PyObject_HEAD Freestyle::BBox< Freestyle::Geometry::Vec3r > * bb
Definition BPy_BBox.h:31