31 #include "../mathutils/mathutils.h"
38 ".. method:: intersect_face_point(face, point)\n"
40 " Tests if the projection of a point is inside a face (using the face's normal).\n"
42 " :arg face: The face to test.\n"
43 " :type face: :class:`bmesh.types.BMFace`\n"
44 " :arg point: The point to test.\n"
45 " :type point: float triplet\n"
46 " :return: True when the projection of the point is in the face.\n"
55 if (!PyArg_ParseTuple(args,
"O!O:intersect_face_point", &
BPy_BMFace_Type, &py_face, &py_point)) {
66 return PyBool_FromLong(
ret);
70 {
"intersect_face_point",
73 bpy_bm_geometry_intersect_face_point_doc},
78 "This module provides access to bmesh geometry evaluation functions.");
80 PyModuleDef_HEAD_INIT,
bool BM_face_point_inside_test(const BMFace *f, const float co[3])
PyDoc_STRVAR(bpy_bm_geometry_intersect_face_point_doc, ".. method:: intersect_face_point(face, point)\n" "\n" " Tests if the projection of a point is inside a face (using the face's normal).\n" "\n" " :arg face: The face to test.\n" " :type face: :class:`bmesh.types.BMFace`\n" " :arg point: The point to test.\n" " :type point: float triplet\n" " :return: True when the projection of the point is in the face.\n" " :rtype: bool\n")
PyObject * BPyInit_bmesh_geometry(void)
static struct PyModuleDef BPy_BM_geometry_module_def
static PyObject * bpy_bm_geometry_intersect_face_point(BPy_BMFace *UNUSED(self), PyObject *args)
static struct PyMethodDef BPy_BM_geometry_methods[]
PyTypeObject BPy_BMFace_Type
#define BPY_BM_CHECK_OBJ(obj)
int mathutils_array_parse(float *array, int array_min, int array_max, PyObject *value, const char *error_prefix)