Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/mathutils/mathutils_bvhtree.c
| Show First 20 Lines • Show All 573 Lines • ▼ Show 20 Lines | return (isect_tri_tri_epsilon_v3(UNPACK3(tri_a_co), UNPACK3(tri_b_co), ix_pair[0], ix_pair[1], data->epsilon) && | ||||
| ((verts_shared == 0) || (len_squared_v3v3(ix_pair[0], ix_pair[1]) > data->epsilon))); | ((verts_shared == 0) || (len_squared_v3v3(ix_pair[0], ix_pair[1]) > data->epsilon))); | ||||
| } | } | ||||
| PyDoc_STRVAR(py_bvhtree_overlap_doc, | PyDoc_STRVAR(py_bvhtree_overlap_doc, | ||||
| ".. method:: overlap(other_tree)\n" | ".. method:: overlap(other_tree)\n" | ||||
| "\n" | "\n" | ||||
| " Find overlapping indices between 2 trees.\n" | " Find overlapping indices between 2 trees.\n" | ||||
| "\n" | "\n" | ||||
| " :arg other_tree: Other tree to preform overlap test on.\n" | " :arg other_tree: Other tree to perform overlap test on.\n" | ||||
| " :type other_tree: :class:`BVHTree`\n" | " :type other_tree: :class:`BVHTree`\n" | ||||
| " :return: Returns a list of unique index pairs," | " :return: Returns a list of unique index pairs," | ||||
| " the first index referencing this tree, the second referencing the **other_tree**.\n" | " the first index referencing this tree, the second referencing the **other_tree**.\n" | ||||
| " :rtype: :class:`list`\n" | " :rtype: :class:`list`\n" | ||||
| ); | ); | ||||
| static PyObject *py_bvhtree_overlap(PyBVHTree *self, PyBVHTree *other) | static PyObject *py_bvhtree_overlap(PyBVHTree *self, PyBVHTree *other) | ||||
| { | { | ||||
| struct PyBVHTree_OverlapData data; | struct PyBVHTree_OverlapData data; | ||||
| ▲ Show 20 Lines • Show All 735 Lines • Show Last 20 Lines | |||||