fake-bpy-module 20241103__py3-none-any.whl → 20241111__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- addon_utils/__init__.pyi +28 -13
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +1 -2
- bl_console_utils/autocomplete/complete_import/__init__.pyi +3 -6
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +1 -2
- bl_console_utils/autocomplete/intellisense/__init__.pyi +2 -6
- bl_operators/image_as_planes/__init__.pyi +12 -39
- bl_operators/uvcalc_transform/__init__.pyi +4 -42
- bl_operators/wm/__init__.pyi +8 -0
- bl_ui/generic_ui_list/__init__.pyi +2 -1
- bl_ui/properties_grease_pencil_common/__init__.pyi +0 -7
- bl_ui/space_userpref/__init__.pyi +2 -2
- blf/__init__.pyi +3 -5
- bmesh/types/__init__.pyi +22 -33
- bmesh/utils/__init__.pyi +6 -16
- bpy/app/icons/__init__.pyi +5 -11
- bpy/app/translations/__init__.pyi +7 -14
- bpy/msgbus/__init__.pyi +7 -8
- bpy/ops/curves/__init__.pyi +16 -0
- bpy/ops/nla/__init__.pyi +1 -1
- bpy/ops/sequencer/__init__.pyi +3 -0
- bpy/path/__init__.pyi +6 -16
- bpy/props/__init__.pyi +122 -135
- bpy/types/__init__.pyi +365 -604
- bpy/utils/__init__.pyi +30 -29
- bpy/utils/previews/__init__.pyi +1 -2
- bpy/utils/units/__init__.pyi +1 -2
- bpy_extras/anim_utils/__init__.pyi +5 -12
- bpy_extras/bmesh_utils/__init__.pyi +1 -2
- bpy_extras/image_utils/__init__.pyi +2 -5
- bpy_extras/io_utils/__init__.pyi +8 -14
- bpy_extras/mesh_utils/__init__.pyi +14 -29
- bpy_extras/object_utils/__init__.pyi +1 -1
- bpy_extras/view3d_utils/__init__.pyi +3 -10
- {fake_bpy_module-20241103.dist-info → fake_bpy_module-20241111.dist-info}/METADATA +1 -1
- {fake_bpy_module-20241103.dist-info → fake_bpy_module-20241111.dist-info}/RECORD +56 -56
- freestyle/chainingiterators/__init__.pyi +2 -7
- freestyle/functions/__init__.pyi +4 -16
- freestyle/types/__init__.pyi +29 -63
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +1 -2
- gpu/__init__.pyi +19 -5
- gpu/matrix/__init__.pyi +2 -2
- gpu/state/__init__.pyi +16 -8
- gpu/types/__init__.pyi +14 -29
- gpu_extras/batch/__init__.pyi +9 -9
- gpu_extras/presets/__init__.pyi +4 -11
- idprop/types/__init__.pyi +1 -2
- imbuf/__init__.pyi +2 -4
- mathutils/__init__.pyi +30 -95
- mathutils/bvhtree/__init__.pyi +13 -17
- mathutils/geometry/__init__.pyi +26 -45
- mathutils/interpolate/__init__.pyi +2 -2
- mathutils/kdtree/__init__.pyi +13 -28
- rna_info/__init__.pyi +1 -2
- {fake_bpy_module-20241103.dist-info → fake_bpy_module-20241111.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20241103.dist-info → fake_bpy_module-20241111.dist-info}/top_level.txt +0 -0
mathutils/bvhtree/__init__.pyi
CHANGED
|
@@ -60,36 +60,34 @@ class BVHTree:
|
|
|
60
60
|
:type epsilon: float
|
|
61
61
|
"""
|
|
62
62
|
|
|
63
|
-
def find_nearest(self, origin, distance: float = 1.84467e19)
|
|
63
|
+
def find_nearest(self, origin, distance: float = 1.84467e19):
|
|
64
64
|
"""Find the nearest element (typically face index) to a point.
|
|
65
65
|
|
|
66
66
|
:param origin:
|
|
67
67
|
:param distance: Maximum distance threshold.
|
|
68
68
|
:type distance: float
|
|
69
|
-
:return: Returns a tuple
|
|
70
|
-
(`Vector` location, `Vector` normal, int index, float distance),
|
|
69
|
+
:return: Returns a tuple: (position, normal, index, distance),
|
|
71
70
|
Values will all be None if no hit is found.
|
|
72
|
-
:rtype: tuple
|
|
73
71
|
"""
|
|
74
72
|
|
|
75
|
-
def find_nearest_range(
|
|
73
|
+
def find_nearest_range(
|
|
74
|
+
self, origin, distance: float = 1.84467e19
|
|
75
|
+
) -> int | mathutils.Vector:
|
|
76
76
|
"""Find the nearest elements (typically face index) to a point in the distance range.
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
:rtype: list
|
|
78
|
+
:param origin:
|
|
79
|
+
:param distance: Maximum distance threshold.
|
|
80
|
+
:type distance: float
|
|
81
|
+
:return: Returns a list of tuples (position, normal, index, distance)
|
|
82
|
+
:rtype: int | mathutils.Vector
|
|
84
83
|
"""
|
|
85
84
|
|
|
86
|
-
def overlap(self, other_tree: typing_extensions.Self)
|
|
85
|
+
def overlap(self, other_tree: typing_extensions.Self):
|
|
87
86
|
"""Find overlapping indices between 2 trees.
|
|
88
87
|
|
|
89
88
|
:param other_tree: Other tree to perform overlap test on.
|
|
90
89
|
:type other_tree: typing_extensions.Self
|
|
91
90
|
:return: Returns a list of unique index pairs, the first index referencing this tree, the second referencing the other_tree.
|
|
92
|
-
:rtype: list
|
|
93
91
|
"""
|
|
94
92
|
|
|
95
93
|
def ray_cast(
|
|
@@ -97,7 +95,7 @@ class BVHTree:
|
|
|
97
95
|
origin: collections.abc.Sequence[float] | mathutils.Vector,
|
|
98
96
|
direction: collections.abc.Sequence[float] | mathutils.Vector,
|
|
99
97
|
distance: float = sys.float_info.max,
|
|
100
|
-
)
|
|
98
|
+
):
|
|
101
99
|
"""Cast a ray onto the mesh.
|
|
102
100
|
|
|
103
101
|
:param origin: Start location of the ray in object space.
|
|
@@ -106,10 +104,8 @@ class BVHTree:
|
|
|
106
104
|
:type direction: collections.abc.Sequence[float] | mathutils.Vector
|
|
107
105
|
:param distance: Maximum distance threshold.
|
|
108
106
|
:type distance: float
|
|
109
|
-
:return: Returns a tuple
|
|
110
|
-
(`Vector` location, `Vector` normal, int index, float distance),
|
|
107
|
+
:return: Returns a tuple: (position, normal, index, distance),
|
|
111
108
|
Values will all be None if no hit is found.
|
|
112
|
-
:rtype: tuple
|
|
113
109
|
"""
|
|
114
110
|
|
|
115
111
|
def __init__(self, size):
|
mathutils/geometry/__init__.pyi
CHANGED
|
@@ -32,7 +32,7 @@ def barycentric_transform(
|
|
|
32
32
|
tri_b1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
33
33
|
tri_b2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
34
34
|
tri_b3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
35
|
-
):
|
|
35
|
+
) -> mathutils.Vector:
|
|
36
36
|
"""Return a transformed point, the transformation is defined by 2 triangles.
|
|
37
37
|
|
|
38
38
|
:param point: The point to transform.
|
|
@@ -50,24 +50,23 @@ def barycentric_transform(
|
|
|
50
50
|
:param tri_b3: target triangle vertex.
|
|
51
51
|
:type tri_b3: collections.abc.Sequence[float] | mathutils.Vector
|
|
52
52
|
:return: The transformed point
|
|
53
|
+
:rtype: mathutils.Vector
|
|
53
54
|
"""
|
|
54
55
|
|
|
55
|
-
def box_fit_2d(points
|
|
56
|
+
def box_fit_2d(points) -> float:
|
|
56
57
|
"""Returns an angle that best fits the points to an axis aligned rectangle
|
|
57
58
|
|
|
58
|
-
:param points:
|
|
59
|
-
:type points: list
|
|
59
|
+
:param points: Sequence of 2D points.
|
|
60
60
|
:return: angle
|
|
61
61
|
:rtype: float
|
|
62
62
|
"""
|
|
63
63
|
|
|
64
|
-
def box_pack_2d(boxes:
|
|
64
|
+
def box_pack_2d(boxes: float):
|
|
65
65
|
"""Returns a tuple with the width and height of the packed bounding box.
|
|
66
66
|
|
|
67
|
-
:param boxes: list of boxes, each box is a list where the first 4 items are [
|
|
68
|
-
:type boxes:
|
|
69
|
-
:return:
|
|
70
|
-
:rtype: tuple
|
|
67
|
+
:param boxes: list of boxes, each box is a list where the first 4 items are [X, Y, width, height, ...] other items are ignored. The X & Y values in this list are modified to set the packed positions.
|
|
68
|
+
:type boxes: float
|
|
69
|
+
:return: The width and height of the packed bounding box.
|
|
71
70
|
"""
|
|
72
71
|
|
|
73
72
|
def closest_point_on_tri(
|
|
@@ -90,22 +89,15 @@ def closest_point_on_tri(
|
|
|
90
89
|
:rtype: mathutils.Vector
|
|
91
90
|
"""
|
|
92
91
|
|
|
93
|
-
def convex_hull_2d(points
|
|
92
|
+
def convex_hull_2d(points):
|
|
94
93
|
"""Returns a list of indices into the list given
|
|
95
94
|
|
|
96
|
-
:param points:
|
|
97
|
-
:type points: list
|
|
95
|
+
:param points: Sequence of 2D points.
|
|
98
96
|
:return: a list of indices
|
|
99
|
-
:rtype: list[int]
|
|
100
97
|
"""
|
|
101
98
|
|
|
102
99
|
def delaunay_2d_cdt(
|
|
103
|
-
vert_coords:
|
|
104
|
-
edges,
|
|
105
|
-
faces,
|
|
106
|
-
output_type: int,
|
|
107
|
-
epsilon: float,
|
|
108
|
-
need_ids=True,
|
|
100
|
+
vert_coords, edges, faces, output_type: int, epsilon: float, need_ids=True
|
|
109
101
|
):
|
|
110
102
|
"""Computes the Constrained Delaunay Triangulation of a set of vertices,
|
|
111
103
|
with edges and faces that must appear in the triangulation.
|
|
@@ -121,7 +113,6 @@ def delaunay_2d_cdt(
|
|
|
121
113
|
of the orig arrays, which may save some time.
|
|
122
114
|
|
|
123
115
|
:param vert_coords: Vertex coordinates (2d)
|
|
124
|
-
:type vert_coords: list[mathutils.Vector]
|
|
125
116
|
:param edges: Edges, as pairs of indices in vert_coords
|
|
126
117
|
:param faces: Faces, each sublist is a face, as indices in vert_coords (CCW oriented)
|
|
127
118
|
:param output_type: What output looks like. 0 => triangles with convex hull. 1 => triangles inside constraints. 2 => the input constraints, intersected. 3 => like 2 but detect holes and omit them from output. 4 => like 2 but with extra edges to make valid BMesh faces. 5 => like 4 but detect holes and omit them from output.
|
|
@@ -167,7 +158,7 @@ def interpolate_bezier(
|
|
|
167
158
|
:type knot2: collections.abc.Sequence[float] | mathutils.Vector
|
|
168
159
|
:param resolution: Number of points to return.
|
|
169
160
|
:type resolution: int
|
|
170
|
-
:return: The interpolated points
|
|
161
|
+
:return: The interpolated points.
|
|
171
162
|
"""
|
|
172
163
|
|
|
173
164
|
def intersect_line_line(
|
|
@@ -175,7 +166,7 @@ def intersect_line_line(
|
|
|
175
166
|
v2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
176
167
|
v3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
177
168
|
v4: collections.abc.Sequence[float] | mathutils.Vector,
|
|
178
|
-
)
|
|
169
|
+
):
|
|
179
170
|
"""Returns a tuple with the points on each line respectively closest to the other.
|
|
180
171
|
|
|
181
172
|
:param v1: First point of the first line
|
|
@@ -187,7 +178,6 @@ def intersect_line_line(
|
|
|
187
178
|
:param v4: Second point of the second line
|
|
188
179
|
:type v4: collections.abc.Sequence[float] | mathutils.Vector
|
|
189
180
|
:return: The intersection on each line or None when the lines are co-linear.
|
|
190
|
-
:rtype: tuple[mathutils.Vector, ...]
|
|
191
181
|
"""
|
|
192
182
|
|
|
193
183
|
def intersect_line_line_2d(
|
|
@@ -195,7 +185,7 @@ def intersect_line_line_2d(
|
|
|
195
185
|
lineA_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
196
186
|
lineB_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
197
187
|
lineB_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
198
|
-
)
|
|
188
|
+
):
|
|
199
189
|
"""Takes 2 segments (defined by 4 vectors) and returns a vector for their point of intersection or None.
|
|
200
190
|
|
|
201
191
|
:param lineA_p1: First point of the first line
|
|
@@ -207,7 +197,6 @@ def intersect_line_line_2d(
|
|
|
207
197
|
:param lineB_p2: Second point of the second line
|
|
208
198
|
:type lineB_p2: collections.abc.Sequence[float] | mathutils.Vector
|
|
209
199
|
:return: The point of intersection or None when not found
|
|
210
|
-
:rtype: mathutils.Vector
|
|
211
200
|
"""
|
|
212
201
|
|
|
213
202
|
def intersect_line_plane(
|
|
@@ -216,7 +205,7 @@ def intersect_line_plane(
|
|
|
216
205
|
plane_co: collections.abc.Sequence[float] | mathutils.Vector,
|
|
217
206
|
plane_no: collections.abc.Sequence[float] | mathutils.Vector,
|
|
218
207
|
no_flip=False,
|
|
219
|
-
)
|
|
208
|
+
):
|
|
220
209
|
"""Calculate the intersection between a line (as 2 vectors) and a plane.
|
|
221
210
|
Returns a vector for the intersection or None.
|
|
222
211
|
|
|
@@ -229,7 +218,6 @@ def intersect_line_plane(
|
|
|
229
218
|
:param plane_no: The direction the plane is facing
|
|
230
219
|
:type plane_no: collections.abc.Sequence[float] | mathutils.Vector
|
|
231
220
|
:return: The point of intersection or None when not found
|
|
232
|
-
:rtype: mathutils.Vector
|
|
233
221
|
"""
|
|
234
222
|
|
|
235
223
|
def intersect_line_sphere(
|
|
@@ -290,21 +278,20 @@ def intersect_plane_plane(
|
|
|
290
278
|
:type plane_b_co: collections.abc.Sequence[float] | mathutils.Vector
|
|
291
279
|
:param plane_b_no: Normal of the second plane
|
|
292
280
|
:type plane_b_no: collections.abc.Sequence[float] | mathutils.Vector
|
|
293
|
-
:return: The line of the intersection represented as a point and a vector
|
|
281
|
+
:return: The line of the intersection represented as a point and a vector or None if the intersection can't be calculated
|
|
294
282
|
"""
|
|
295
283
|
|
|
296
284
|
def intersect_point_line(
|
|
297
285
|
pt: collections.abc.Sequence[float] | mathutils.Vector,
|
|
298
286
|
line_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
299
287
|
line_p2,
|
|
300
|
-
)
|
|
288
|
+
):
|
|
301
289
|
"""Takes a point and a line and returns a tuple with the closest point on the line and its distance from the first point of the line as a percentage of the length of the line.
|
|
302
290
|
|
|
303
291
|
:param pt: Point
|
|
304
292
|
:type pt: collections.abc.Sequence[float] | mathutils.Vector
|
|
305
293
|
:param line_p1: First point of the lineSecond point of the line
|
|
306
294
|
:type line_p1: collections.abc.Sequence[float] | mathutils.Vector
|
|
307
|
-
:rtype: tuple[mathutils.Vector]
|
|
308
295
|
"""
|
|
309
296
|
|
|
310
297
|
def intersect_point_quad_2d(
|
|
@@ -336,7 +323,7 @@ def intersect_point_tri(
|
|
|
336
323
|
tri_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
337
324
|
tri_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
338
325
|
tri_p3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
339
|
-
)
|
|
326
|
+
):
|
|
340
327
|
"""Takes 4 vectors: one is the point and the next 3 define the triangle. Projects the point onto the triangle plane and checks if it is within the triangle.
|
|
341
328
|
|
|
342
329
|
:param pt: Point
|
|
@@ -348,7 +335,6 @@ def intersect_point_tri(
|
|
|
348
335
|
:param tri_p3: Third point of the triangle
|
|
349
336
|
:type tri_p3: collections.abc.Sequence[float] | mathutils.Vector
|
|
350
337
|
:return: Point on the triangles plane or None if its outside the triangle
|
|
351
|
-
:rtype: mathutils.Vector
|
|
352
338
|
"""
|
|
353
339
|
|
|
354
340
|
def intersect_point_tri_2d(
|
|
@@ -377,7 +363,7 @@ def intersect_ray_tri(
|
|
|
377
363
|
ray: collections.abc.Sequence[float] | mathutils.Vector,
|
|
378
364
|
orig: collections.abc.Sequence[float] | mathutils.Vector,
|
|
379
365
|
clip: bool = True,
|
|
380
|
-
)
|
|
366
|
+
):
|
|
381
367
|
"""Returns the intersection between a ray and a triangle, if possible, returns None otherwise.
|
|
382
368
|
|
|
383
369
|
:param v1: Point1
|
|
@@ -393,7 +379,6 @@ def intersect_ray_tri(
|
|
|
393
379
|
:param clip: When False, don't restrict the intersection to the area of the triangle, use the infinite plane defined by the triangle.
|
|
394
380
|
:type clip: bool
|
|
395
381
|
:return: The point of intersection or None if no intersection is found
|
|
396
|
-
:rtype: mathutils.Vector
|
|
397
382
|
"""
|
|
398
383
|
|
|
399
384
|
def intersect_sphere_sphere_2d(
|
|
@@ -401,7 +386,7 @@ def intersect_sphere_sphere_2d(
|
|
|
401
386
|
radius_a: float,
|
|
402
387
|
p_b: collections.abc.Sequence[float] | mathutils.Vector,
|
|
403
388
|
radius_b: float,
|
|
404
|
-
)
|
|
389
|
+
):
|
|
405
390
|
"""Returns 2 points on between intersecting circles.
|
|
406
391
|
|
|
407
392
|
:param p_a: Center of the first circle
|
|
@@ -413,7 +398,6 @@ def intersect_sphere_sphere_2d(
|
|
|
413
398
|
:param radius_b: Radius of the second circle
|
|
414
399
|
:type radius_b: float
|
|
415
400
|
:return: 2 points on between intersecting circles or None when there is no intersection.
|
|
416
|
-
:rtype: tuple[mathutils.Vector, ...]
|
|
417
401
|
"""
|
|
418
402
|
|
|
419
403
|
def intersect_tri_tri_2d(tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3) -> bool:
|
|
@@ -425,31 +409,28 @@ def intersect_tri_tri_2d(tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3) -> bool
|
|
|
425
409
|
def normal(vectors) -> mathutils.Vector:
|
|
426
410
|
"""Returns the normal of a 3D polygon.
|
|
427
411
|
|
|
428
|
-
:param vectors:
|
|
412
|
+
:param vectors: 3 or more vectors to calculate normals.
|
|
429
413
|
:rtype: mathutils.Vector
|
|
430
414
|
"""
|
|
431
415
|
|
|
432
416
|
def points_in_planes(
|
|
433
|
-
planes:
|
|
434
|
-
epsilon_coplanar: float = 0.0001,
|
|
435
|
-
epsilon_isect: float = 1e-06,
|
|
417
|
+
planes, epsilon_coplanar: float = 0.0001, epsilon_isect: float = 1e-06
|
|
436
418
|
):
|
|
437
419
|
"""Returns a list of points inside all planes given and a list of index values for the planes used.
|
|
438
420
|
|
|
439
421
|
:param planes: List of planes (4D vectors).
|
|
440
|
-
:type planes: list[mathutils.Vector]
|
|
441
422
|
:param epsilon_coplanar: Epsilon value for interpreting plane pairs as co-plannar.
|
|
442
423
|
:type epsilon_coplanar: float
|
|
443
424
|
:param epsilon_isect: Epsilon value for intersection.
|
|
444
425
|
:type epsilon_isect: float
|
|
445
|
-
:return:
|
|
426
|
+
:return: Two lists, once containing the 3D coordinates inside the planes, another containing the plane indices used.
|
|
446
427
|
"""
|
|
447
428
|
|
|
448
|
-
def tessellate_polygon(
|
|
429
|
+
def tessellate_polygon(polylines) -> int:
|
|
449
430
|
"""Takes a list of polylines (each point a pair or triplet of numbers) and returns the point indices for a polyline filled with triangles. Does not handle degenerate geometry (such as zero-length lines due to consecutive identical points).
|
|
450
431
|
|
|
451
|
-
:param
|
|
452
|
-
:rtype:
|
|
432
|
+
:param polylines: Polygons where each polygon is a sequence of 2D or 3D points.
|
|
433
|
+
:rtype: int
|
|
453
434
|
"""
|
|
454
435
|
|
|
455
436
|
def volume_tetrahedron(
|
|
@@ -10,6 +10,6 @@ import typing_extensions
|
|
|
10
10
|
def poly_3d_calc(veclist, pt):
|
|
11
11
|
"""Calculate barycentric weights for a point on a polygon.
|
|
12
12
|
|
|
13
|
-
:param veclist:
|
|
14
|
-
:param pt:
|
|
13
|
+
:param veclist: Sequence of 3D positions.
|
|
14
|
+
:param pt: 2D or 3D position. :type pt: Sequence[float] :return: list of per-vector weights.
|
|
15
15
|
"""
|
mathutils/kdtree/__init__.pyi
CHANGED
|
@@ -8,7 +8,6 @@ Generic 3-dimensional kd-tree to perform spatial searches.
|
|
|
8
8
|
import typing
|
|
9
9
|
import collections.abc
|
|
10
10
|
import typing_extensions
|
|
11
|
-
import mathutils
|
|
12
11
|
|
|
13
12
|
class KDTree:
|
|
14
13
|
"""KdTree(size) -> new kd-tree initialized to hold size items."""
|
|
@@ -16,54 +15,40 @@ class KDTree:
|
|
|
16
15
|
def balance(self):
|
|
17
16
|
"""Balance the tree."""
|
|
18
17
|
|
|
19
|
-
def find(
|
|
20
|
-
self,
|
|
21
|
-
co: collections.abc.Sequence[float] | mathutils.Vector,
|
|
22
|
-
filter: collections.abc.Callable | None = None,
|
|
23
|
-
) -> tuple:
|
|
18
|
+
def find(self, co, filter: collections.abc.Callable | None = None) -> int:
|
|
24
19
|
"""Find nearest point to co.
|
|
25
20
|
|
|
26
|
-
:param co:
|
|
27
|
-
:type co: collections.abc.Sequence[float] | mathutils.Vector
|
|
21
|
+
:param co: 3D coordinates.
|
|
28
22
|
:param filter: function which takes an index and returns True for indices to include in the search.
|
|
29
23
|
:type filter: collections.abc.Callable | None
|
|
30
|
-
:return: Returns (
|
|
31
|
-
:rtype:
|
|
24
|
+
:return: Returns (position, index, distance).
|
|
25
|
+
:rtype: int
|
|
32
26
|
"""
|
|
33
27
|
|
|
34
|
-
def find_n(
|
|
35
|
-
self, co: collections.abc.Sequence[float] | mathutils.Vector, n: int
|
|
36
|
-
) -> list:
|
|
28
|
+
def find_n(self, co, n: int) -> int:
|
|
37
29
|
"""Find nearest n points to co.
|
|
38
30
|
|
|
39
|
-
:param co:
|
|
40
|
-
:type co: collections.abc.Sequence[float] | mathutils.Vector
|
|
31
|
+
:param co: 3D coordinates.
|
|
41
32
|
:param n: Number of points to find.
|
|
42
33
|
:type n: int
|
|
43
|
-
:return: Returns a list of tuples (
|
|
44
|
-
:rtype:
|
|
34
|
+
:return: Returns a list of tuples (position, index, distance).
|
|
35
|
+
:rtype: int
|
|
45
36
|
"""
|
|
46
37
|
|
|
47
|
-
def find_range(
|
|
48
|
-
self, co: collections.abc.Sequence[float] | mathutils.Vector, radius: float
|
|
49
|
-
) -> list:
|
|
38
|
+
def find_range(self, co, radius: float) -> int:
|
|
50
39
|
"""Find all points within radius of co.
|
|
51
40
|
|
|
52
|
-
:param co:
|
|
53
|
-
:type co: collections.abc.Sequence[float] | mathutils.Vector
|
|
41
|
+
:param co: 3D coordinates.
|
|
54
42
|
:param radius: Distance to search for points.
|
|
55
43
|
:type radius: float
|
|
56
|
-
:return: Returns a list of tuples (
|
|
57
|
-
:rtype:
|
|
44
|
+
:return: Returns a list of tuples (position, index, distance).
|
|
45
|
+
:rtype: int
|
|
58
46
|
"""
|
|
59
47
|
|
|
60
|
-
def insert(
|
|
61
|
-
self, co: collections.abc.Sequence[float] | mathutils.Vector, index: int
|
|
62
|
-
):
|
|
48
|
+
def insert(self, co, index: int):
|
|
63
49
|
"""Insert a point into the KDTree.
|
|
64
50
|
|
|
65
51
|
:param co: Point 3d position.
|
|
66
|
-
:type co: collections.abc.Sequence[float] | mathutils.Vector
|
|
67
52
|
:param index: The index of the point.
|
|
68
53
|
:type index: int
|
|
69
54
|
"""
|
rna_info/__init__.pyi
CHANGED
|
@@ -66,7 +66,7 @@ class InfoPropertyRNA:
|
|
|
66
66
|
class_fmt="{:s}",
|
|
67
67
|
mathutils_fmt="{:s}",
|
|
68
68
|
collection_id="Collection",
|
|
69
|
-
enum_descr_override
|
|
69
|
+
enum_descr_override=None,
|
|
70
70
|
):
|
|
71
71
|
"""
|
|
72
72
|
|
|
@@ -77,7 +77,6 @@ class InfoPropertyRNA:
|
|
|
77
77
|
:param collection_id:
|
|
78
78
|
:param enum_descr_override: Optionally override items for enum.
|
|
79
79
|
Otherwise expand the literal items.
|
|
80
|
-
:type enum_descr_override: str | None
|
|
81
80
|
"""
|
|
82
81
|
|
|
83
82
|
class InfoStructRNA:
|
|
File without changes
|
|
File without changes
|