fake-bpy-module 20250630__py3-none-any.whl → 20250828__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.
- _bpy_internal/__init__.pyi +1 -0
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
- _bpy_types/__init__.pyi +1594 -0
- aud/__init__.pyi +84 -31
- bl_i18n_utils/settings/__init__.pyi +1 -1
- bl_i18n_utils/utils/__init__.pyi +4 -4
- bl_math/__init__.pyi +1 -1
- bl_operators/add_mesh_torus/__init__.pyi +2 -1
- bl_operators/anim/__init__.pyi +15 -14
- bl_operators/assets/__init__.pyi +4 -3
- bl_operators/bone_selection_sets/__init__.pyi +15 -14
- bl_operators/clip/__init__.pyi +12 -11
- bl_operators/connect_to_output/__init__.pyi +2 -1
- bl_operators/console/__init__.pyi +6 -5
- bl_operators/constraint/__init__.pyi +6 -5
- bl_operators/file/__init__.pyi +6 -5
- bl_operators/freestyle/__init__.pyi +5 -4
- bl_operators/geometry_nodes/__init__.pyi +5 -4
- bl_operators/grease_pencil/__init__.pyi +2 -1
- bl_operators/image/__init__.pyi +6 -5
- bl_operators/image_as_planes/__init__.pyi +3 -2
- bl_operators/mesh/__init__.pyi +4 -3
- bl_operators/node/__init__.pyi +18 -17
- bl_operators/object/__init__.pyi +17 -16
- bl_operators/object_align/__init__.pyi +2 -1
- bl_operators/object_quick_effects/__init__.pyi +5 -4
- bl_operators/object_randomize_transform/__init__.pyi +2 -1
- bl_operators/presets/__init__.pyi +26 -25
- bl_operators/rigidbody/__init__.pyi +4 -3
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -1
- bl_operators/sequencer/__init__.pyi +12 -11
- bl_operators/spreadsheet/__init__.pyi +2 -1
- bl_operators/userpref/__init__.pyi +26 -25
- bl_operators/uvcalc_follow_active/__init__.pyi +2 -1
- bl_operators/uvcalc_lightmap/__init__.pyi +3 -2
- bl_operators/uvcalc_transform/__init__.pyi +5 -4
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -1
- bl_operators/view3d/__init__.pyi +9 -8
- bl_operators/wm/__init__.pyi +48 -47
- bl_operators/world/__init__.pyi +3 -2
- bl_ui/__init__.pyi +4 -3
- bl_ui/anim/__init__.pyi +2 -1
- bl_ui/asset_shelf/__init__.pyi +2 -1
- bl_ui/generic_ui_list/__init__.pyi +6 -5
- bl_ui/node_add_menu/__init__.pyi +3 -2
- bl_ui/node_add_menu_compositor/__init__.pyi +19 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +133 -54
- bl_ui/node_add_menu_shader/__init__.pyi +11 -10
- bl_ui/node_add_menu_texture/__init__.pyi +10 -9
- bl_ui/properties_collection/__init__.pyi +9 -8
- bl_ui/properties_constraint/__init__.pyi +78 -77
- bl_ui/properties_data_armature/__init__.pyi +22 -21
- bl_ui/properties_data_bone/__init__.pyi +12 -11
- bl_ui/properties_data_camera/__init__.pyi +18 -17
- bl_ui/properties_data_curve/__init__.pyi +18 -17
- bl_ui/properties_data_curves/__init__.pyi +11 -10
- bl_ui/properties_data_empty/__init__.pyi +3 -2
- bl_ui/properties_data_grease_pencil/__init__.pyi +23 -22
- bl_ui/properties_data_lattice/__init__.pyi +7 -6
- bl_ui/properties_data_light/__init__.pyi +13 -12
- bl_ui/properties_data_lightprobe/__init__.pyi +16 -15
- bl_ui/properties_data_mesh/__init__.pyi +48 -22
- bl_ui/properties_data_metaball/__init__.pyi +9 -8
- bl_ui/properties_data_modifier/__init__.pyi +10 -9
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -7
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -1
- bl_ui/properties_data_speaker/__init__.pyi +9 -8
- bl_ui/properties_data_volume/__init__.pyi +12 -11
- bl_ui/properties_freestyle/__init__.pyi +27 -26
- bl_ui/properties_grease_pencil_common/__init__.pyi +11 -10
- bl_ui/properties_mask_common/__init__.pyi +8 -7
- bl_ui/properties_material/__init__.pyi +19 -18
- bl_ui/properties_material_gpencil/__init__.pyi +14 -13
- bl_ui/properties_object/__init__.pyi +24 -23
- bl_ui/properties_output/__init__.pyi +21 -20
- bl_ui/properties_paint_common/__init__.pyi +8 -4
- bl_ui/properties_particle/__init__.pyi +58 -55
- bl_ui/properties_physics_cloth/__init__.pyi +15 -14
- bl_ui/properties_physics_common/__init__.pyi +2 -1
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -22
- bl_ui/properties_physics_field/__init__.pyi +11 -10
- bl_ui/properties_physics_fluid/__init__.pyi +29 -28
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -1
- bl_ui/properties_physics_rigidbody/__init__.pyi +9 -8
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -13
- bl_ui/properties_physics_softbody/__init__.pyi +16 -15
- bl_ui/properties_render/__init__.pyi +44 -74
- bl_ui/properties_scene/__init__.pyi +48 -18
- bl_ui/properties_texture/__init__.pyi +30 -29
- bl_ui/properties_view_layer/__init__.pyi +52 -14
- bl_ui/properties_workspace/__init__.pyi +6 -5
- bl_ui/properties_world/__init__.pyi +14 -13
- bl_ui/space_clip/__init__.pyi +76 -73
- bl_ui/space_console/__init__.pyi +7 -6
- bl_ui/space_dopesheet/__init__.pyi +32 -31
- bl_ui/space_filebrowser/__init__.pyi +33 -30
- bl_ui/space_graph/__init__.pyi +24 -23
- bl_ui/space_image/__init__.pyi +88 -72
- bl_ui/space_info/__init__.pyi +7 -6
- bl_ui/space_nla/__init__.pyi +22 -19
- bl_ui/space_node/__init__.pyi +66 -31
- bl_ui/space_outliner/__init__.pyi +16 -15
- bl_ui/space_properties/__init__.pyi +5 -4
- bl_ui/space_sequencer/__init__.pyi +131 -91
- bl_ui/space_spreadsheet/__init__.pyi +4 -3
- bl_ui/space_statusbar/__init__.pyi +2 -1
- bl_ui/space_text/__init__.pyi +17 -16
- bl_ui/space_time/__init__.pyi +7 -6
- bl_ui/space_toolsystem_common/__init__.pyi +2 -2
- bl_ui/space_toolsystem_toolbar/__init__.pyi +23 -5
- bl_ui/space_topbar/__init__.pyi +28 -27
- bl_ui/space_userpref/__init__.pyi +103 -92
- bl_ui/space_view3d/__init__.pyi +268 -266
- bl_ui/space_view3d_toolbar/__init__.pyi +106 -99
- blf/__init__.pyi +3 -5
- bmesh/__init__.pyi +2 -2
- bmesh/geometry/__init__.pyi +1 -1
- bmesh/ops/__init__.pyi +29 -14
- bmesh/types/__init__.pyi +41 -46
- bmesh/utils/__init__.pyi +1 -0
- bpy/__init__.pyi +1 -1
- bpy/app/__init__.pyi +34 -37
- bpy/app/handlers/__init__.pyi +19 -19
- bpy/app/timers/__init__.pyi +2 -1
- bpy/app/translations/__init__.pyi +8 -8
- bpy/msgbus/__init__.pyi +3 -2
- bpy/ops/action/__init__.pyi +58 -20
- bpy/ops/anim/__init__.pyi +115 -31
- bpy/ops/armature/__init__.pyi +59 -19
- bpy/ops/asset/__init__.pyi +35 -11
- bpy/ops/boid/__init__.pyi +21 -7
- bpy/ops/brush/__init__.pyi +10 -4
- bpy/ops/buttons/__init__.pyi +12 -4
- bpy/ops/cachefile/__init__.pyi +6 -2
- bpy/ops/clip/__init__.pyi +132 -46
- bpy/ops/collection/__init__.pyi +23 -4
- bpy/ops/console/__init__.pyi +30 -10
- bpy/ops/constraint/__init__.pyi +12 -6
- bpy/ops/curve/__init__.pyi +72 -24
- bpy/ops/curves/__init__.pyi +68 -20
- bpy/ops/cycles/__init__.pyi +4 -2
- bpy/ops/dpaint/__init__.pyi +11 -3
- bpy/ops/ed/__init__.pyi +34 -10
- bpy/ops/export_scene/__init__.pyi +15 -15
- bpy/ops/extensions/__init__.pyi +45 -15
- bpy/ops/file/__init__.pyi +81 -30
- bpy/ops/fluid/__init__.pyi +39 -13
- bpy/ops/font/__init__.pyi +30 -10
- bpy/ops/geometry/__init__.pyi +9 -3
- bpy/ops/gizmogroup/__init__.pyi +3 -1
- bpy/ops/gpencil/__init__.pyi +20 -8
- bpy/ops/graph/__init__.pyi +67 -29
- bpy/ops/grease_pencil/__init__.pyi +178 -49
- bpy/ops/image/__init__.pyi +68 -58
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +3 -0
- bpy/ops/import_scene/__init__.pyi +15 -2
- bpy/ops/info/__init__.pyi +12 -4
- bpy/ops/lattice/__init__.pyi +9 -3
- bpy/ops/marker/__init__.pyi +8 -2
- bpy/ops/mask/__init__.pyi +53 -19
- bpy/ops/material/__init__.pyi +15 -3
- bpy/ops/mball/__init__.pyi +3 -1
- bpy/ops/mesh/__init__.pyi +116 -45
- bpy/ops/nla/__init__.pyi +67 -25
- bpy/ops/node/__init__.pyi +285 -119
- bpy/ops/object/__init__.pyi +278 -116
- bpy/ops/outliner/__init__.pyi +145 -49
- bpy/ops/paint/__init__.pyi +65 -37
- bpy/ops/paintcurve/__init__.pyi +16 -4
- bpy/ops/palette/__init__.pyi +11 -3
- bpy/ops/particle/__init__.pyi +66 -24
- bpy/ops/pointcloud/__init__.pyi +9 -3
- bpy/ops/pose/__init__.pyi +80 -28
- bpy/ops/poselib/__init__.pyi +19 -7
- bpy/ops/preferences/__init__.pyi +29 -11
- bpy/ops/ptcache/__init__.pyi +17 -5
- bpy/ops/render/__init__.pyi +10 -4
- bpy/ops/rigidbody/__init__.pyi +19 -7
- bpy/ops/scene/__init__.pyi +93 -22
- bpy/ops/screen/__init__.pyi +58 -20
- bpy/ops/script/__init__.pyi +3 -1
- bpy/ops/sculpt/__init__.pyi +30 -14
- bpy/ops/sculpt_curves/__init__.pyi +4 -2
- bpy/ops/sequencer/__init__.pyi +262 -125
- bpy/ops/sound/__init__.pyi +13 -5
- bpy/ops/spreadsheet/__init__.pyi +15 -5
- bpy/ops/text/__init__.pyi +85 -25
- bpy/ops/texture/__init__.pyi +11 -3
- bpy/ops/transform/__init__.pyi +7 -3
- bpy/ops/ui/__init__.pyi +98 -53
- bpy/ops/uv/__init__.pyi +43 -17
- bpy/ops/view2d/__init__.pyi +13 -3
- bpy/ops/view3d/__init__.pyi +116 -38
- bpy/ops/wm/__init__.pyi +144 -86
- bpy/ops/workspace/__init__.pyi +31 -6
- bpy/ops/world/__init__.pyi +9 -3
- bpy/path/__init__.pyi +1 -1
- bpy/props/__init__.pyi +31 -31
- bpy/stub_internal/rna_enums/__init__.pyi +40 -25
- bpy/types/__init__.pyi +56561 -40144
- bpy/utils/__init__.pyi +8 -8
- bpy/utils/previews/__init__.pyi +2 -2
- bpy/utils/units/__init__.pyi +5 -3
- bpy_extras/anim_utils/__init__.pyi +1 -1
- bpy_extras/id_map_utils/__init__.pyi +1 -1
- bpy_extras/image_utils/__init__.pyi +2 -2
- bpy_extras/io_utils/__init__.pyi +5 -5
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/node_shader_utils/__init__.pyi +1 -1
- bpy_extras/object_utils/__init__.pyi +1 -1
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
- {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250828.dist-info}/METADATA +1 -1
- fake_bpy_module-20250828.dist-info/RECORD +370 -0
- {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250828.dist-info}/top_level.txt +1 -1
- freestyle/chainingiterators/__init__.pyi +5 -5
- freestyle/predicates/__init__.pyi +2 -2
- freestyle/shaders/__init__.pyi +16 -17
- freestyle/types/__init__.pyi +25 -27
- freestyle/utils/__init__.pyi +5 -5
- gpu/platform/__init__.pyi +2 -2
- gpu/shader/__init__.pyi +3 -3
- gpu/state/__init__.pyi +1 -1
- gpu/texture/__init__.pyi +3 -3
- gpu/types/__init__.pyi +25 -14
- gpu_extras/batch/__init__.pyi +1 -1
- idprop/types/__init__.pyi +2 -2
- imbuf/__init__.pyi +1 -1
- imbuf/types/__init__.pyi +12 -6
- keyingsets_builtins/__init__.pyi +23 -22
- mathutils/__init__.pyi +157 -61
- mathutils/bvhtree/__init__.pyi +20 -6
- mathutils/geometry/__init__.pyi +54 -12
- mathutils/interpolate/__init__.pyi +4 -2
- mathutils/kdtree/__init__.pyi +1 -0
- mathutils/noise/__init__.pyi +61 -44
- rna_info/__init__.pyi +4 -1
- rna_prop_ui/__init__.pyi +1 -1
- bpy_types/__init__.pyi +0 -30
- fake_bpy_module-20250630.dist-info/RECORD +0 -367
- {bpy_types → _bpy_types}/py.typed +0 -0
- {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250828.dist-info}/WHEEL +0 -0
mathutils/geometry/__init__.pyi
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
The Blender geometry module
|
|
2
|
+
The Blender geometry module.
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
@@ -13,6 +13,7 @@ def area_tri(
|
|
|
13
13
|
v1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
14
14
|
v2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
15
15
|
v3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
16
|
+
/,
|
|
16
17
|
) -> float:
|
|
17
18
|
"""Returns the area size of the 2D or 3D triangle defined.
|
|
18
19
|
|
|
@@ -33,6 +34,7 @@ def barycentric_transform(
|
|
|
33
34
|
tri_b1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
34
35
|
tri_b2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
35
36
|
tri_b3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
37
|
+
/,
|
|
36
38
|
) -> mathutils.Vector:
|
|
37
39
|
"""Return a transformed point, the transformation is defined by 2 triangles.
|
|
38
40
|
|
|
@@ -56,6 +58,7 @@ def barycentric_transform(
|
|
|
56
58
|
|
|
57
59
|
def box_fit_2d(
|
|
58
60
|
points: collections.abc.Sequence[collections.abc.Sequence[float]],
|
|
61
|
+
/,
|
|
59
62
|
) -> float:
|
|
60
63
|
"""Returns an angle that best fits the points to an axis aligned rectangle
|
|
61
64
|
|
|
@@ -65,7 +68,10 @@ def box_fit_2d(
|
|
|
65
68
|
:rtype: float
|
|
66
69
|
"""
|
|
67
70
|
|
|
68
|
-
def box_pack_2d(
|
|
71
|
+
def box_pack_2d(
|
|
72
|
+
boxes: list[list[float]],
|
|
73
|
+
/,
|
|
74
|
+
) -> tuple[float, float]:
|
|
69
75
|
"""Returns a tuple with the width and height of the packed bounding box.
|
|
70
76
|
|
|
71
77
|
: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.
|
|
@@ -79,6 +85,7 @@ def closest_point_on_tri(
|
|
|
79
85
|
tri_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
80
86
|
tri_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
81
87
|
tri_p3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
88
|
+
/,
|
|
82
89
|
) -> mathutils.Vector:
|
|
83
90
|
"""Takes 4 vectors: one is the point and the next 3 define the triangle.
|
|
84
91
|
|
|
@@ -113,7 +120,8 @@ def delaunay_2d_cdt(
|
|
|
113
120
|
faces: collections.abc.Sequence[collections.abc.Sequence[int]],
|
|
114
121
|
output_type: int,
|
|
115
122
|
epsilon: float,
|
|
116
|
-
need_ids=True,
|
|
123
|
+
need_ids: bool = True,
|
|
124
|
+
/,
|
|
117
125
|
) -> tuple[
|
|
118
126
|
list[mathutils.Vector],
|
|
119
127
|
list[tuple[int, int]],
|
|
@@ -139,13 +147,14 @@ def delaunay_2d_cdt(
|
|
|
139
147
|
:type vert_coords: collections.abc.Sequence[collections.abc.Sequence[float] | mathutils.Vector]
|
|
140
148
|
:param edges: Edges, as pairs of indices in vert_coords
|
|
141
149
|
:type edges: collections.abc.Sequence[collections.abc.Sequence[int, int]]
|
|
142
|
-
:param faces: Faces, each sublist is a face, as indices in vert_coords (CCW oriented)
|
|
150
|
+
:param faces: Faces, each sublist is a face, as indices in vert_coords (CCW oriented).
|
|
143
151
|
:type faces: collections.abc.Sequence[collections.abc.Sequence[int]]
|
|
144
152
|
: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.
|
|
145
153
|
:type output_type: int
|
|
146
154
|
:param epsilon: For nearness tests; should not be zero
|
|
147
155
|
:type epsilon: float
|
|
148
156
|
:param need_ids: are the orig output arrays needed?
|
|
157
|
+
:type need_ids: bool
|
|
149
158
|
:return: Output tuple, (vert_coords, edges, faces, orig_verts, orig_edges, orig_faces)
|
|
150
159
|
:rtype: tuple[list[mathutils.Vector], list[tuple[int, int]], list[list[int]], list[list[int]], list[list[int]], list[list[int]]]
|
|
151
160
|
"""
|
|
@@ -154,6 +163,7 @@ def distance_point_to_plane(
|
|
|
154
163
|
pt: collections.abc.Sequence[float] | mathutils.Vector,
|
|
155
164
|
plane_co: collections.abc.Sequence[float] | mathutils.Vector,
|
|
156
165
|
plane_no: collections.abc.Sequence[float] | mathutils.Vector,
|
|
166
|
+
/,
|
|
157
167
|
) -> float:
|
|
158
168
|
"""Returns the signed distance between a point and a plane (negative when below the normal).
|
|
159
169
|
|
|
@@ -172,6 +182,7 @@ def interpolate_bezier(
|
|
|
172
182
|
handle2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
173
183
|
knot2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
174
184
|
resolution: int,
|
|
185
|
+
/,
|
|
175
186
|
) -> list[mathutils.Vector]:
|
|
176
187
|
"""Interpolate a bezier spline segment.
|
|
177
188
|
|
|
@@ -194,6 +205,7 @@ def intersect_line_line(
|
|
|
194
205
|
v2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
195
206
|
v3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
196
207
|
v4: collections.abc.Sequence[float] | mathutils.Vector,
|
|
208
|
+
/,
|
|
197
209
|
) -> None | tuple[mathutils.Vector, mathutils.Vector]:
|
|
198
210
|
"""Returns a tuple with the points on each line respectively closest to the other.
|
|
199
211
|
|
|
@@ -214,6 +226,7 @@ def intersect_line_line_2d(
|
|
|
214
226
|
lineA_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
215
227
|
lineB_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
216
228
|
lineB_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
229
|
+
/,
|
|
217
230
|
) -> None | mathutils.Vector:
|
|
218
231
|
"""Takes 2 segments (defined by 4 vectors) and returns a vector for their point of intersection or None.
|
|
219
232
|
|
|
@@ -234,7 +247,8 @@ def intersect_line_plane(
|
|
|
234
247
|
line_b: collections.abc.Sequence[float] | mathutils.Vector,
|
|
235
248
|
plane_co: collections.abc.Sequence[float] | mathutils.Vector,
|
|
236
249
|
plane_no: collections.abc.Sequence[float] | mathutils.Vector,
|
|
237
|
-
no_flip=False,
|
|
250
|
+
no_flip: bool = False,
|
|
251
|
+
/,
|
|
238
252
|
) -> None | mathutils.Vector:
|
|
239
253
|
"""Calculate the intersection between a line (as 2 vectors) and a plane.
|
|
240
254
|
Returns a vector for the intersection or None.
|
|
@@ -247,6 +261,8 @@ def intersect_line_plane(
|
|
|
247
261
|
:type plane_co: collections.abc.Sequence[float] | mathutils.Vector
|
|
248
262
|
:param plane_no: The direction the plane is facing
|
|
249
263
|
:type plane_no: collections.abc.Sequence[float] | mathutils.Vector
|
|
264
|
+
:param no_flip: Not implemented
|
|
265
|
+
:type no_flip: bool
|
|
250
266
|
:return: The point of intersection or None when not found
|
|
251
267
|
:rtype: None | mathutils.Vector
|
|
252
268
|
"""
|
|
@@ -256,7 +272,8 @@ def intersect_line_sphere(
|
|
|
256
272
|
line_b: collections.abc.Sequence[float] | mathutils.Vector,
|
|
257
273
|
sphere_co: collections.abc.Sequence[float] | mathutils.Vector,
|
|
258
274
|
sphere_radius: float,
|
|
259
|
-
clip=True,
|
|
275
|
+
clip: bool = True,
|
|
276
|
+
/,
|
|
260
277
|
) -> tuple[mathutils.Vector | None, mathutils.Vector | None]:
|
|
261
278
|
"""Takes a line (as 2 points) and a sphere (as a point and a radius) and
|
|
262
279
|
returns the intersection
|
|
@@ -269,6 +286,8 @@ def intersect_line_sphere(
|
|
|
269
286
|
:type sphere_co: collections.abc.Sequence[float] | mathutils.Vector
|
|
270
287
|
:param sphere_radius: Radius of the sphere
|
|
271
288
|
:type sphere_radius: float
|
|
289
|
+
:param clip: When False, dont restrict the intersection to the area of the sphere.
|
|
290
|
+
:type clip: bool
|
|
272
291
|
:return: The intersection points as a pair of vectors or None when there is no intersection
|
|
273
292
|
:rtype: tuple[mathutils.Vector | None, mathutils.Vector | None]
|
|
274
293
|
"""
|
|
@@ -278,7 +297,8 @@ def intersect_line_sphere_2d(
|
|
|
278
297
|
line_b: collections.abc.Sequence[float] | mathutils.Vector,
|
|
279
298
|
sphere_co: collections.abc.Sequence[float] | mathutils.Vector,
|
|
280
299
|
sphere_radius: float,
|
|
281
|
-
clip=True,
|
|
300
|
+
clip: bool = True,
|
|
301
|
+
/,
|
|
282
302
|
) -> tuple[mathutils.Vector | None, mathutils.Vector | None]:
|
|
283
303
|
"""Takes a line (as 2 points) and a sphere (as a point and a radius) and
|
|
284
304
|
returns the intersection
|
|
@@ -291,6 +311,8 @@ def intersect_line_sphere_2d(
|
|
|
291
311
|
:type sphere_co: collections.abc.Sequence[float] | mathutils.Vector
|
|
292
312
|
:param sphere_radius: Radius of the sphere
|
|
293
313
|
:type sphere_radius: float
|
|
314
|
+
:param clip: When False, dont restrict the intersection to the area of the sphere.
|
|
315
|
+
:type clip: bool
|
|
294
316
|
:return: The intersection points as a pair of vectors or None when there is no intersection
|
|
295
317
|
:rtype: tuple[mathutils.Vector | None, mathutils.Vector | None]
|
|
296
318
|
"""
|
|
@@ -300,6 +322,7 @@ def intersect_plane_plane(
|
|
|
300
322
|
plane_a_no: collections.abc.Sequence[float] | mathutils.Vector,
|
|
301
323
|
plane_b_co: collections.abc.Sequence[float] | mathutils.Vector,
|
|
302
324
|
plane_b_no: collections.abc.Sequence[float] | mathutils.Vector,
|
|
325
|
+
/,
|
|
303
326
|
) -> tuple[None, None] | tuple[mathutils.Vector, mathutils.Vector]:
|
|
304
327
|
"""Return the intersection between two planes
|
|
305
328
|
|
|
@@ -311,7 +334,7 @@ def intersect_plane_plane(
|
|
|
311
334
|
:type plane_b_co: collections.abc.Sequence[float] | mathutils.Vector
|
|
312
335
|
:param plane_b_no: Normal of the second plane
|
|
313
336
|
:type plane_b_no: collections.abc.Sequence[float] | mathutils.Vector
|
|
314
|
-
:return: The line of the intersection represented as a point and a vector or None if the intersection
|
|
337
|
+
:return: The line of the intersection represented as a point and a vector or None if the intersection cant be calculated
|
|
315
338
|
:rtype: tuple[None, None] | tuple[mathutils.Vector, mathutils.Vector]
|
|
316
339
|
"""
|
|
317
340
|
|
|
@@ -319,6 +342,7 @@ def intersect_point_line(
|
|
|
319
342
|
pt: collections.abc.Sequence[float] | mathutils.Vector,
|
|
320
343
|
line_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
321
344
|
line_p2,
|
|
345
|
+
/,
|
|
322
346
|
) -> tuple[mathutils.Vector, float]:
|
|
323
347
|
"""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.
|
|
324
348
|
|
|
@@ -335,6 +359,7 @@ def intersect_point_quad_2d(
|
|
|
335
359
|
quad_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
336
360
|
quad_p3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
337
361
|
quad_p4: collections.abc.Sequence[float] | mathutils.Vector,
|
|
362
|
+
/,
|
|
338
363
|
) -> int:
|
|
339
364
|
"""Takes 5 vectors (using only the x and y coordinates): one is the point and the next 4 define the quad,
|
|
340
365
|
only the x and y are used from the vectors. Returns 1 if the point is within the quad, otherwise 0.
|
|
@@ -358,6 +383,7 @@ def intersect_point_tri(
|
|
|
358
383
|
tri_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
359
384
|
tri_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
360
385
|
tri_p3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
386
|
+
/,
|
|
361
387
|
) -> None | mathutils.Vector:
|
|
362
388
|
"""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.
|
|
363
389
|
|
|
@@ -378,6 +404,7 @@ def intersect_point_tri_2d(
|
|
|
378
404
|
tri_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
379
405
|
tri_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
380
406
|
tri_p3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
407
|
+
/,
|
|
381
408
|
) -> int:
|
|
382
409
|
"""Takes 4 vectors (using only the x and y coordinates): one is the point and the next 3 define the triangle. Returns 1 if the point is within the triangle, otherwise 0.
|
|
383
410
|
|
|
@@ -399,6 +426,7 @@ def intersect_ray_tri(
|
|
|
399
426
|
ray: collections.abc.Sequence[float] | mathutils.Vector,
|
|
400
427
|
orig: collections.abc.Sequence[float] | mathutils.Vector,
|
|
401
428
|
clip: bool = True,
|
|
429
|
+
/,
|
|
402
430
|
) -> None | mathutils.Vector:
|
|
403
431
|
"""Returns the intersection between a ray and a triangle, if possible, returns None otherwise.
|
|
404
432
|
|
|
@@ -412,7 +440,7 @@ def intersect_ray_tri(
|
|
|
412
440
|
:type ray: collections.abc.Sequence[float] | mathutils.Vector
|
|
413
441
|
:param orig: Origin
|
|
414
442
|
:type orig: collections.abc.Sequence[float] | mathutils.Vector
|
|
415
|
-
:param clip: When False,
|
|
443
|
+
:param clip: When False, dont restrict the intersection to the area of the triangle, use the infinite plane defined by the triangle.
|
|
416
444
|
:type clip: bool
|
|
417
445
|
:return: The point of intersection or None if no intersection is found
|
|
418
446
|
:rtype: None | mathutils.Vector
|
|
@@ -423,6 +451,7 @@ def intersect_sphere_sphere_2d(
|
|
|
423
451
|
radius_a: float,
|
|
424
452
|
p_b: collections.abc.Sequence[float] | mathutils.Vector,
|
|
425
453
|
radius_b: float,
|
|
454
|
+
/,
|
|
426
455
|
) -> tuple[None, None] | tuple[mathutils.Vector, mathutils.Vector]:
|
|
427
456
|
"""Returns 2 points on between intersecting circles.
|
|
428
457
|
|
|
@@ -438,14 +467,22 @@ def intersect_sphere_sphere_2d(
|
|
|
438
467
|
:rtype: tuple[None, None] | tuple[mathutils.Vector, mathutils.Vector]
|
|
439
468
|
"""
|
|
440
469
|
|
|
441
|
-
def intersect_tri_tri_2d(
|
|
470
|
+
def intersect_tri_tri_2d(
|
|
471
|
+
tri_a1,
|
|
472
|
+
tri_a2,
|
|
473
|
+
tri_a3,
|
|
474
|
+
tri_b1,
|
|
475
|
+
tri_b2,
|
|
476
|
+
tri_b3,
|
|
477
|
+
/,
|
|
478
|
+
) -> bool:
|
|
442
479
|
"""Check if two 2D triangles intersect.
|
|
443
480
|
|
|
444
481
|
:rtype: bool
|
|
445
482
|
"""
|
|
446
483
|
|
|
447
484
|
def normal(
|
|
448
|
-
vectors: collections.abc.Sequence[collections.abc.Sequence[float]],
|
|
485
|
+
*vectors: collections.abc.Sequence[collections.abc.Sequence[float]],
|
|
449
486
|
) -> mathutils.Vector:
|
|
450
487
|
"""Returns the normal of a 3D polygon.
|
|
451
488
|
|
|
@@ -458,6 +495,7 @@ def points_in_planes(
|
|
|
458
495
|
planes: list[collections.abc.Sequence[float] | mathutils.Vector],
|
|
459
496
|
epsilon_coplanar: float = 0.0001,
|
|
460
497
|
epsilon_isect: float = 1e-06,
|
|
498
|
+
/,
|
|
461
499
|
) -> tuple[list[mathutils.Vector], list[int]]:
|
|
462
500
|
"""Returns a list of points inside all planes given and a list of index values for the planes used.
|
|
463
501
|
|
|
@@ -471,7 +509,10 @@ def points_in_planes(
|
|
|
471
509
|
:rtype: tuple[list[mathutils.Vector], list[int]]
|
|
472
510
|
"""
|
|
473
511
|
|
|
474
|
-
def tessellate_polygon(
|
|
512
|
+
def tessellate_polygon(
|
|
513
|
+
polylines,
|
|
514
|
+
/,
|
|
515
|
+
) -> list[tuple[int, int, int]]:
|
|
475
516
|
"""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).
|
|
476
517
|
|
|
477
518
|
:param polylines: Polygons where each polygon is a sequence of 2D or 3D points.
|
|
@@ -483,6 +524,7 @@ def volume_tetrahedron(
|
|
|
483
524
|
v2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
484
525
|
v3: collections.abc.Sequence[float] | mathutils.Vector,
|
|
485
526
|
v4: collections.abc.Sequence[float] | mathutils.Vector,
|
|
527
|
+
/,
|
|
486
528
|
) -> float:
|
|
487
529
|
"""Return the volume formed by a tetrahedron (points can be in any order).
|
|
488
530
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
The Blender interpolate module
|
|
2
|
+
The Blender interpolate module.
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
@@ -9,7 +9,9 @@ import typing_extensions
|
|
|
9
9
|
import numpy.typing as npt
|
|
10
10
|
|
|
11
11
|
def poly_3d_calc(
|
|
12
|
-
veclist: collections.abc.Sequence[collections.abc.Sequence[float]],
|
|
12
|
+
veclist: collections.abc.Sequence[collections.abc.Sequence[float]],
|
|
13
|
+
pt,
|
|
14
|
+
/,
|
|
13
15
|
) -> list[float]:
|
|
14
16
|
"""Calculate barycentric weights for a point on a polygon.
|
|
15
17
|
|
mathutils/kdtree/__init__.pyi
CHANGED
mathutils/noise/__init__.pyi
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
The Blender noise module
|
|
2
|
+
The Blender noise module.
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
@@ -9,7 +9,10 @@ import typing_extensions
|
|
|
9
9
|
import numpy.typing as npt
|
|
10
10
|
import mathutils
|
|
11
11
|
|
|
12
|
-
def cell(
|
|
12
|
+
def cell(
|
|
13
|
+
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
14
|
+
/,
|
|
15
|
+
) -> float:
|
|
13
16
|
"""Returns cell noise value at the specified position.
|
|
14
17
|
|
|
15
18
|
:param position: The position to evaluate the selected noise function.
|
|
@@ -20,6 +23,7 @@ def cell(position: collections.abc.Sequence[float] | mathutils.Vector) -> float:
|
|
|
20
23
|
|
|
21
24
|
def cell_vector(
|
|
22
25
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
26
|
+
/,
|
|
23
27
|
) -> mathutils.Vector:
|
|
24
28
|
"""Returns cell noise vector at the specified position.
|
|
25
29
|
|
|
@@ -34,7 +38,9 @@ def fractal(
|
|
|
34
38
|
H: float,
|
|
35
39
|
lacunarity: float,
|
|
36
40
|
octaves: int,
|
|
37
|
-
|
|
41
|
+
/,
|
|
42
|
+
*,
|
|
43
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
38
44
|
) -> float:
|
|
39
45
|
"""Returns the fractal Brownian motion (fBm) noise value from the noise basis at the specified position.
|
|
40
46
|
|
|
@@ -46,8 +52,7 @@ def fractal(
|
|
|
46
52
|
:type lacunarity: float
|
|
47
53
|
:param octaves: The number of different noise frequencies used.
|
|
48
54
|
:type octaves: int
|
|
49
|
-
:param noise_basis:
|
|
50
|
-
:type noise_basis: str
|
|
55
|
+
:param noise_basis: A noise basis string.
|
|
51
56
|
:return: The fractal Brownian motion noise value.
|
|
52
57
|
:rtype: float
|
|
53
58
|
"""
|
|
@@ -58,7 +63,9 @@ def hetero_terrain(
|
|
|
58
63
|
lacunarity: float,
|
|
59
64
|
octaves: int,
|
|
60
65
|
offset: float,
|
|
61
|
-
|
|
66
|
+
/,
|
|
67
|
+
*,
|
|
68
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
62
69
|
) -> float:
|
|
63
70
|
"""Returns the heterogeneous terrain value from the noise basis at the specified position.
|
|
64
71
|
|
|
@@ -70,10 +77,9 @@ def hetero_terrain(
|
|
|
70
77
|
:type lacunarity: float
|
|
71
78
|
:param octaves: The number of different noise frequencies used.
|
|
72
79
|
:type octaves: int
|
|
73
|
-
:param offset: The height of the terrain above
|
|
80
|
+
:param offset: The height of the terrain above sea level.
|
|
74
81
|
:type offset: float
|
|
75
|
-
:param noise_basis:
|
|
76
|
-
:type noise_basis: str
|
|
82
|
+
:param noise_basis: A noise basis string.
|
|
77
83
|
:return: The heterogeneous terrain value.
|
|
78
84
|
:rtype: float
|
|
79
85
|
"""
|
|
@@ -85,7 +91,9 @@ def hybrid_multi_fractal(
|
|
|
85
91
|
octaves: int,
|
|
86
92
|
offset: float,
|
|
87
93
|
gain: float,
|
|
88
|
-
|
|
94
|
+
/,
|
|
95
|
+
*,
|
|
96
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
89
97
|
) -> float:
|
|
90
98
|
"""Returns hybrid multifractal value from the noise basis at the specified position.
|
|
91
99
|
|
|
@@ -97,12 +105,11 @@ def hybrid_multi_fractal(
|
|
|
97
105
|
:type lacunarity: float
|
|
98
106
|
:param octaves: The number of different noise frequencies used.
|
|
99
107
|
:type octaves: int
|
|
100
|
-
:param offset: The height of the terrain above
|
|
108
|
+
:param offset: The height of the terrain above sea level.
|
|
101
109
|
:type offset: float
|
|
102
110
|
:param gain: Scaling applied to the values.
|
|
103
111
|
:type gain: float
|
|
104
|
-
:param noise_basis:
|
|
105
|
-
:type noise_basis: str
|
|
112
|
+
:param noise_basis: A noise basis string.
|
|
106
113
|
:return: The hybrid multifractal value.
|
|
107
114
|
:rtype: float
|
|
108
115
|
"""
|
|
@@ -112,7 +119,9 @@ def multi_fractal(
|
|
|
112
119
|
H: float,
|
|
113
120
|
lacunarity: float,
|
|
114
121
|
octaves: int,
|
|
115
|
-
|
|
122
|
+
/,
|
|
123
|
+
*,
|
|
124
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
116
125
|
) -> float:
|
|
117
126
|
"""Returns multifractal noise value from the noise basis at the specified position.
|
|
118
127
|
|
|
@@ -124,36 +133,37 @@ def multi_fractal(
|
|
|
124
133
|
:type lacunarity: float
|
|
125
134
|
:param octaves: The number of different noise frequencies used.
|
|
126
135
|
:type octaves: int
|
|
127
|
-
:param noise_basis:
|
|
128
|
-
:type noise_basis: str
|
|
136
|
+
:param noise_basis: A noise basis string.
|
|
129
137
|
:return: The multifractal noise value.
|
|
130
138
|
:rtype: float
|
|
131
139
|
"""
|
|
132
140
|
|
|
133
141
|
def noise(
|
|
134
142
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
135
|
-
|
|
143
|
+
/,
|
|
144
|
+
*,
|
|
145
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
136
146
|
) -> float:
|
|
137
147
|
"""Returns noise value from the noise basis at the position specified.
|
|
138
148
|
|
|
139
149
|
:param position: The position to evaluate the selected noise function.
|
|
140
150
|
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
141
|
-
:param noise_basis:
|
|
142
|
-
:type noise_basis: str
|
|
151
|
+
:param noise_basis: A noise basis string.
|
|
143
152
|
:return: The noise value.
|
|
144
153
|
:rtype: float
|
|
145
154
|
"""
|
|
146
155
|
|
|
147
156
|
def noise_vector(
|
|
148
157
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
149
|
-
|
|
158
|
+
/,
|
|
159
|
+
*,
|
|
160
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
150
161
|
) -> mathutils.Vector:
|
|
151
162
|
"""Returns the noise vector from the noise basis at the specified position.
|
|
152
163
|
|
|
153
164
|
:param position: The position to evaluate the selected noise function.
|
|
154
165
|
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
155
|
-
:param noise_basis:
|
|
156
|
-
:type noise_basis: str
|
|
166
|
+
:param noise_basis: A noise basis string.
|
|
157
167
|
:return: The noise vector.
|
|
158
168
|
:rtype: mathutils.Vector
|
|
159
169
|
"""
|
|
@@ -165,7 +175,7 @@ def random() -> float:
|
|
|
165
175
|
:rtype: float
|
|
166
176
|
"""
|
|
167
177
|
|
|
168
|
-
def random_unit_vector(size: int = 3) -> mathutils.Vector:
|
|
178
|
+
def random_unit_vector(*, size: int = 3) -> mathutils.Vector:
|
|
169
179
|
"""Returns a unit vector with random entries.
|
|
170
180
|
|
|
171
181
|
:param size: The size of the vector to be produced, in the range [2, 4].
|
|
@@ -174,7 +184,7 @@ def random_unit_vector(size: int = 3) -> mathutils.Vector:
|
|
|
174
184
|
:rtype: mathutils.Vector
|
|
175
185
|
"""
|
|
176
186
|
|
|
177
|
-
def random_vector(size: int = 3) -> mathutils.Vector:
|
|
187
|
+
def random_vector(*, size: int = 3) -> mathutils.Vector:
|
|
178
188
|
"""Returns a vector with random entries in the range (-1, 1).
|
|
179
189
|
|
|
180
190
|
:param size: The size of the vector to be produced.
|
|
@@ -190,7 +200,9 @@ def ridged_multi_fractal(
|
|
|
190
200
|
octaves: int,
|
|
191
201
|
offset: float,
|
|
192
202
|
gain: float,
|
|
193
|
-
|
|
203
|
+
/,
|
|
204
|
+
*,
|
|
205
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
194
206
|
) -> float:
|
|
195
207
|
"""Returns ridged multifractal value from the noise basis at the specified position.
|
|
196
208
|
|
|
@@ -202,17 +214,19 @@ def ridged_multi_fractal(
|
|
|
202
214
|
:type lacunarity: float
|
|
203
215
|
:param octaves: The number of different noise frequencies used.
|
|
204
216
|
:type octaves: int
|
|
205
|
-
:param offset: The height of the terrain above
|
|
217
|
+
:param offset: The height of the terrain above sea level.
|
|
206
218
|
:type offset: float
|
|
207
219
|
:param gain: Scaling applied to the values.
|
|
208
220
|
:type gain: float
|
|
209
|
-
:param noise_basis:
|
|
210
|
-
:type noise_basis: str
|
|
221
|
+
:param noise_basis: A noise basis string.
|
|
211
222
|
:return: The ridged multifractal value.
|
|
212
223
|
:rtype: float
|
|
213
224
|
"""
|
|
214
225
|
|
|
215
|
-
def seed_set(
|
|
226
|
+
def seed_set(
|
|
227
|
+
seed: int,
|
|
228
|
+
/,
|
|
229
|
+
) -> None:
|
|
216
230
|
"""Sets the random seed used for random_unit_vector, and random.
|
|
217
231
|
|
|
218
232
|
:param seed: Seed used for the random generator.
|
|
@@ -224,7 +238,9 @@ def turbulence(
|
|
|
224
238
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
225
239
|
octaves: int,
|
|
226
240
|
hard: bool,
|
|
227
|
-
|
|
241
|
+
/,
|
|
242
|
+
*,
|
|
243
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
228
244
|
amplitude_scale: float = 0.5,
|
|
229
245
|
frequency_scale: float = 2.0,
|
|
230
246
|
) -> float:
|
|
@@ -236,8 +252,7 @@ def turbulence(
|
|
|
236
252
|
:type octaves: int
|
|
237
253
|
:param hard: Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
|
|
238
254
|
:type hard: bool
|
|
239
|
-
:param noise_basis:
|
|
240
|
-
:type noise_basis: str
|
|
255
|
+
:param noise_basis: A noise basis string.
|
|
241
256
|
:param amplitude_scale: The amplitude scaling factor.
|
|
242
257
|
:type amplitude_scale: float
|
|
243
258
|
:param frequency_scale: The frequency scaling factor
|
|
@@ -250,7 +265,9 @@ def turbulence_vector(
|
|
|
250
265
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
251
266
|
octaves: int,
|
|
252
267
|
hard: bool,
|
|
253
|
-
|
|
268
|
+
/,
|
|
269
|
+
*,
|
|
270
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
254
271
|
amplitude_scale: float = 0.5,
|
|
255
272
|
frequency_scale: float = 2.0,
|
|
256
273
|
) -> mathutils.Vector:
|
|
@@ -262,8 +279,7 @@ def turbulence_vector(
|
|
|
262
279
|
:type octaves: int
|
|
263
280
|
:param hard: Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
|
|
264
281
|
:type hard: bool
|
|
265
|
-
:param noise_basis:
|
|
266
|
-
:type noise_basis: str
|
|
282
|
+
:param noise_basis: A noise basis string.
|
|
267
283
|
:param amplitude_scale: The amplitude scaling factor.
|
|
268
284
|
:type amplitude_scale: float
|
|
269
285
|
:param frequency_scale: The frequency scaling factor
|
|
@@ -275,8 +291,10 @@ def turbulence_vector(
|
|
|
275
291
|
def variable_lacunarity(
|
|
276
292
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
277
293
|
distortion: float,
|
|
278
|
-
|
|
279
|
-
|
|
294
|
+
/,
|
|
295
|
+
*,
|
|
296
|
+
noise_type1="PERLIN_ORIGINAL",
|
|
297
|
+
noise_type2="PERLIN_ORIGINAL",
|
|
280
298
|
) -> float:
|
|
281
299
|
"""Returns variable lacunarity noise value, a distorted variety of noise, from noise type 1 distorted by noise type 2 at the specified position.
|
|
282
300
|
|
|
@@ -284,25 +302,24 @@ def variable_lacunarity(
|
|
|
284
302
|
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
285
303
|
:param distortion: The amount of distortion.
|
|
286
304
|
:type distortion: float
|
|
287
|
-
:param noise_type1:
|
|
288
|
-
:
|
|
289
|
-
:param noise_type2: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
290
|
-
:type noise_type2: str
|
|
305
|
+
:param noise_type1: A noise type string.
|
|
306
|
+
:param noise_type2: A noise type string.
|
|
291
307
|
:return: The variable lacunarity noise value.
|
|
292
308
|
:rtype: float
|
|
293
309
|
"""
|
|
294
310
|
|
|
295
311
|
def voronoi(
|
|
296
312
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
297
|
-
|
|
313
|
+
/,
|
|
314
|
+
*,
|
|
315
|
+
distance_metric="DISTANCE",
|
|
298
316
|
exponent: float = 2.5,
|
|
299
317
|
) -> list[list[float] | list[mathutils.Vector]]:
|
|
300
318
|
"""Returns a list of distances to the four closest features and their locations.
|
|
301
319
|
|
|
302
320
|
:param position: The position to evaluate the selected noise function.
|
|
303
321
|
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
304
|
-
:param distance_metric:
|
|
305
|
-
:type distance_metric: str
|
|
322
|
+
:param distance_metric: A distance metric string.
|
|
306
323
|
:param exponent: The exponent for Minkowski distance metric.
|
|
307
324
|
:type exponent: float
|
|
308
325
|
:return: A list of distances to the four closest features and their locations.
|
rna_info/__init__.pyi
CHANGED
|
@@ -34,6 +34,7 @@ class InfoPropertyRNA:
|
|
|
34
34
|
collection_type: typing.Any
|
|
35
35
|
default: typing.Any
|
|
36
36
|
default_str: typing.Any
|
|
37
|
+
deprecated: typing.Any
|
|
37
38
|
description: typing.Any
|
|
38
39
|
enum_items: typing.Any
|
|
39
40
|
enum_pointer: typing.Any
|
|
@@ -68,6 +69,7 @@ class InfoPropertyRNA:
|
|
|
68
69
|
as_arg=False,
|
|
69
70
|
class_fmt="{:s}",
|
|
70
71
|
mathutils_fmt="{:s}",
|
|
72
|
+
literal_fmt="'{:s}'",
|
|
71
73
|
collection_id="Collection",
|
|
72
74
|
enum_descr_override: None | str | None = None,
|
|
73
75
|
) -> None:
|
|
@@ -77,6 +79,7 @@ class InfoPropertyRNA:
|
|
|
77
79
|
:param as_arg:
|
|
78
80
|
:param class_fmt:
|
|
79
81
|
:param mathutils_fmt:
|
|
82
|
+
:param literal_fmt:
|
|
80
83
|
:param collection_id:
|
|
81
84
|
:param enum_descr_override: Optionally override items for enum.
|
|
82
85
|
Otherwise expand the literal items.
|
|
@@ -121,7 +124,7 @@ def float_as_string(f) -> None: ...
|
|
|
121
124
|
def get_direct_functions(rna_type) -> None: ...
|
|
122
125
|
def get_direct_properties(rna_type) -> None: ...
|
|
123
126
|
def get_py_class_from_rna(rna_type) -> None:
|
|
124
|
-
"""Gets the Python type for a class which
|
|
127
|
+
"""Gets the Python type for a class which isnt necessarily added to bpy.types."""
|
|
125
128
|
|
|
126
129
|
def main() -> None: ...
|
|
127
130
|
def range_str(val) -> None: ...
|
rna_prop_ui/__init__.pyi
CHANGED
bpy_types/__init__.pyi
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import typing
|
|
2
|
-
import collections.abc
|
|
3
|
-
import typing_extensions
|
|
4
|
-
import numpy.typing as npt
|
|
5
|
-
|
|
6
|
-
class _GenericUI:
|
|
7
|
-
@classmethod
|
|
8
|
-
def append(cls, draw_func) -> None:
|
|
9
|
-
"""Append a draw function to this menu,
|
|
10
|
-
takes the same arguments as the menus draw function
|
|
11
|
-
|
|
12
|
-
:param draw_func:
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
@classmethod
|
|
16
|
-
def is_extended(cls) -> None: ...
|
|
17
|
-
@classmethod
|
|
18
|
-
def prepend(cls, draw_func) -> None:
|
|
19
|
-
"""Prepend a draw function to this menu, takes the same arguments as
|
|
20
|
-
the menus draw function
|
|
21
|
-
|
|
22
|
-
:param draw_func:
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
@classmethod
|
|
26
|
-
def remove(cls, draw_func) -> None:
|
|
27
|
-
"""Remove a draw function that has been added to this menu
|
|
28
|
-
|
|
29
|
-
:param draw_func:
|
|
30
|
-
"""
|