fake-bpy-module 20250612__py3-none-any.whl → 20260118__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.
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -5
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -11
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -10
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +3 -1
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +4 -4
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- _blendfile_header/__init__.pyi +48 -0
- _bpy_internal/__init__.pyi +4 -1
- _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/disk_file_hash_service/__init__.pyi +19 -0
- _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
- _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
- _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
- _bpy_internal/filesystem/__init__.pyi +5 -0
- _bpy_internal/filesystem/locking/__init__.pyi +28 -0
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
- _bpy_internal/platform/__init__.pyi +5 -0
- _bpy_types/__init__.pyi +1592 -0
- {keyingsets_utils → _keyingsets_utils}/__init__.pyi +2 -0
- {rna_info → _rna_info}/__init__.pyi +4 -2
- addon_utils/__init__.pyi +0 -13
- aud/__init__.pyi +122 -145
- bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
- bl_app_templates_system/__init__.pyi +5 -0
- bl_app_templates_system/py.typed +0 -0
- bl_math/__init__.pyi +3 -13
- bl_operators/__init__.pyi +1 -0
- bl_operators/add_mesh_torus/__init__.pyi +2 -3
- bl_operators/anim/__init__.pyi +62 -38
- bl_operators/assets/__init__.pyi +4 -9
- bl_operators/bone_selection_sets/__init__.pyi +15 -42
- bl_operators/clip/__init__.pyi +12 -31
- bl_operators/connect_to_output/__init__.pyi +2 -3
- bl_operators/console/__init__.pyi +6 -15
- bl_operators/constraint/__init__.pyi +6 -13
- bl_operators/copy_global_transform/__init__.pyi +261 -0
- bl_operators/file/__init__.pyi +6 -11
- bl_operators/freestyle/__init__.pyi +5 -12
- bl_operators/geometry_nodes/__init__.pyi +5 -12
- bl_operators/grease_pencil/__init__.pyi +2 -3
- bl_operators/image/__init__.pyi +6 -15
- bl_operators/image_as_planes/__init__.pyi +3 -10
- bl_operators/mesh/__init__.pyi +3 -49
- bl_operators/node/__init__.pyi +294 -73
- bl_operators/object/__init__.pyi +17 -53
- bl_operators/object_align/__init__.pyi +2 -3
- bl_operators/object_quick_effects/__init__.pyi +5 -12
- bl_operators/object_randomize_transform/__init__.pyi +2 -3
- bl_operators/presets/__init__.pyi +27 -76
- bl_operators/rigidbody/__init__.pyi +4 -9
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -3
- bl_operators/sequencer/__init__.pyi +12 -27
- bl_operators/spreadsheet/__init__.pyi +2 -3
- bl_operators/userpref/__init__.pyi +26 -75
- bl_operators/uvcalc_follow_active/__init__.pyi +3 -4
- bl_operators/uvcalc_lightmap/__init__.pyi +3 -4
- bl_operators/uvcalc_transform/__init__.pyi +26 -16
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -3
- bl_operators/view3d/__init__.pyi +9 -24
- bl_operators/wm/__init__.pyi +48 -139
- bl_operators/world/__init__.pyi +3 -4
- bl_ui/__init__.pyi +7 -7
- bl_ui/anim/__init__.pyi +2 -3
- bl_ui/asset_shelf/__init__.pyi +2 -3
- bl_ui/generic_ui_list/__init__.pyi +4 -19
- bl_ui/node_add_menu/__init__.pyi +263 -7
- bl_ui/node_add_menu_compositor/__init__.pyi +96 -79
- bl_ui/node_add_menu_geometry/__init__.pyi +309 -270
- bl_ui/node_add_menu_shader/__init__.pyi +49 -49
- bl_ui/node_add_menu_texture/__init__.pyi +17 -62
- bl_ui/properties_collection/__init__.pyi +9 -22
- bl_ui/properties_constraint/__init__.pyi +129 -282
- bl_ui/properties_data_armature/__init__.pyi +22 -57
- bl_ui/properties_data_bone/__init__.pyi +12 -31
- bl_ui/properties_data_camera/__init__.pyi +18 -47
- bl_ui/properties_data_curve/__init__.pyi +18 -47
- bl_ui/properties_data_curves/__init__.pyi +11 -26
- bl_ui/properties_data_empty/__init__.pyi +3 -6
- bl_ui/properties_data_grease_pencil/__init__.pyi +23 -62
- bl_ui/properties_data_lattice/__init__.pyi +7 -14
- bl_ui/properties_data_light/__init__.pyi +13 -32
- bl_ui/properties_data_lightprobe/__init__.pyi +16 -43
- bl_ui/properties_data_mesh/__init__.pyi +47 -62
- bl_ui/properties_data_metaball/__init__.pyi +9 -20
- bl_ui/properties_data_modifier/__init__.pyi +22 -28
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -19
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -3
- bl_ui/properties_data_speaker/__init__.pyi +9 -20
- bl_ui/properties_data_volume/__init__.pyi +12 -29
- bl_ui/properties_freestyle/__init__.pyi +27 -76
- bl_ui/properties_grease_pencil_common/__init__.pyi +10 -168
- bl_ui/properties_mask_common/__init__.pyi +8 -21
- bl_ui/properties_material/__init__.pyi +26 -86
- bl_ui/properties_material_gpencil/__init__.pyi +36 -57
- bl_ui/properties_object/__init__.pyi +59 -65
- bl_ui/properties_output/__init__.pyi +21 -60
- bl_ui/properties_paint_common/__init__.pyi +30 -22
- bl_ui/properties_particle/__init__.pyi +58 -161
- bl_ui/properties_physics_cloth/__init__.pyi +15 -42
- bl_ui/properties_physics_common/__init__.pyi +2 -3
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -66
- bl_ui/properties_physics_field/__init__.pyi +11 -30
- bl_ui/properties_physics_fluid/__init__.pyi +29 -84
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -3
- bl_ui/properties_physics_rigidbody/__init__.pyi +9 -24
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -39
- bl_ui/properties_physics_softbody/__init__.pyi +16 -45
- bl_ui/properties_render/__init__.pyi +139 -197
- bl_ui/properties_scene/__init__.pyi +46 -50
- bl_ui/properties_strip/__init__.pyi +744 -0
- bl_ui/properties_strip_modifier/__init__.pyi +45 -0
- bl_ui/properties_texture/__init__.pyi +30 -83
- bl_ui/properties_view_layer/__init__.pyi +84 -39
- bl_ui/properties_workspace/__init__.pyi +6 -13
- bl_ui/properties_world/__init__.pyi +14 -35
- bl_ui/space_clip/__init__.pyi +150 -231
- bl_ui/space_console/__init__.pyi +7 -18
- bl_ui/space_dopesheet/__init__.pyi +143 -100
- bl_ui/space_filebrowser/__init__.pyi +33 -90
- bl_ui/space_graph/__init__.pyi +48 -85
- bl_ui/space_image/__init__.pyi +111 -229
- bl_ui/space_info/__init__.pyi +7 -18
- bl_ui/space_nla/__init__.pyi +44 -73
- bl_ui/space_node/__init__.pyi +161 -123
- bl_ui/space_outliner/__init__.pyi +16 -45
- bl_ui/space_properties/__init__.pyi +34 -10
- bl_ui/space_sequencer/__init__.pyi +164 -901
- bl_ui/space_spreadsheet/__init__.pyi +4 -9
- bl_ui/space_statusbar/__init__.pyi +2 -3
- bl_ui/space_text/__init__.pyi +17 -48
- bl_ui/space_time/__init__.pyi +25 -71
- bl_ui/space_toolsystem_common/__init__.pyi +2 -2
- bl_ui/space_toolsystem_toolbar/__init__.pyi +30 -7
- bl_ui/space_topbar/__init__.pyi +35 -79
- bl_ui/space_userpref/__init__.pyi +185 -321
- bl_ui/space_view3d/__init__.pyi +337 -817
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +110 -880
- bl_ui/utils/__init__.pyi +0 -17
- blend_render_info/__init__.pyi +1 -0
- blf/__init__.pyi +8 -54
- bmesh/__init__.pyi +2 -9
- bmesh/geometry/__init__.pyi +1 -4
- bmesh/ops/__init__.pyi +125 -508
- bmesh/types/__init__.pyi +318 -664
- bmesh/utils/__init__.pyi +17 -43
- bpy/__init__.pyi +1 -1
- bpy/app/__init__.pyi +93 -88
- bpy/app/handlers/__init__.pyi +19 -19
- bpy/app/icons/__init__.pyi +0 -6
- bpy/app/timers/__init__.pyi +2 -7
- bpy/app/translations/__init__.pyi +8 -23
- bpy/msgbus/__init__.pyi +4 -6
- bpy/ops/action/__init__.pyi +68 -199
- bpy/ops/anim/__init__.pyi +142 -299
- bpy/ops/armature/__init__.pyi +78 -209
- bpy/ops/asset/__init__.pyi +46 -108
- bpy/ops/boid/__init__.pyi +28 -45
- bpy/ops/brush/__init__.pyi +13 -108
- bpy/ops/buttons/__init__.pyi +16 -75
- bpy/ops/cachefile/__init__.pyi +8 -65
- bpy/ops/camera/__init__.pyi +0 -11
- bpy/ops/clip/__init__.pyi +173 -471
- bpy/ops/cloth/__init__.pyi +0 -5
- bpy/ops/collection/__init__.pyi +23 -36
- bpy/ops/console/__init__.pyi +40 -98
- bpy/ops/constraint/__init__.pyi +14 -85
- bpy/ops/curve/__init__.pyi +94 -277
- bpy/ops/curves/__init__.pyi +119 -166
- bpy/ops/cycles/__init__.pyi +4 -15
- bpy/ops/dpaint/__init__.pyi +14 -24
- bpy/ops/ed/__init__.pyi +44 -92
- bpy/ops/export_anim/__init__.pyi +2 -10
- bpy/ops/export_scene/__init__.pyi +16 -170
- bpy/ops/extensions/__init__.pyi +60 -165
- bpy/ops/file/__init__.pyi +110 -246
- bpy/ops/fluid/__init__.pyi +52 -83
- bpy/ops/font/__init__.pyi +40 -144
- bpy/ops/geometry/__init__.pyi +12 -127
- bpy/ops/gizmogroup/__init__.pyi +4 -13
- bpy/ops/gpencil/__init__.pyi +22 -54
- bpy/ops/graph/__init__.pyi +92 -343
- bpy/ops/grease_pencil/__init__.pyi +218 -550
- bpy/ops/image/__init__.pyi +85 -435
- bpy/ops/import_anim/__init__.pyi +3 -17
- bpy/ops/import_curve/__init__.pyi +2 -5
- bpy/ops/import_scene/__init__.pyi +15 -49
- bpy/ops/info/__init__.pyi +16 -39
- bpy/ops/lattice/__init__.pyi +12 -36
- bpy/ops/marker/__init__.pyi +12 -51
- bpy/ops/mask/__init__.pyi +68 -193
- bpy/ops/material/__init__.pyi +18 -18
- bpy/ops/mball/__init__.pyi +4 -31
- bpy/ops/mesh/__init__.pyi +140 -967
- bpy/ops/nla/__init__.pyi +87 -206
- bpy/ops/node/__init__.pyi +714 -744
- bpy/ops/object/__init__.pyi +461 -1341
- bpy/ops/outliner/__init__.pyi +192 -376
- bpy/ops/paint/__init__.pyi +94 -319
- bpy/ops/paintcurve/__init__.pyi +20 -40
- bpy/ops/palette/__init__.pyi +14 -30
- bpy/ops/particle/__init__.pyi +86 -184
- bpy/ops/pointcloud/__init__.pyi +12 -38
- bpy/ops/pose/__init__.pyi +108 -261
- bpy/ops/poselib/__init__.pyi +32 -67
- bpy/ops/preferences/__init__.pyi +37 -187
- bpy/ops/ptcache/__init__.pyi +22 -36
- bpy/ops/render/__init__.pyi +20 -72
- bpy/ops/rigidbody/__init__.pyi +25 -63
- bpy/ops/scene/__init__.pyi +122 -181
- bpy/ops/screen/__init__.pyi +93 -221
- bpy/ops/script/__init__.pyi +4 -13
- bpy/ops/sculpt/__init__.pyi +69 -324
- bpy/ops/sculpt_curves/__init__.pyi +10 -23
- bpy/ops/sequencer/__init__.pyi +410 -730
- bpy/ops/sound/__init__.pyi +16 -114
- bpy/ops/spreadsheet/__init__.pyi +20 -37
- bpy/ops/surface/__init__.pyi +0 -48
- bpy/ops/text/__init__.pyi +112 -250
- bpy/ops/text_editor/__init__.pyi +0 -5
- bpy/ops/texture/__init__.pyi +14 -21
- bpy/ops/transform/__init__.pyi +18 -386
- bpy/ops/ui/__init__.pyi +117 -188
- bpy/ops/uilist/__init__.pyi +0 -13
- bpy/ops/uv/__init__.pyi +238 -305
- bpy/ops/view2d/__init__.pyi +16 -76
- bpy/ops/view3d/__init__.pyi +153 -377
- bpy/ops/wm/__init__.pyi +277 -1397
- bpy/ops/workspace/__init__.pyi +32 -39
- bpy/ops/world/__init__.pyi +10 -12
- bpy/path/__init__.pyi +1 -35
- bpy/props/__init__.pyi +347 -218
- bpy/stub_internal/rna_enums/__init__.pyi +142 -108
- bpy/types/__init__.pyi +77367 -101305
- bpy/utils/__init__.pyi +11 -82
- bpy/utils/previews/__init__.pyi +2 -11
- bpy/utils/units/__init__.pyi +5 -15
- bpy_extras/anim_utils/__init__.pyi +24 -16
- bpy_extras/bmesh_utils/__init__.pyi +0 -1
- bpy_extras/id_map_utils/__init__.pyi +14 -6
- bpy_extras/image_utils/__init__.pyi +2 -11
- bpy_extras/io_utils/__init__.pyi +8 -27
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/mesh_utils/__init__.pyi +0 -12
- bpy_extras/node_shader_utils/__init__.pyi +1 -9
- bpy_extras/object_utils/__init__.pyi +1 -15
- bpy_extras/view3d_utils/__init__.pyi +0 -18
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/METADATA +4 -1
- fake_bpy_module-20260118.dist-info/RECORD +385 -0
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/top_level.txt +17 -16
- freestyle/chainingiterators/__init__.pyi +5 -27
- freestyle/functions/__init__.pyi +0 -139
- freestyle/predicates/__init__.pyi +2 -53
- freestyle/shaders/__init__.pyi +15 -81
- freestyle/types/__init__.pyi +159 -799
- freestyle/utils/ContextFunctions/__init__.pyi +0 -23
- freestyle/utils/__init__.pyi +5 -11
- gpu/capabilities/__init__.pyi +0 -21
- gpu/matrix/__init__.pyi +1 -10
- gpu/platform/__init__.pyi +2 -7
- gpu/shader/__init__.pyi +26 -9
- gpu/state/__init__.pyi +60 -39
- gpu/texture/__init__.pyi +3 -5
- gpu/types/__init__.pyi +116 -184
- gpu_extras/batch/__init__.pyi +1 -5
- gpu_extras/presets/__init__.pyi +6 -8
- idprop/types/__init__.pyi +6 -6
- imbuf/__init__.pyi +3 -10
- imbuf/types/__init__.pyi +7 -21
- keyingsets_builtins/__init__.pyi +24 -67
- mathutils/__init__.pyi +241 -2207
- mathutils/bvhtree/__init__.pyi +18 -26
- mathutils/geometry/__init__.pyi +82 -132
- mathutils/interpolate/__init__.pyi +6 -5
- mathutils/kdtree/__init__.pyi +1 -11
- mathutils/noise/__init__.pyi +61 -106
- rna_prop_ui/__init__.pyi +1 -1
- bgl/__init__.pyi +0 -4256
- bpy_types/__init__.pyi +0 -30
- fake_bpy_module-20250612.dist-info/RECORD +0 -367
- {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
- {bgl → _bl_console_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
- {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
- {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
- {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
- {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
- {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
- {bl_ui_utils → _blendfile_header}/py.typed +0 -0
- /_bpy_internal/{freedesktop → platform/freedesktop}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {bpy_types → _bpy_types}/py.typed +0 -0
- {console_python → _console_python}/__init__.pyi +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/__init__.pyi +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/__init__.pyi +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/WHEEL +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
The Blender interpolate module
|
|
2
|
+
The Blender interpolate module.
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
@@ -9,12 +9,13 @@ 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: collections.abc.Sequence[float],
|
|
14
|
+
/,
|
|
13
15
|
) -> list[float]:
|
|
14
16
|
"""Calculate barycentric weights for a point on a polygon.
|
|
15
17
|
|
|
16
18
|
:param veclist: Sequence of 3D positions.
|
|
17
|
-
:
|
|
18
|
-
:
|
|
19
|
-
:rtype: list[float]
|
|
19
|
+
:param pt: 2D or 3D position.
|
|
20
|
+
:return: list of per-vector weights.
|
|
20
21
|
"""
|
mathutils/kdtree/__init__.pyi
CHANGED
|
@@ -20,16 +20,14 @@ class KDTree:
|
|
|
20
20
|
def find(
|
|
21
21
|
self,
|
|
22
22
|
co: collections.abc.Sequence[float],
|
|
23
|
+
*,
|
|
23
24
|
filter: collections.abc.Callable[int, bool] | None = None,
|
|
24
25
|
) -> tuple[mathutils.Vector, int, float]:
|
|
25
26
|
"""Find nearest point to co.
|
|
26
27
|
|
|
27
28
|
:param co: 3D coordinates.
|
|
28
|
-
:type co: collections.abc.Sequence[float]
|
|
29
29
|
:param filter: function which takes an index and returns True for indices to include in the search.
|
|
30
|
-
:type filter: collections.abc.Callable[int, bool] | None
|
|
31
30
|
:return: Returns (position, index, distance).
|
|
32
|
-
:rtype: tuple[mathutils.Vector, int, float]
|
|
33
31
|
"""
|
|
34
32
|
|
|
35
33
|
def find_n(
|
|
@@ -38,11 +36,8 @@ class KDTree:
|
|
|
38
36
|
"""Find nearest n points to co.
|
|
39
37
|
|
|
40
38
|
:param co: 3D coordinates.
|
|
41
|
-
:type co: collections.abc.Sequence[float]
|
|
42
39
|
:param n: Number of points to find.
|
|
43
|
-
:type n: int
|
|
44
40
|
:return: Returns a list of tuples (position, index, distance).
|
|
45
|
-
:rtype: list[tuple[mathutils.Vector, int, float]]
|
|
46
41
|
"""
|
|
47
42
|
|
|
48
43
|
def find_range(
|
|
@@ -51,20 +46,15 @@ class KDTree:
|
|
|
51
46
|
"""Find all points within radius of co.
|
|
52
47
|
|
|
53
48
|
:param co: 3D coordinates.
|
|
54
|
-
:type co: collections.abc.Sequence[float]
|
|
55
49
|
:param radius: Distance to search for points.
|
|
56
|
-
:type radius: float
|
|
57
50
|
:return: Returns a list of tuples (position, index, distance).
|
|
58
|
-
:rtype: list[tuple[mathutils.Vector, int, float]]
|
|
59
51
|
"""
|
|
60
52
|
|
|
61
53
|
def insert(self, co: collections.abc.Sequence[float], index: int) -> None:
|
|
62
54
|
"""Insert a point into the KDTree.
|
|
63
55
|
|
|
64
56
|
:param co: Point 3d position.
|
|
65
|
-
:type co: collections.abc.Sequence[float]
|
|
66
57
|
:param index: The index of the point.
|
|
67
|
-
:type index: int
|
|
68
58
|
"""
|
|
69
59
|
|
|
70
60
|
def __init__(self, size) -> None:
|
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,24 +9,24 @@ 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.
|
|
16
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
17
19
|
:return: The cell noise value.
|
|
18
|
-
:rtype: float
|
|
19
20
|
"""
|
|
20
21
|
|
|
21
22
|
def cell_vector(
|
|
22
23
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
24
|
+
/,
|
|
23
25
|
) -> mathutils.Vector:
|
|
24
26
|
"""Returns cell noise vector at the specified position.
|
|
25
27
|
|
|
26
28
|
:param position: The position to evaluate the selected noise function.
|
|
27
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
28
29
|
:return: The cell noise vector.
|
|
29
|
-
:rtype: mathutils.Vector
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
def fractal(
|
|
@@ -34,22 +34,18 @@ def fractal(
|
|
|
34
34
|
H: float,
|
|
35
35
|
lacunarity: float,
|
|
36
36
|
octaves: int,
|
|
37
|
-
|
|
37
|
+
/,
|
|
38
|
+
*,
|
|
39
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
38
40
|
) -> float:
|
|
39
41
|
"""Returns the fractal Brownian motion (fBm) noise value from the noise basis at the specified position.
|
|
40
42
|
|
|
41
43
|
:param position: The position to evaluate the selected noise function.
|
|
42
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
43
44
|
:param H: The fractal increment factor.
|
|
44
|
-
:type H: float
|
|
45
45
|
:param lacunarity: The gap between successive frequencies.
|
|
46
|
-
:type lacunarity: float
|
|
47
46
|
:param octaves: The number of different noise frequencies used.
|
|
48
|
-
:
|
|
49
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
50
|
-
:type noise_basis: str
|
|
47
|
+
:param noise_basis: A noise basis string.
|
|
51
48
|
:return: The fractal Brownian motion noise value.
|
|
52
|
-
:rtype: float
|
|
53
49
|
"""
|
|
54
50
|
|
|
55
51
|
def hetero_terrain(
|
|
@@ -58,24 +54,19 @@ def hetero_terrain(
|
|
|
58
54
|
lacunarity: float,
|
|
59
55
|
octaves: int,
|
|
60
56
|
offset: float,
|
|
61
|
-
|
|
57
|
+
/,
|
|
58
|
+
*,
|
|
59
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
62
60
|
) -> float:
|
|
63
61
|
"""Returns the heterogeneous terrain value from the noise basis at the specified position.
|
|
64
62
|
|
|
65
63
|
:param position: The position to evaluate the selected noise function.
|
|
66
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
67
64
|
:param H: The fractal dimension of the roughest areas.
|
|
68
|
-
:type H: float
|
|
69
65
|
:param lacunarity: The gap between successive frequencies.
|
|
70
|
-
:type lacunarity: float
|
|
71
66
|
:param octaves: The number of different noise frequencies used.
|
|
72
|
-
:
|
|
73
|
-
:param
|
|
74
|
-
:type offset: float
|
|
75
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
76
|
-
:type noise_basis: str
|
|
67
|
+
:param offset: The height of the terrain above sea level.
|
|
68
|
+
:param noise_basis: A noise basis string.
|
|
77
69
|
:return: The heterogeneous terrain value.
|
|
78
|
-
:rtype: float
|
|
79
70
|
"""
|
|
80
71
|
|
|
81
72
|
def hybrid_multi_fractal(
|
|
@@ -85,26 +76,20 @@ def hybrid_multi_fractal(
|
|
|
85
76
|
octaves: int,
|
|
86
77
|
offset: float,
|
|
87
78
|
gain: float,
|
|
88
|
-
|
|
79
|
+
/,
|
|
80
|
+
*,
|
|
81
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
89
82
|
) -> float:
|
|
90
83
|
"""Returns hybrid multifractal value from the noise basis at the specified position.
|
|
91
84
|
|
|
92
85
|
:param position: The position to evaluate the selected noise function.
|
|
93
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
94
86
|
:param H: The fractal dimension of the roughest areas.
|
|
95
|
-
:type H: float
|
|
96
87
|
:param lacunarity: The gap between successive frequencies.
|
|
97
|
-
:type lacunarity: float
|
|
98
88
|
:param octaves: The number of different noise frequencies used.
|
|
99
|
-
:
|
|
100
|
-
:param offset: The height of the terrain above 'sea level'.
|
|
101
|
-
:type offset: float
|
|
89
|
+
:param offset: The height of the terrain above sea level.
|
|
102
90
|
:param gain: Scaling applied to the values.
|
|
103
|
-
:
|
|
104
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
105
|
-
:type noise_basis: str
|
|
91
|
+
:param noise_basis: A noise basis string.
|
|
106
92
|
:return: The hybrid multifractal value.
|
|
107
|
-
:rtype: float
|
|
108
93
|
"""
|
|
109
94
|
|
|
110
95
|
def multi_fractal(
|
|
@@ -112,75 +97,64 @@ def multi_fractal(
|
|
|
112
97
|
H: float,
|
|
113
98
|
lacunarity: float,
|
|
114
99
|
octaves: int,
|
|
115
|
-
|
|
100
|
+
/,
|
|
101
|
+
*,
|
|
102
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
116
103
|
) -> float:
|
|
117
104
|
"""Returns multifractal noise value from the noise basis at the specified position.
|
|
118
105
|
|
|
119
106
|
:param position: The position to evaluate the selected noise function.
|
|
120
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
121
107
|
:param H: The fractal increment factor.
|
|
122
|
-
:type H: float
|
|
123
108
|
:param lacunarity: The gap between successive frequencies.
|
|
124
|
-
:type lacunarity: float
|
|
125
109
|
:param octaves: The number of different noise frequencies used.
|
|
126
|
-
:
|
|
127
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
128
|
-
:type noise_basis: str
|
|
110
|
+
:param noise_basis: A noise basis string.
|
|
129
111
|
:return: The multifractal noise value.
|
|
130
|
-
:rtype: float
|
|
131
112
|
"""
|
|
132
113
|
|
|
133
114
|
def noise(
|
|
134
115
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
135
|
-
|
|
116
|
+
/,
|
|
117
|
+
*,
|
|
118
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
136
119
|
) -> float:
|
|
137
120
|
"""Returns noise value from the noise basis at the position specified.
|
|
138
121
|
|
|
139
122
|
:param position: The position to evaluate the selected noise function.
|
|
140
|
-
:
|
|
141
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
142
|
-
:type noise_basis: str
|
|
123
|
+
:param noise_basis: A noise basis string.
|
|
143
124
|
:return: The noise value.
|
|
144
|
-
:rtype: float
|
|
145
125
|
"""
|
|
146
126
|
|
|
147
127
|
def noise_vector(
|
|
148
128
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
149
|
-
|
|
129
|
+
/,
|
|
130
|
+
*,
|
|
131
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
150
132
|
) -> mathutils.Vector:
|
|
151
133
|
"""Returns the noise vector from the noise basis at the specified position.
|
|
152
134
|
|
|
153
135
|
:param position: The position to evaluate the selected noise function.
|
|
154
|
-
:
|
|
155
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
156
|
-
:type noise_basis: str
|
|
136
|
+
:param noise_basis: A noise basis string.
|
|
157
137
|
:return: The noise vector.
|
|
158
|
-
:rtype: mathutils.Vector
|
|
159
138
|
"""
|
|
160
139
|
|
|
161
140
|
def random() -> float:
|
|
162
141
|
"""Returns a random number in the range [0, 1).
|
|
163
142
|
|
|
164
143
|
:return: The random number.
|
|
165
|
-
:rtype: float
|
|
166
144
|
"""
|
|
167
145
|
|
|
168
|
-
def random_unit_vector(size: int = 3) -> mathutils.Vector:
|
|
146
|
+
def random_unit_vector(*, size: int = 3) -> mathutils.Vector:
|
|
169
147
|
"""Returns a unit vector with random entries.
|
|
170
148
|
|
|
171
149
|
:param size: The size of the vector to be produced, in the range [2, 4].
|
|
172
|
-
:type size: int
|
|
173
150
|
:return: The random unit vector.
|
|
174
|
-
:rtype: mathutils.Vector
|
|
175
151
|
"""
|
|
176
152
|
|
|
177
|
-
def random_vector(size: int = 3) -> mathutils.Vector:
|
|
153
|
+
def random_vector(*, size: int = 3) -> mathutils.Vector:
|
|
178
154
|
"""Returns a vector with random entries in the range (-1, 1).
|
|
179
155
|
|
|
180
156
|
:param size: The size of the vector to be produced.
|
|
181
|
-
:type size: int
|
|
182
157
|
:return: The random vector.
|
|
183
|
-
:rtype: mathutils.Vector
|
|
184
158
|
"""
|
|
185
159
|
|
|
186
160
|
def ridged_multi_fractal(
|
|
@@ -190,121 +164,102 @@ def ridged_multi_fractal(
|
|
|
190
164
|
octaves: int,
|
|
191
165
|
offset: float,
|
|
192
166
|
gain: float,
|
|
193
|
-
|
|
167
|
+
/,
|
|
168
|
+
*,
|
|
169
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
194
170
|
) -> float:
|
|
195
171
|
"""Returns ridged multifractal value from the noise basis at the specified position.
|
|
196
172
|
|
|
197
173
|
:param position: The position to evaluate the selected noise function.
|
|
198
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
199
174
|
:param H: The fractal dimension of the roughest areas.
|
|
200
|
-
:type H: float
|
|
201
175
|
:param lacunarity: The gap between successive frequencies.
|
|
202
|
-
:type lacunarity: float
|
|
203
176
|
:param octaves: The number of different noise frequencies used.
|
|
204
|
-
:
|
|
205
|
-
:param offset: The height of the terrain above 'sea level'.
|
|
206
|
-
:type offset: float
|
|
177
|
+
:param offset: The height of the terrain above sea level.
|
|
207
178
|
:param gain: Scaling applied to the values.
|
|
208
|
-
:
|
|
209
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
210
|
-
:type noise_basis: str
|
|
179
|
+
:param noise_basis: A noise basis string.
|
|
211
180
|
:return: The ridged multifractal value.
|
|
212
|
-
:rtype: float
|
|
213
181
|
"""
|
|
214
182
|
|
|
215
|
-
def seed_set(
|
|
183
|
+
def seed_set(
|
|
184
|
+
seed: int,
|
|
185
|
+
/,
|
|
186
|
+
) -> None:
|
|
216
187
|
"""Sets the random seed used for random_unit_vector, and random.
|
|
217
188
|
|
|
218
189
|
:param seed: Seed used for the random generator.
|
|
219
190
|
When seed is zero, the current time will be used instead.
|
|
220
|
-
:type seed: int
|
|
221
191
|
"""
|
|
222
192
|
|
|
223
193
|
def turbulence(
|
|
224
194
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
225
195
|
octaves: int,
|
|
226
196
|
hard: bool,
|
|
227
|
-
|
|
197
|
+
/,
|
|
198
|
+
*,
|
|
199
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
228
200
|
amplitude_scale: float = 0.5,
|
|
229
201
|
frequency_scale: float = 2.0,
|
|
230
202
|
) -> float:
|
|
231
203
|
"""Returns the turbulence value from the noise basis at the specified position.
|
|
232
204
|
|
|
233
205
|
:param position: The position to evaluate the selected noise function.
|
|
234
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
235
206
|
:param octaves: The number of different noise frequencies used.
|
|
236
|
-
:type octaves: int
|
|
237
207
|
:param hard: Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
|
|
238
|
-
:
|
|
239
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
240
|
-
:type noise_basis: str
|
|
208
|
+
:param noise_basis: A noise basis string.
|
|
241
209
|
:param amplitude_scale: The amplitude scaling factor.
|
|
242
|
-
:type amplitude_scale: float
|
|
243
210
|
:param frequency_scale: The frequency scaling factor
|
|
244
|
-
:type frequency_scale: float
|
|
245
211
|
:return: The turbulence value.
|
|
246
|
-
:rtype: float
|
|
247
212
|
"""
|
|
248
213
|
|
|
249
214
|
def turbulence_vector(
|
|
250
215
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
251
216
|
octaves: int,
|
|
252
217
|
hard: bool,
|
|
253
|
-
|
|
218
|
+
/,
|
|
219
|
+
*,
|
|
220
|
+
noise_basis="PERLIN_ORIGINAL",
|
|
254
221
|
amplitude_scale: float = 0.5,
|
|
255
222
|
frequency_scale: float = 2.0,
|
|
256
223
|
) -> mathutils.Vector:
|
|
257
224
|
"""Returns the turbulence vector from the noise basis at the specified position.
|
|
258
225
|
|
|
259
226
|
:param position: The position to evaluate the selected noise function.
|
|
260
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
261
227
|
:param octaves: The number of different noise frequencies used.
|
|
262
|
-
:type octaves: int
|
|
263
228
|
:param hard: Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
|
|
264
|
-
:
|
|
265
|
-
:param noise_basis: Enumerator in ['BLENDER', 'PERLIN_ORIGINAL', 'PERLIN_NEW', 'VORONOI_F1', 'VORONOI_F2', 'VORONOI_F3', 'VORONOI_F4', 'VORONOI_F2F1', 'VORONOI_CRACKLE', 'CELLNOISE'].
|
|
266
|
-
:type noise_basis: str
|
|
229
|
+
:param noise_basis: A noise basis string.
|
|
267
230
|
:param amplitude_scale: The amplitude scaling factor.
|
|
268
|
-
:type amplitude_scale: float
|
|
269
231
|
:param frequency_scale: The frequency scaling factor
|
|
270
|
-
:type frequency_scale: float
|
|
271
232
|
:return: The turbulence vector.
|
|
272
|
-
:rtype: mathutils.Vector
|
|
273
233
|
"""
|
|
274
234
|
|
|
275
235
|
def variable_lacunarity(
|
|
276
236
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
277
237
|
distortion: float,
|
|
278
|
-
|
|
279
|
-
|
|
238
|
+
/,
|
|
239
|
+
*,
|
|
240
|
+
noise_type1="PERLIN_ORIGINAL",
|
|
241
|
+
noise_type2="PERLIN_ORIGINAL",
|
|
280
242
|
) -> float:
|
|
281
243
|
"""Returns variable lacunarity noise value, a distorted variety of noise, from noise type 1 distorted by noise type 2 at the specified position.
|
|
282
244
|
|
|
283
245
|
:param position: The position to evaluate the selected noise function.
|
|
284
|
-
:type position: collections.abc.Sequence[float] | mathutils.Vector
|
|
285
246
|
:param distortion: The amount of distortion.
|
|
286
|
-
:
|
|
287
|
-
:param
|
|
288
|
-
:type noise_type1: str
|
|
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
|
|
247
|
+
:param noise_type1: A noise type string.
|
|
248
|
+
:param noise_type2: A noise type string.
|
|
291
249
|
:return: The variable lacunarity noise value.
|
|
292
|
-
:rtype: float
|
|
293
250
|
"""
|
|
294
251
|
|
|
295
252
|
def voronoi(
|
|
296
253
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
297
|
-
|
|
254
|
+
/,
|
|
255
|
+
*,
|
|
256
|
+
distance_metric="DISTANCE",
|
|
298
257
|
exponent: float = 2.5,
|
|
299
258
|
) -> list[list[float] | list[mathutils.Vector]]:
|
|
300
259
|
"""Returns a list of distances to the four closest features and their locations.
|
|
301
260
|
|
|
302
261
|
:param position: The position to evaluate the selected noise function.
|
|
303
|
-
:
|
|
304
|
-
:param distance_metric: Enumerator in ['DISTANCE', 'DISTANCE_SQUARED', 'MANHATTAN', 'CHEBYCHEV', 'MINKOVSKY', 'MINKOVSKY_HALF', 'MINKOVSKY_FOUR'].
|
|
305
|
-
:type distance_metric: str
|
|
262
|
+
:param distance_metric: A distance metric string.
|
|
306
263
|
:param exponent: The exponent for Minkowski distance metric.
|
|
307
|
-
:type exponent: float
|
|
308
264
|
:return: A list of distances to the four closest features and their locations.
|
|
309
|
-
:rtype: list[list[float] | list[mathutils.Vector]]
|
|
310
265
|
"""
|