Blender  V3.3
Macros | Functions | Variables
BPy_FEdgeSharp.cpp File Reference
#include "BPy_FEdgeSharp.h"
#include "../../BPy_Convert.h"
#include "../../Interface0D/BPy_SVertex.h"

Go to the source code of this file.

Macros

#define MATHUTILS_SUBTYPE_NORMAL_A   1
 
#define MATHUTILS_SUBTYPE_NORMAL_B   2
 

Functions

 PyDoc_STRVAR (FEdgeSharp_doc, "Class hierarchy: :class:`Interface1D` > :class:`FEdge` > :class:`FEdgeSharp`\n" "\n" "Class defining a sharp FEdge. A Sharp FEdge corresponds to an initial\n" "edge of the input mesh. It can be a silhouette, a crease or a border.\n" "If it is a crease edge, then it is bordered by two faces of the mesh.\n" "Face a lies on its right whereas Face b lies on its left. If it is a\n" "border edge, then it doesn't have any face on its right, and thus Face\n" "a is None.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(first_vertex, second_vertex)\n" "\n" " Builds an :class:`FEdgeSharp` using the default constructor,\n" " copy constructor, or between two :class:`SVertex` objects.\n" "\n" " :arg brother: An FEdgeSharp object.\n" " :type brother: :class:`FEdgeSharp`\n" " :arg first_vertex: The first SVertex object.\n" " :type first_vertex: :class:`SVertex`\n" " :arg second_vertex: The second SVertex object.\n" " :type second_vertex: :class:`SVertex`")
 
static int FEdgeSharp_init (BPy_FEdgeSharp *self, PyObject *args, PyObject *kwds)
 
static int FEdgeSharp_mathutils_check (BaseMathObject *bmo)
 
static int FEdgeSharp_mathutils_get (BaseMathObject *bmo, int subtype)
 
static int FEdgeSharp_mathutils_set (BaseMathObject *bmo, int subtype)
 
static int FEdgeSharp_mathutils_get_index (BaseMathObject *bmo, int subtype, int index)
 
static int FEdgeSharp_mathutils_set_index (BaseMathObject *bmo, int subtype, int index)
 
void FEdgeSharp_mathutils_register_callback ()
 
 PyDoc_STRVAR (FEdgeSharp_normal_right_doc, "The normal to the face lying on the right of the FEdge. If this FEdge\n" "is a border, it has no Face on its right and therefore no normal.\n" "\n" ":type: :class:`mathutils.Vector`")
 
