Blender V5.3
BPy_Nature.cpp File Reference
#include "BPy_Nature.h"
#include "BPy_Convert.h"

Go to the source code of this file.

Macros

#define ADD_TYPE_CONST(id)

Functions

static PyObject * BPy_Nature_and (PyObject *a, PyObject *b)
static PyObject * BPy_Nature_xor (PyObject *a, PyObject *b)
static PyObject * BPy_Nature_or (PyObject *a, PyObject *b)
 PyDoc_STRVAR (Nature_doc, "Class hierarchy: int > :class:`Nature`\n" "\n" "Different possible natures of 0D and 1D elements of the ViewMap.\n" "\n" "Vertex natures:\n" "\n" ".. attribute:: POINT\n" "\n" " True for any 0D element.\n" "\n" ".. attribute:: S_VERTEX\n" "\n" " True for SVertex.\n" "\n" ".. attribute:: VIEW_VERTEX\n" "\n" " True for ViewVertex.\n" "\n" ".. attribute:: NON_T_VERTEX\n" "\n" " True for NonTVertex.\n" "\n" ".. attribute:: T_VERTEX\n" "\n" " True for TVertex.\n" "\n" ".. attribute:: CUSP\n" "\n" " True for CUSP.\n" "\n" "Edge natures:\n" "\n" ".. attribute:: NO_FEATURE\n" "\n" " True for non feature edges (always false for 1D elements of the ViewMap).\n" "\n" ".. attribute:: SILHOUETTE\n" "\n" " True for silhouettes.\n" "\n" ".. attribute:: BORDER\n" "\n" " True for borders.\n" "\n" ".. attribute:: CREASE\n" "\n" " True for creases.\n" "\n" ".. attribute:: RIDGE\n" "\n" " True for ridges.\n" "\n" ".. attribute:: VALLEY\n" "\n" " True for valleys.\n" "\n" ".. attribute:: SUGGESTIVE_CONTOUR\n" "\n" " True for suggestive contours.\n" "\n" ".. attribute:: MATERIAL_BOUNDARY\n" "\n" " True for edges at material boundaries.\n" "\n" ".. attribute:: EDGE_MARK\n" "\n" " True for edges having user-defined edge marks.\n")
int Nature_Init (PyObject *module)
static PyObject * BPy_Nature_bitwise (PyObject *a, int op, PyObject *b)

Variables

static PyNumberMethods nature_as_number
PyTypeObject Nature_Type

Macro Definition Documentation

◆ ADD_TYPE_CONST

#define ADD_TYPE_CONST ( id)
Value:
void PyLong_subtype_add_to_dict(PyObject *dict, PyTypeObject *ty, const char *attr, long value)
PyTypeObject Nature_Type
#define STRINGIFY(x)

Function Documentation

◆ BPy_Nature_and()

PyObject * BPy_Nature_and ( PyObject * a,
PyObject * b )
static

Definition at line 250 of file BPy_Nature.cpp.

References b, BPy_Nature_and(), and BPy_Nature_bitwise().

Referenced by BPy_Nature_and().

◆ BPy_Nature_bitwise()

PyObject * BPy_Nature_bitwise ( PyObject * a,
int op,
PyObject * b )
static

◆ BPy_Nature_or()

PyObject * BPy_Nature_or ( PyObject * a,
PyObject * b )
static

Definition at line 260 of file BPy_Nature.cpp.

References b, BPy_Nature_bitwise(), and BPy_Nature_or().

Referenced by BPy_Nature_or().

◆ BPy_Nature_xor()

PyObject * BPy_Nature_xor ( PyObject * a,
PyObject * b )
static

Definition at line 255 of file BPy_Nature.cpp.

References b, BPy_Nature_bitwise(), and BPy_Nature_xor().

Referenced by BPy_Nature_xor().

◆ Nature_Init()

int Nature_Init ( PyObject * module)

Definition at line 178 of file BPy_Nature.cpp.

References ADD_TYPE_CONST, EDGE_MARK, Nature_Init(), and Nature_Type.

Referenced by Freestyle_Init(), and Nature_Init().

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( Nature_doc ,
"Class hierarchy: int ,
:class:`Nature`\n" "\n" "Different possible natures of 0D and 1D elements of the ViewMap.\n" "\n" "Vertex natures:\n" "\n" ".. attribute::POINT\n" "\n" " True for any 0D element.\n" "\n" ".. attribute::S_VERTEX\n" "\n" " True for SVertex.\n" "\n" ".. attribute::VIEW_VERTEX\n" "\n" " True for ViewVertex.\n" "\n" ".. attribute::NON_T_VERTEX\n" "\n" " True for NonTVertex.\n" "\n" ".. attribute::T_VERTEX\n" "\n" " True for TVertex.\n" "\n" ".. attribute::CUSP\n" "\n" " True for CUSP.\n" "\n" "Edge natures:\n" "\n" ".. attribute::NO_FEATURE\n" "\n" " True for non feature edges(always false for 1D elements of the ViewMap).\n" "\n" ".. attribute::SILHOUETTE\n" "\n" " True for silhouettes.\n" "\n" ".. attribute::BORDER\n" "\n" " True for borders.\n" "\n" ".. attribute::CREASE\n" "\n" " True for creases.\n" "\n" ".. attribute::RIDGE\n" "\n" " True for ridges.\n" "\n" ".. attribute::VALLEY\n" "\n" " True for valleys.\n" "\n" ".. attribute::SUGGESTIVE_CONTOUR\n" "\n" " True for suggestive contours.\n" "\n" ".. attribute::MATERIAL_BOUNDARY\n" "\n" " True for edges at material boundaries.\n" "\n" ".. attribute::EDGE_MARK\n" "\n" " True for edges having user-defined edge marks.\n"  )

References PyDoc_STRVAR().

Variable Documentation

◆ nature_as_number

PyNumberMethods nature_as_number
static

Definition at line 23 of file BPy_Nature.cpp.

◆ Nature_Type

PyTypeObject Nature_Type

Definition at line 134 of file BPy_Nature.cpp.

Referenced by BPy_Nature_bitwise(), BPy_Nature_from_Nature(), and Nature_Init().