Blender V4.3
BPy_FEdgeSharp.cpp File Reference

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 *)
 
static int FEdgeSharp_normal_right_set (BPy_FEdgeSharp *self, PyObject *value, void *)
 
 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 *)
 
static int FEdgeSharp_normal_left_set (BPy_FEdgeSharp *self, PyObject *value, void *)
 
 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 *)
 
static int FEdgeSharp_material_index_right_set (BPy_FEdgeSharp *self, PyObject *value, void *)
 
 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 *)
 
static int FEdgeSharp_material_index_left_set (BPy_FEdgeSharp *self, PyObject *value, void *)
 
 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 *)
 
 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 *)
 
 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 *)
 
static int FEdgeSharp_face_mark_right_set (BPy_FEdgeSharp *self, PyObject *value, void *)
 
 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 *)
 
static int FEdgeSharp_face_mark_left_set (BPy_FEdgeSharp *self, PyObject *value, void *)
 

Variables

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

Macro Definition Documentation

◆ MATHUTILS_SUBTYPE_NORMAL_A

◆ MATHUTILS_SUBTYPE_NORMAL_B

Function Documentation

◆ FEdgeSharp_face_mark_left_get()

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

Definition at line 355 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 *  )
static

Definition at line 360 of file BPy_FEdgeSharp.cpp.

References bool_from_PyBool(), and self.

◆ FEdgeSharp_face_mark_right_get()

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

Definition at line 332 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 *  )
static

Definition at line 337 of file BPy_FEdgeSharp.cpp.

References bool_from_PyBool(), and self.

◆ FEdgeSharp_init()

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

Definition at line 52 of file BPy_FEdgeSharp.cpp.

References FEdgeSharp_Type, self, and SVertex_Type.

◆ FEdgeSharp_material_index_left_get()

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

Definition at line 281 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 *  )
static

Definition at line 286 of file BPy_FEdgeSharp.cpp.

References self.

◆ FEdgeSharp_material_index_right_get()

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

Definition at line 257 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 *  )
static

Definition at line 262 of file BPy_FEdgeSharp.cpp.

References self.

◆ FEdgeSharp_material_left_get()

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

Definition at line 318 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 *  )
static

Definition at line 306 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 88 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 96 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 140 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 120 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, MATHUTILS_SUBTYPE_NORMAL_B, and self.

◆ FEdgeSharp_mathutils_set_index()

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

Definition at line 160 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 *  )
static

◆ FEdgeSharp_normal_left_set()

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

Definition at line 237 of file BPy_FEdgeSharp.cpp.

References mathutils_array_parse(), self, and v.

◆ FEdgeSharp_normal_right_get()

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

◆ FEdgeSharp_normal_right_set()

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

Definition at line 213 of file BPy_FEdgeSharp.cpp.

References mathutils_array_parse(), self, 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 369 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 182 of file BPy_FEdgeSharp.cpp.

Referenced by FEdgeSharp_mathutils_register_callback().

◆ FEdgeSharp_mathutils_cb_index

uchar FEdgeSharp_mathutils_cb_index = -1
static

◆ FEdgeSharp_Type

PyTypeObject FEdgeSharp_Type