static PyObject * FEdgeSharp_normal_right_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
static int FEdgeSharp_normal_right_set (BPy_FEdgeSharp *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (FEdgeSharp_normal_left_doc, "The normal to the face lying on the left of the FEdge.\n" "\n" ":type: :class:`mathutils.Vector`")
 
static PyObject * FEdgeSharp_normal_left_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
static int FEdgeSharp_normal_left_set (BPy_FEdgeSharp *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (FEdgeSharp_material_index_right_doc, "The index of the material of the face lying on the right of the FEdge.\n" "If this FEdge is a border, it has no Face on its right and therefore\n" "no material.\n" "\n" ":type: int")
 
static PyObject * FEdgeSharp_material_index_right_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
static int FEdgeSharp_material_index_right_set (BPy_FEdgeSharp *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (FEdgeSharp_material_index_left_doc, "The index of the material of the face lying on the left of the FEdge.\n" "\n" ":type: int")
 
static PyObject * FEdgeSharp_material_index_left_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
static int FEdgeSharp_material_index_left_set (BPy_FEdgeSharp *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (FEdgeSharp_material_right_doc, "The material of the face lying on the right of the FEdge. If this FEdge\n" "is a border, it has no Face on its right and therefore no material.\n" "\n" ":type: :class:`Material`")
 
static PyObject * FEdgeSharp_material_right_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
 PyDoc_STRVAR (FEdgeSharp_material_left_doc, "The material of the face lying on the left of the FEdge.\n" "\n" ":type: :class:`Material`")
 
static PyObject * FEdgeSharp_material_left_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
 PyDoc_STRVAR (FEdgeSharp_face_mark_right_doc, "The face mark of the face lying on the right of the FEdge. If this FEdge\n" "is a border, it has no face on the right and thus this property is set to\n" "false.\n" "\n" ":type: bool")
 
static PyObject * FEdgeSharp_face_mark_right_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
static int FEdgeSharp_face_mark_right_set (BPy_FEdgeSharp *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (FEdgeSharp_face_mark_left_doc, "The face mark of the face lying on the left of the FEdge.\n" "\n" ":type: bool")
 
static PyObject * FEdgeSharp_face_mark_left_get (BPy_FEdgeSharp *self, void *UNUSED(closure))
 
static int FEdgeSharp_face_mark_left_set (BPy_FEdgeSharp *self, PyObject *value, void *UNUSED(closure))
 

Variables

static Mathutils_Callback FEdgeSharp_mathutils_cb
 
static unsigned char FEdgeSharp_mathutils_cb_index = -1
 
static PyGetSetDef BPy_FEdgeSharp_getseters []
 
PyTypeObject FEdgeSharp_Type
 

Macro Definition Documentation

◆ MATHUTILS_SUBTYPE_NORMAL_A

#define MATHUTILS_SUBTYPE_NORMAL_A   1

Definition at line 84 of file BPy_FEdgeSharp.cpp.

◆ MATHUTILS_SUBTYPE_NORMAL_B

#define MATHUTILS_SUBTYPE_NORMAL_B   2

Definition at line 85 of file BPy_FEdgeSharp.cpp.

Function Documentation

◆ FEdgeSharp_face_mark_left_get()

static PyObject* FEdgeSharp_face_mark_left_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

Definition at line 332 of file BPy_FEdgeSharp.cpp.

References PyBool_from_bool(), and self.

◆ FEdgeSharp_face_mark_left_set()

static int FEdgeSharp_face_mark_left_set ( BPy_FEdgeSharp self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 337 of file BPy_FEdgeSharp.cpp.

References bool_from_PyBool().

◆ FEdgeSharp_face_mark_right_get()

static PyObject* FEdgeSharp_face_mark_right_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

Definition at line 311 of file BPy_FEdgeSharp.cpp.

References PyBool_from_bool(), and self.

◆ FEdgeSharp_face_mark_right_set()

static int FEdgeSharp_face_mark_right_set ( BPy_FEdgeSharp self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 316 of file BPy_FEdgeSharp.cpp.

References bool_from_PyBool().

◆ FEdgeSharp_init()

static int FEdgeSharp_init ( BPy_FEdgeSharp self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 46 of file BPy_FEdgeSharp.cpp.

References FEdgeSharp_Type, and SVertex_Type.

◆ FEdgeSharp_material_index_left_get()

static PyObject* FEdgeSharp_material_index_left_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

Definition at line 266 of file BPy_FEdgeSharp.cpp.

References self.

◆ FEdgeSharp_material_index_left_set()

static int FEdgeSharp_material_index_left_set ( BPy_FEdgeSharp self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 271 of file BPy_FEdgeSharp.cpp.

◆ FEdgeSharp_material_index_right_get()

static PyObject* FEdgeSharp_material_index_right_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

Definition at line 244 of file BPy_FEdgeSharp.cpp.

References self.

◆ FEdgeSharp_material_index_right_set()

static int FEdgeSharp_material_index_right_set ( BPy_FEdgeSharp self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 249 of file BPy_FEdgeSharp.cpp.

◆ FEdgeSharp_material_left_get()

static PyObject* FEdgeSharp_material_left_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

Definition at line 299 of file BPy_FEdgeSharp.cpp.

References BPy_FrsMaterial_from_FrsMaterial(), and self.

◆ FEdgeSharp_material_right_get()

static PyObject* FEdgeSharp_material_right_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

Definition at line 289 of file BPy_FEdgeSharp.cpp.

References BPy_FrsMaterial_from_FrsMaterial(), and self.

◆ FEdgeSharp_mathutils_check()

static int FEdgeSharp_mathutils_check ( BaseMathObject bmo)
static

Definition at line 87 of file BPy_FEdgeSharp.cpp.

References BPy_FEdgeSharp_Check.

◆ FEdgeSharp_mathutils_get()

static int FEdgeSharp_mathutils_get ( BaseMathObject bmo,
int  subtype 
)
static

Definition at line 95 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, MATHUTILS_SUBTYPE_NORMAL_B, and self.

◆ FEdgeSharp_mathutils_get_index()

static int FEdgeSharp_mathutils_get_index ( BaseMathObject bmo,
int  subtype,
int  index 
)
static

Definition at line 135 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, MATHUTILS_SUBTYPE_NORMAL_B, and self.

◆ FEdgeSharp_mathutils_register_callback()

void FEdgeSharp_mathutils_register_callback ( )

◆ FEdgeSharp_mathutils_set()

static int FEdgeSharp_mathutils_set ( BaseMathObject bmo,
int  subtype 
)
static

Definition at line 117 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, and MATHUTILS_SUBTYPE_NORMAL_B.

◆ FEdgeSharp_mathutils_set_index()

static int FEdgeSharp_mathutils_set_index ( BaseMathObject bmo,
int  subtype,
int  index 
)
static

Definition at line 153 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, MATHUTILS_SUBTYPE_NORMAL_B, and self.

◆ FEdgeSharp_normal_left_get()

static PyObject* FEdgeSharp_normal_left_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

◆ FEdgeSharp_normal_left_set()

static int FEdgeSharp_normal_left_set ( BPy_FEdgeSharp self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 226 of file BPy_FEdgeSharp.cpp.

References mathutils_array_parse(), and v.

◆ FEdgeSharp_normal_right_get()

static PyObject* FEdgeSharp_normal_right_get ( BPy_FEdgeSharp self,
void UNUSEDclosure 
)
static

◆ FEdgeSharp_normal_right_set()

static int FEdgeSharp_normal_right_set ( BPy_FEdgeSharp self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 202 of file BPy_FEdgeSharp.cpp.

References mathutils_array_parse(), and v.

◆ PyDoc_STRVAR() [1/9]

PyDoc_STRVAR ( FEdgeSharp_doc  ,
"Class hierarchy: :class:`Interface1D ,
:class:`FEdge ,
:class:`FEdgeSharp`\n" "\n" "Class defining a sharp FEdge. A Sharp FEdge corresponds to an initial\n" "edge of the input mesh. It can be a  silhouette,
a crease or a border.\n" "If it is a crease  edge,
then it is bordered by two faces of the mesh.\n" "Face a lies on its right whereas Face b lies on its left. If it is a\n" "border  edge,
then it doesn 't have any face on its  right,
and thus Face\n" "a is None.\n" "\n" ".. method::__init__()\n" " __init__(brother)\n" " __init__(first_vertex, second_vertex)\n" "\n" " Builds an :class:`FEdgeSharp` using the default  constructor,
\n" " copy  constructor,
or between two :class:`SVertex` objects.\n" "\n" " :arg brother:An FEdgeSharp object.\n" " :type brother::class:`FEdgeSharp`\n" " :arg first_vertex:The first SVertex object.\n" " :type first_vertex::class:`SVertex`\n" " :arg second_vertex:The second SVertex object.\n" " :type second_vertex::class:`SVertex`"   
)

◆ PyDoc_STRVAR() [2/9]

PyDoc_STRVAR ( FEdgeSharp_face_mark_left_doc  ,
"The face mark of the face lying on the left of the FEdge.\n" "\n" ":type: bool  
)

◆ PyDoc_STRVAR() [3/9]

PyDoc_STRVAR ( FEdgeSharp_face_mark_right_doc  ,
"The face mark of the face lying on the right of the FEdge. If this FEdge\n" "is a  border,
it has no face on the right and thus this property is set to\n" "false.\n" "\n" ":type:bool"   
)

◆ PyDoc_STRVAR() [4/9]

PyDoc_STRVAR ( FEdgeSharp_material_index_left_doc  ,
"The index of the material of the face lying on the left of the FEdge.\n" "\n" ":type: int"   
)

◆ PyDoc_STRVAR() [5/9]

PyDoc_STRVAR ( FEdgeSharp_material_index_right_doc  ,
"The index of the material of the face lying on the right of the FEdge.\n" "If this FEdge is a  border,
it has no Face on its right and therefore\n" "no material.\n" "\n" ":type:int"   
)

◆ PyDoc_STRVAR() [6/9]

PyDoc_STRVAR ( FEdgeSharp_material_left_doc  ,
"The material of the face lying on the left of the FEdge.\n" "\n" ":type: :class:`Material`"   
)

◆ PyDoc_STRVAR() [7/9]

PyDoc_STRVAR ( FEdgeSharp_material_right_doc  ,
"The material of the face lying on the right of the FEdge. If this FEdge\n" "is a  border,
it has no Face on its right and therefore no material.\n" "\n" ":type::class:`Material`"   
)

◆ PyDoc_STRVAR() [8/9]

PyDoc_STRVAR ( FEdgeSharp_normal_left_doc  ,
"The normal to the face lying on the left of the FEdge.\n" "\n" ":type: :class:`mathutils.Vector`"   
)

◆ PyDoc_STRVAR() [9/9]

PyDoc_STRVAR ( FEdgeSharp_normal_right_doc  ,
"The normal to the face lying on the right of the FEdge. If this FEdge\n" "is a  border,
it has no Face on its right and therefore no normal.\n" "\n" ":type::class:`mathutils.Vector`"   
)

Variable Documentation

◆ BPy_FEdgeSharp_getseters

PyGetSetDef BPy_FEdgeSharp_getseters[]
static

Definition at line 348 of file BPy_FEdgeSharp.cpp.

◆ FEdgeSharp_mathutils_cb

Mathutils_Callback FEdgeSharp_mathutils_cb
static
Initial value:
= {
}
static int FEdgeSharp_mathutils_set(BaseMathObject *bmo, int subtype)
static int FEdgeSharp_mathutils_get(BaseMathObject *bmo, int subtype)
static int FEdgeSharp_mathutils_set_index(BaseMathObject *bmo, int subtype, int index)
static int FEdgeSharp_mathutils_get_index(BaseMathObject *bmo, int subtype, int index)
static int FEdgeSharp_mathutils_check(BaseMathObject *bmo)

Definition at line 173 of file BPy_FEdgeSharp.cpp.

Referenced by FEdgeSharp_mathutils_register_callback().

◆ FEdgeSharp_mathutils_cb_index

unsigned char FEdgeSharp_mathutils_cb_index = -1
static

◆ FEdgeSharp_Type

PyTypeObject FEdgeSharp_Type