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