25 "Class hierarchy: :class:`Interface1D` > :class:`FEdge` > :class:`FEdgeSmooth`\n"
27 "Class defining a smooth edge. This kind of edge typically runs across\n"
28 "a face of the input mesh. It can be a silhouette, a ridge or valley,\n"
29 "a suggestive contour.\n"
31 ".. method:: __init__(*args)\n"
33 " Accepted call signatures:\n"
36 " - ``__init__(brother)``\n"
37 " - ``__init__(first_vertex, second_vertex)``\n"
39 " Builds an :class:`FEdgeSmooth` using the default constructor,\n"
40 " copy constructor, or between two :class:`SVertex`.\n"
42 " :param brother: An FEdgeSmooth object.\n"
43 " :type brother: :class:`FEdgeSmooth`\n"
44 " :param first_vertex: The first SVertex object.\n"
45 " :type first_vertex: :class:`SVertex`\n"
46 " :param second_vertex: The second SVertex object.\n"
47 " :type second_vertex: :class:`SVertex`\n");
50 static const char *kwlist_1[] = {
"brother",
nullptr};
51 static const char *kwlist_2[] = {
"first_vertex",
"second_vertex",
nullptr};
52 PyObject *obj1 =
nullptr, *obj2 =
nullptr;
54 if (PyArg_ParseTupleAndKeywords(args,
70 else if ((
void)PyErr_Clear(),
71 PyArg_ParseTupleAndKeywords(args,
85 PyErr_SetString(PyExc_TypeError,
"invalid argument(s)");
117 Vec3r p(bmo->data[0], bmo->data[1], bmo->data[2]);
162 FEdgeSmooth_normal_doc,
163 "The normal of the face that this FEdge is running across.\n"
165 ":type: :class:`mathutils.Vector`\n");
178 Vec3r p(v[0], v[1], v[2]);
185 FEdgeSmooth_material_index_doc,
186 "The index of the material of the face that this FEdge is running across.\n"
198 uint i = PyLong_AsUnsignedLong(value);
199 if (PyErr_Occurred()) {
208 FEdgeSmooth_material_doc,
209 "The material of the face that this FEdge is running across.\n"
211 ":type: :class:`Material`\n");
219 FEdgeSmooth_face_mark_doc,
220 "The face mark of the face that this FEdge is running across.\n"
230 if (!PyBool_Check(value)) {
241 FEdgeSmooth_normal_doc,
246 FEdgeSmooth_material_index_doc,
251 FEdgeSmooth_material_doc,
256 FEdgeSmooth_face_mark_doc,
258 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
264 PyVarObject_HEAD_INIT(
nullptr, 0)
283 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 int FEdgeSmooth_material_index_set(BPy_FEdgeSmooth *self, PyObject *value, void *)
static int FEdgeSmooth_mathutils_set(blender::BaseMathObject *bmo, int)
void FEdgeSmooth_mathutils_register_callback()
static PyObject * FEdgeSmooth_normal_get(BPy_FEdgeSmooth *self, void *)
static int FEdgeSmooth_normal_set(BPy_FEdgeSmooth *self, PyObject *value, void *)
static PyObject * FEdgeSmooth_material_index_get(BPy_FEdgeSmooth *self, void *)
static int FEdgeSmooth_mathutils_check(blender::BaseMathObject *bmo)
PyTypeObject FEdgeSmooth_Type
static PyObject * FEdgeSmooth_face_mark_get(BPy_FEdgeSmooth *self, void *)
static int FEdgeSmooth_init(BPy_FEdgeSmooth *self, PyObject *args, PyObject *kwds)
static uchar FEdgeSmooth_mathutils_cb_index
static int FEdgeSmooth_mathutils_set_index(blender::BaseMathObject *bmo, int, int index)
static PyObject * FEdgeSmooth_material_get(BPy_FEdgeSmooth *self, void *)
static int FEdgeSmooth_face_mark_set(BPy_FEdgeSmooth *self, PyObject *value, void *)
static PyGetSetDef BPy_FEdgeSmooth_getseters[]
static blender::Mathutils_Callback FEdgeSmooth_mathutils_cb
static int FEdgeSmooth_mathutils_get_index(blender::BaseMathObject *bmo, int, int index)
static int FEdgeSmooth_mathutils_get(blender::BaseMathObject *bmo, int)
#define BPy_FEdgeSmooth_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
void setNormal(const Vec3r &iNormal)
void setFrsMaterialIndex(uint i)
const FrsMaterial & frs_material() const
void setFaceMark(bool iFaceMark)
uint frs_materialIndex() 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::FEdgeSmooth * fes
PyObject_HEAD Freestyle::Interface1D * if1D