25 "Class hierarchy: :class:`Interface1D` > :class:`FEdge` > :class:`FEdgeSharp`\n"
27 "Class defining a sharp FEdge. A Sharp FEdge corresponds to an initial\n"
28 "edge of the input mesh. It can be a silhouette, a crease or a border.\n"
29 "If it is a crease edge, then it is bordered by two faces of the mesh.\n"
30 "Face a lies on its right whereas Face b lies on its left. If it is a\n"
31 "border edge, then it doesn't have any face on its right, and thus Face\n"
34 ".. method:: __init__(*args)\n"
36 " Accepted call signatures:\n"
39 " - ``__init__(brother)``\n"
40 " - ``__init__(first_vertex, second_vertex)``\n"
42 " Builds an :class:`FEdgeSharp` using the default constructor,\n"
43 " copy constructor, or between two :class:`SVertex` objects.\n"
45 " :param brother: An FEdgeSharp object.\n"
46 " :type brother: :class:`FEdgeSharp`\n"
47 " :param first_vertex: The first SVertex object.\n"
48 " :type first_vertex: :class:`SVertex`\n"
49 " :param second_vertex: The second SVertex object.\n"
50 " :type second_vertex: :class:`SVertex`\n");
53 static const char *kwlist_1[] = {
"brother",
nullptr};
54 static const char *kwlist_2[] = {
"first_vertex",
"second_vertex",
nullptr};
55 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
57 if (PyArg_ParseTupleAndKeywords(args,
73 else if ((
void)PyErr_Clear(),
74 PyArg_ParseTupleAndKeywords(args,
88 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
100#define MATHUTILS_SUBTYPE_NORMAL_A 1
101#define MATHUTILS_SUBTYPE_NORMAL_B 2
140 Vec3r p(bmo->data[0], bmo->data[1], bmo->data[2]);
145 Vec3r p(bmo->data[0], bmo->data[1], bmo->data[2]);
216 FEdgeSharp_normal_right_doc,
217 "The normal to the face lying on the right of the FEdge. If this FEdge\n"
218 "is a border, it has no Face on its right and therefore no normal.\n"
220 ":type: :class:`mathutils.Vector`\n");
234 Vec3r p(v[0], v[1], v[2]);
241 FEdgeSharp_normal_left_doc,
242 "The normal to the face lying on the left of the FEdge.\n"
244 ":type: :class:`mathutils.Vector`\n");
258 Vec3r p(v[0], v[1], v[2]);
265 FEdgeSharp_material_index_right_doc,
266 "The index of the material of the face lying on the right of the FEdge.\n"
267 "If this FEdge is a border, it has no Face on its right and therefore\n"
280 uint i = PyLong_AsUnsignedLong(value);
281 if (PyErr_Occurred()) {
290 FEdgeSharp_material_index_left_doc,
291 "The index of the material of the face lying on the left of the FEdge.\n"
303 uint i = PyLong_AsUnsignedLong(value);
304 if (PyErr_Occurred()) {
313 FEdgeSharp_material_right_doc,
314 "The material of the face lying on the right of the FEdge. If this FEdge\n"
315 "is a border, it has no Face on its right and therefore no material.\n"
317 ":type: :class:`Material`\n");
325 FEdgeSharp_material_left_doc,
326 "The material of the face lying on the left of the FEdge.\n"
328 ":type: :class:`Material`\n");
336 FEdgeSharp_face_mark_right_doc,
337 "The face mark of the face lying on the right of the FEdge. If this FEdge\n"
338 "is a border, it has no face on the right and thus this property is set to\n"
351 if (!PyBool_Check(value)) {
360 FEdgeSharp_face_mark_left_doc,
361 "The face mark of the face lying on the left of the FEdge.\n"
371 if (!PyBool_Check(value)) {
382 FEdgeSharp_normal_right_doc,
387 FEdgeSharp_normal_left_doc,
389 {
"material_index_right",
392 FEdgeSharp_material_index_right_doc,
394 {
"material_index_left",
397 FEdgeSharp_material_index_left_doc,
402 FEdgeSharp_material_right_doc,
407 FEdgeSharp_material_left_doc,
412 FEdgeSharp_face_mark_right_doc,
417 FEdgeSharp_face_mark_left_doc,
419 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
425 PyVarObject_HEAD_INIT(
nullptr, 0)
444 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
bool bool_from_PyBool(PyObject *b)
PyObject * PyBool_from_bool(bool b)
PyObject * BPy_FrsMaterial_from_FrsMaterial(const FrsMaterial &m)
static PyObject * FEdgeSharp_normal_left_get(BPy_FEdgeSharp *self, void *)
#define MATHUTILS_SUBTYPE_NORMAL_B
static blender::Mathutils_Callback FEdgeSharp_mathutils_cb
static int FEdgeSharp_normal_left_set(BPy_FEdgeSharp *self, PyObject *value, void *)
static int FEdgeSharp_mathutils_set(blender::BaseMathObject *bmo, int subtype)
static uchar FEdgeSharp_mathutils_cb_index
static int FEdgeSharp_mathutils_get_index(blender::BaseMathObject *bmo, int subtype, int index)
static int FEdgeSharp_face_mark_left_set(BPy_FEdgeSharp *self, PyObject *value, void *)
static PyObject * FEdgeSharp_material_left_get(BPy_FEdgeSharp *self, void *)
static PyObject * FEdgeSharp_face_mark_left_get(BPy_FEdgeSharp *self, void *)
static int FEdgeSharp_face_mark_right_set(BPy_FEdgeSharp *self, PyObject *value, void *)
static int FEdgeSharp_normal_right_set(BPy_FEdgeSharp *self, PyObject *value, void *)
static int FEdgeSharp_init(BPy_FEdgeSharp *self, PyObject *args, PyObject *kwds)
static PyObject * FEdgeSharp_normal_right_get(BPy_FEdgeSharp *self, void *)
static PyObject * FEdgeSharp_face_mark_right_get(BPy_FEdgeSharp *self, void *)
#define MATHUTILS_SUBTYPE_NORMAL_A
static int FEdgeSharp_material_index_right_set(BPy_FEdgeSharp *self, PyObject *value, void *)
static PyObject * FEdgeSharp_material_index_right_get(BPy_FEdgeSharp *self, void *)
static int FEdgeSharp_mathutils_check(blender::BaseMathObject *bmo)
static int FEdgeSharp_material_index_left_set(BPy_FEdgeSharp *self, PyObject *value, void *)
PyTypeObject FEdgeSharp_Type
static int FEdgeSharp_mathutils_set_index(blender::BaseMathObject *bmo, int subtype, int index)
static PyObject * FEdgeSharp_material_right_get(BPy_FEdgeSharp *self, void *)
static int FEdgeSharp_mathutils_get(blender::BaseMathObject *bmo, int subtype)
void FEdgeSharp_mathutils_register_callback()
static PyObject * FEdgeSharp_material_index_left_get(BPy_FEdgeSharp *self, void *)
static PyGetSetDef BPy_FEdgeSharp_getseters[]
#define BPy_FEdgeSharp_Check(v)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject SVertex_Type
const FrsMaterial & aFrsMaterial() const
void setaFaceMark(bool iFaceMark)
void setaFrsMaterialIndex(uint i)
uint aFrsMaterialIndex() const
void setNormalB(const Vec3r &iNormal)
const FrsMaterial & bFrsMaterial() const
void setbFrsMaterialIndex(uint i)
void setbFaceMark(bool iFaceMark)
void setNormalA(const Vec3r &iNormal)
uint bFrsMaterialIndex() const
VecMat::Vec3< real > Vec3r
PyObject * Vector_CreatePyObject_cb(PyObject *cb_user, int vec_num, uchar cb_type, uchar cb_subtype)
int mathutils_array_parse(float *array, int array_num_min, int array_num_max, PyObject *value, const char *error_prefix)
Freestyle::FEdgeSharp * fes
PyObject_HEAD Freestyle::Interface1D * if1D