Blender V5.0
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`\n")
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`\n")
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`\n")
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\n")
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\n")
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`\n")
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`\n")
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\n")
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\n")
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()

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

Definition at line 342 of file BPy_FEdgeSharp.cpp.

References PyBool_from_bool(), and self.

◆ FEdgeSharp_face_mark_left_set()

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

Definition at line 347 of file BPy_FEdgeSharp.cpp.

References bool_from_PyBool(), and self.

◆ FEdgeSharp_face_mark_right_get()

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

Definition at line 320 of file BPy_FEdgeSharp.cpp.

References PyBool_from_bool(), and self.

◆ FEdgeSharp_face_mark_right_set()

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

Definition at line 325 of file BPy_FEdgeSharp.cpp.

References bool_from_PyBool(), and self.

◆ FEdgeSharp_init()

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

Definition at line 47 of file BPy_FEdgeSharp.cpp.

References FEdgeSharp_Type, self, and SVertex_Type.

◆ FEdgeSharp_material_index_left_get()

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

Definition at line 272 of file BPy_FEdgeSharp.cpp.

References self.

◆ FEdgeSharp_material_index_left_set()

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

Definition at line 277 of file BPy_FEdgeSharp.cpp.

References i, and self.

◆ FEdgeSharp_material_index_right_get()

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

Definition at line 249 of file BPy_FEdgeSharp.cpp.

References self.

◆ FEdgeSharp_material_index_right_set()

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

Definition at line 254 of file BPy_FEdgeSharp.cpp.

References i, and self.

◆ FEdgeSharp_material_left_get()

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

Definition at line 307 of file BPy_FEdgeSharp.cpp.

References BPy_FrsMaterial_from_FrsMaterial(), and self.

◆ FEdgeSharp_material_right_get()

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

Definition at line 296 of file BPy_FEdgeSharp.cpp.

References BPy_FrsMaterial_from_FrsMaterial(), and self.

◆ FEdgeSharp_mathutils_check()

int FEdgeSharp_mathutils_check ( BaseMathObject * bmo)
static

Definition at line 83 of file BPy_FEdgeSharp.cpp.

References BPy_FEdgeSharp_Check.

◆ FEdgeSharp_mathutils_get()

int FEdgeSharp_mathutils_get ( BaseMathObject * bmo,
int subtype )
static

Definition at line 91 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, MATHUTILS_SUBTYPE_NORMAL_B, and self.

◆ FEdgeSharp_mathutils_get_index()

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()

int FEdgeSharp_mathutils_set ( BaseMathObject * bmo,
int subtype )
static

Definition at line 115 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, MATHUTILS_SUBTYPE_NORMAL_B, and self.

◆ FEdgeSharp_mathutils_set_index()

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

Definition at line 155 of file BPy_FEdgeSharp.cpp.

References MATHUTILS_SUBTYPE_NORMAL_A, MATHUTILS_SUBTYPE_NORMAL_B, and self.

◆ FEdgeSharp_normal_left_get()

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

◆ FEdgeSharp_normal_left_set()

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

Definition at line 230 of file BPy_FEdgeSharp.cpp.

References mathutils_array_parse(), self, and v.

◆ FEdgeSharp_normal_right_get()

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

◆ FEdgeSharp_normal_right_set()

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

Definition at line 207 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`\n"  )

◆ 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\n"  )

◆ 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\n"  )

◆ 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\n"  )

◆ 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\n"  )

◆ 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`\n"  )

◆ 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`\n"  )

◆ 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`\n"  )

◆ 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`\n"  )

Variable Documentation

◆ BPy_FEdgeSharp_getseters

PyGetSetDef BPy_FEdgeSharp_getseters[]
static

Definition at line 356 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 177 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