Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/bmesh/bmesh_py_types.c
| Context not available. | |||||
| return Vector_CreatePyObject(cent, 3, NULL); | return Vector_CreatePyObject(cent, 3, NULL); | ||||
| } | } | ||||
| PyDoc_STRVAR(bpy_bmface_calc_plane_doc, | |||||
| ".. method:: calc_plane()\n" | |||||
| "\n" | |||||
| " Return a meaningful direction for the nagative Y axis of the face.\n" | |||||
| "\n" | |||||
| " :return: a 3D vector.\n" | |||||
| " :rtype: :class:`mathutils.Vector`\n" | |||||
| ); | |||||
| static PyObject *bpy_bmface_calc_plane(BPy_BMFace *self) | |||||
| { | |||||
| float plane[3]; | |||||
| BPY_BM_CHECK_OBJ(self); | |||||
| BM_face_calc_plane(self->f, plane); | |||||
| return Vector_CreatePyObject(plane, 3, NULL); | |||||
| } | |||||
| PyDoc_STRVAR(bpy_bmface_normal_update_doc, | PyDoc_STRVAR(bpy_bmface_normal_update_doc, | ||||
| ".. method:: normal_update()\n" | ".. method:: normal_update()\n" | ||||
| Context not available. | |||||
| {"calc_center_median", (PyCFunction)bpy_bmface_calc_center_mean, METH_NOARGS, bpy_bmface_calc_center_mean_doc}, | {"calc_center_median", (PyCFunction)bpy_bmface_calc_center_mean, METH_NOARGS, bpy_bmface_calc_center_mean_doc}, | ||||
| {"calc_center_median_weighted", (PyCFunction)bpy_bmface_calc_center_mean_weighted, METH_NOARGS, bpy_bmface_calc_center_mean_weighted_doc}, | {"calc_center_median_weighted", (PyCFunction)bpy_bmface_calc_center_mean_weighted, METH_NOARGS, bpy_bmface_calc_center_mean_weighted_doc}, | ||||
| {"calc_center_bounds", (PyCFunction)bpy_bmface_calc_center_bounds, METH_NOARGS, bpy_bmface_calc_center_bounds_doc}, | {"calc_center_bounds", (PyCFunction)bpy_bmface_calc_center_bounds, METH_NOARGS, bpy_bmface_calc_center_bounds_doc}, | ||||
| {"calc_plane", (PyCFunction)bpy_bmface_calc_plane, METH_NOARGS, bpy_bmface_calc_plane_doc}, | |||||
| {"normal_update", (PyCFunction)bpy_bmface_normal_update, METH_NOARGS, bpy_bmface_normal_update_doc}, | {"normal_update", (PyCFunction)bpy_bmface_normal_update, METH_NOARGS, bpy_bmface_normal_update_doc}, | ||||
| {"normal_flip", (PyCFunction)bpy_bmface_normal_flip, METH_NOARGS, bpy_bmface_normal_flip_doc}, | {"normal_flip", (PyCFunction)bpy_bmface_normal_flip, METH_NOARGS, bpy_bmface_normal_flip_doc}, | ||||
| Context not available. | |||||