fake-bpy-module 20240210__py3-none-any.whl → 20240326__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 +54 -11
- animsys_refactor/__init__.pyi +36 -7
- aud/__init__.pyi +307 -321
- bgl/__init__.pyi +2926 -865
- bl_app_override/__init__.pyi +14 -4
- bl_app_override/helpers/__init__.pyi +24 -3
- bl_app_template_utils/__init__.pyi +19 -5
- bl_console_utils/__init__.pyi +0 -1
- bl_console_utils/autocomplete/__init__.pyi +2 -3
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
- bl_i18n_utils/__init__.pyi +2 -3
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
- bl_i18n_utils/merge_po/__init__.pyi +4 -2
- bl_i18n_utils/settings/__init__.pyi +53 -7
- bl_i18n_utils/utils/__init__.pyi +332 -45
- bl_i18n_utils/utils_cli/__init__.pyi +29 -7
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
- bl_keymap_utils/__init__.pyi +2 -3
- bl_keymap_utils/io/__init__.pyi +44 -10
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
- bl_keymap_utils/versioning/__init__.pyi +4 -2
- bl_math/__init__.pyi +21 -22
- bl_operators/__init__.pyi +30 -24
- bl_operators/add_mesh_torus/__init__.pyi +171 -38
- bl_operators/anim/__init__.pyi +1065 -227
- bl_operators/assets/__init__.pyi +427 -93
- bl_operators/bmesh/__init__.pyi +0 -1
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
- bl_operators/clip/__init__.pyi +1342 -288
- bl_operators/console/__init__.pyi +647 -141
- bl_operators/constraint/__init__.pyi +524 -113
- bl_operators/file/__init__.pyi +396 -85
- bl_operators/freestyle/__init__.pyi +532 -114
- bl_operators/geometry_nodes/__init__.pyi +2412 -597
- bl_operators/image/__init__.pyi +380 -83
- bl_operators/mesh/__init__.pyi +401 -86
- bl_operators/node/__init__.pyi +1756 -385
- bl_operators/object/__init__.pyi +2022 -553
- bl_operators/object_align/__init__.pyi +145 -32
- bl_operators/object_quick_effects/__init__.pyi +555 -125
- bl_operators/object_randomize_transform/__init__.pyi +136 -33
- bl_operators/presets/__init__.pyi +3516 -709
- bl_operators/rigidbody/__init__.pyi +401 -86
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
- bl_operators/sequencer/__init__.pyi +731 -150
- bl_operators/spreadsheet/__init__.pyi +145 -31
- bl_operators/userpref/__init__.pyi +3416 -825
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
- bl_operators/uvcalc_transform/__init__.pyi +344 -74
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
- bl_operators/view3d/__init__.pyi +697 -147
- bl_operators/wm/__init__.pyi +6287 -1534
- bl_previews_utils/__init__.pyi +0 -1
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
- bl_rna_utils/__init__.pyi +0 -1
- bl_rna_utils/data_path/__init__.pyi +12 -3
- bl_text_utils/__init__.pyi +0 -1
- bl_text_utils/external_editor/__init__.pyi +4 -2
- bl_ui/__init__.pyi +567 -170
- bl_ui/anim/__init__.pyi +164 -34
- bl_ui/asset_shelf/__init__.pyi +146 -32
- bl_ui/generic_ui_list/__init__.pyi +471 -100
- bl_ui/node_add_menu/__init__.pyi +196 -41
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
- bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
- bl_ui/properties_animviz/__init__.pyi +32 -3
- bl_ui/properties_collection/__init__.pyi +787 -180
- bl_ui/properties_constraint/__init__.pyi +28635 -5524
- bl_ui/properties_data_armature/__init__.pyi +1905 -449
- bl_ui/properties_data_bone/__init__.pyi +1560 -337
- bl_ui/properties_data_camera/__init__.pyi +2269 -495
- bl_ui/properties_data_curve/__init__.pyi +2362 -535
- bl_ui/properties_data_curves/__init__.pyi +951 -204
- bl_ui/properties_data_empty/__init__.pyi +317 -70
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
- bl_ui/properties_data_lattice/__init__.pyi +472 -105
- bl_ui/properties_data_light/__init__.pyi +1570 -338
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
- bl_ui/properties_data_mesh/__init__.pyi +3205 -768
- bl_ui/properties_data_metaball/__init__.pyi +774 -171
- bl_ui/properties_data_modifier/__init__.pyi +1554 -329
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
- bl_ui/properties_data_speaker/__init__.pyi +782 -169
- bl_ui/properties_data_volume/__init__.pyi +1243 -282
- bl_ui/properties_freestyle/__init__.pyi +4071 -1031
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
- bl_ui/properties_mask_common/__init__.pyi +1256 -250
- bl_ui/properties_material/__init__.pyi +2351 -543
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
- bl_ui/properties_object/__init__.pyi +2179 -513
- bl_ui/properties_output/__init__.pyi +2956 -706
- bl_ui/properties_paint_common/__init__.pyi +947 -141
- bl_ui/properties_particle/__init__.pyi +8322 -1971
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
- bl_ui/properties_physics_common/__init__.pyi +200 -45
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
- bl_ui/properties_physics_field/__init__.pyi +1695 -365
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
- bl_ui/properties_render/__init__.pyi +8312 -1934
- bl_ui/properties_scene/__init__.pyi +2211 -540
- bl_ui/properties_texture/__init__.pyi +4185 -1014
- bl_ui/properties_view_layer/__init__.pyi +2803 -665
- bl_ui/properties_workspace/__init__.pyi +626 -149
- bl_ui/properties_world/__init__.pyi +1092 -235
- bl_ui/space_clip/__init__.pyi +11475 -2806
- bl_ui/space_console/__init__.pyi +967 -203
- bl_ui/space_dopesheet/__init__.pyi +4260 -967
- bl_ui/space_filebrowser/__init__.pyi +4852 -1188
- bl_ui/space_graph/__init__.pyi +3251 -703
- bl_ui/space_image/__init__.pyi +12218 -2968
- bl_ui/space_info/__init__.pyi +964 -201
- bl_ui/space_nla/__init__.pyi +2756 -585
- bl_ui/space_node/__init__.pyi +5661 -1266
- bl_ui/space_outliner/__init__.pyi +2294 -479
- bl_ui/space_properties/__init__.pyi +417 -93
- bl_ui/space_sequencer/__init__.pyi +12436 -3010
- bl_ui/space_spreadsheet/__init__.pyi +184 -37
- bl_ui/space_statusbar/__init__.pyi +135 -31
- bl_ui/space_text/__init__.pyi +2556 -543
- bl_ui/space_time/__init__.pyi +1151 -244
- bl_ui/space_toolsystem_common/__init__.pyi +368 -67
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
- bl_ui/space_topbar/__init__.pyi +4214 -888
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +42751 -9613
- bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
- bl_ui/utils/__init__.pyi +42 -5
- bl_ui_utils/__init__.pyi +0 -1
- bl_ui_utils/bug_report_url/__init__.pyi +4 -2
- bl_ui_utils/layout/__init__.pyi +4 -2
- blend_render_info/__init__.pyi +13 -4
- blf/__init__.pyi +15 -18
- bmesh/__init__.pyi +18 -18
- bmesh/geometry/__init__.pyi +5 -6
- bmesh/ops/__init__.pyi +1337 -1158
- bmesh/types/__init__.pyi +464 -374
- bmesh/utils/__init__.pyi +64 -70
- bpy/__init__.pyi +6 -7
- bpy/app/__init__.pyi +36 -38
- bpy/app/handlers/__init__.pyi +37 -38
- bpy/app/icons/__init__.pyi +8 -11
- bpy/app/timers/__init__.pyi +18 -17
- bpy/app/translations/__init__.pyi +32 -30
- bpy/msgbus/__init__.pyi +25 -20
- bpy/ops/__init__.pyi +63 -64
- bpy/ops/action/__init__.pyi +408 -436
- bpy/ops/anim/__init__.pyi +459 -577
- bpy/ops/armature/__init__.pyi +396 -498
- bpy/ops/asset/__init__.pyi +187 -213
- bpy/ops/boid/__init__.pyi +50 -68
- bpy/ops/brush/__init__.pyi +72 -97
- bpy/ops/buttons/__init__.pyi +202 -193
- bpy/ops/cachefile/__init__.pyi +198 -188
- bpy/ops/camera/__init__.pyi +24 -31
- bpy/ops/clip/__init__.pyi +1021 -1082
- bpy/ops/cloth/__init__.pyi +11 -15
- bpy/ops/collection/__init__.pyi +36 -51
- bpy/ops/console/__init__.pyi +155 -209
- bpy/ops/constraint/__init__.pyi +286 -254
- bpy/ops/curve/__init__.pyi +597 -659
- bpy/ops/curves/__init__.pyi +191 -225
- bpy/ops/cycles/__init__.pyi +21 -30
- bpy/ops/dpaint/__init__.pyi +34 -47
- bpy/ops/ed/__init__.pyi +160 -176
- bpy/ops/export_anim/__init__.pyi +51 -34
- bpy/ops/export_mesh/__init__.pyi +47 -45
- bpy/ops/export_scene/__init__.pyi +659 -504
- bpy/ops/file/__init__.pyi +469 -474
- bpy/ops/fluid/__init__.pyi +89 -119
- bpy/ops/font/__init__.pyi +325 -361
- bpy/ops/geometry/__init__.pyi +86 -114
- bpy/ops/gizmogroup/__init__.pyi +22 -28
- bpy/ops/gpencil/__init__.pyi +1900 -1976
- bpy/ops/graph/__init__.pyi +875 -894
- bpy/ops/grease_pencil/__init__.pyi +572 -508
- bpy/ops/image/__init__.pyi +805 -855
- bpy/ops/import_anim/__init__.pyi +66 -46
- bpy/ops/import_curve/__init__.pyi +7 -11
- bpy/ops/import_mesh/__init__.pyi +19 -25
- bpy/ops/import_scene/__init__.pyi +164 -147
- bpy/ops/info/__init__.pyi +88 -85
- bpy/ops/lattice/__init__.pyi +86 -90
- bpy/ops/marker/__init__.pyi +135 -146
- bpy/ops/mask/__init__.pyi +372 -436
- bpy/ops/material/__init__.pyi +18 -25
- bpy/ops/mball/__init__.pyi +93 -99
- bpy/ops/mesh/__init__.pyi +2525 -2664
- bpy/ops/nla/__init__.pyi +398 -455
- bpy/ops/node/__init__.pyi +1015 -1207
- bpy/ops/object/__init__.pyi +3423 -3390
- bpy/ops/outliner/__init__.pyi +667 -685
- bpy/ops/paint/__init__.pyi +719 -672
- bpy/ops/paintcurve/__init__.pyi +64 -85
- bpy/ops/palette/__init__.pyi +48 -67
- bpy/ops/particle/__init__.pyi +323 -367
- bpy/ops/pose/__init__.pyi +569 -474
- bpy/ops/poselib/__init__.pyi +77 -100
- bpy/ops/preferences/__init__.pyi +460 -512
- bpy/ops/ptcache/__init__.pyi +46 -63
- bpy/ops/render/__init__.pyi +121 -155
- bpy/ops/rigidbody/__init__.pyi +148 -143
- bpy/ops/scene/__init__.pyi +336 -380
- bpy/ops/screen/__init__.pyi +454 -530
- bpy/ops/script/__init__.pyi +19 -28
- bpy/ops/sculpt/__init__.pyi +734 -587
- bpy/ops/sculpt_curves/__init__.pyi +51 -56
- bpy/ops/sequencer/__init__.pyi +1617 -1500
- bpy/ops/sound/__init__.pyi +392 -315
- bpy/ops/spreadsheet/__init__.pyi +31 -42
- bpy/ops/surface/__init__.pyi +198 -163
- bpy/ops/text/__init__.pyi +479 -545
- bpy/ops/text_editor/__init__.pyi +11 -15
- bpy/ops/texture/__init__.pyi +26 -36
- bpy/ops/transform/__init__.pyi +825 -941
- bpy/ops/ui/__init__.pyi +246 -295
- bpy/ops/uilist/__init__.pyi +34 -38
- bpy/ops/uv/__init__.pyi +912 -824
- bpy/ops/view2d/__init__.pyi +157 -197
- bpy/ops/view3d/__init__.pyi +777 -878
- bpy/ops/wm/__init__.pyi +4102 -3595
- bpy/ops/workspace/__init__.pyi +42 -58
- bpy/ops/world/__init__.pyi +6 -9
- bpy/path/__init__.pyi +166 -109
- bpy/props/__init__.pyi +478 -395
- bpy/types/__init__.pyi +87194 -81467
- bpy/utils/__init__.pyi +325 -169
- bpy/utils/previews/__init__.pyi +108 -21
- bpy/utils/units/__init__.pyi +37 -39
- bpy_extras/__init__.pyi +4 -9
- bpy_extras/anim_utils/__init__.pyi +25 -55
- bpy_extras/asset_utils/__init__.pyi +3 -13
- bpy_extras/id_map_utils/__init__.pyi +1 -4
- bpy_extras/image_utils/__init__.pyi +33 -23
- bpy_extras/io_utils/__init__.pyi +116 -66
- bpy_extras/keyconfig_utils/__init__.pyi +5 -3
- bpy_extras/mesh_utils/__init__.pyi +42 -34
- bpy_extras/node_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +58 -43
- bpy_extras/view3d_utils/__init__.pyi +64 -63
- bpy_restrict_state/__init__.pyi +14 -2
- bpy_types/__init__.pyi +3873 -998
- console_python/__init__.pyi +41 -8
- console_shell/__init__.pyi +24 -6
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +4 -5
- freestyle/chainingiterators/__init__.pyi +229 -73
- freestyle/functions/__init__.pyi +624 -402
- freestyle/predicates/__init__.pyi +381 -169
- freestyle/shaders/__init__.pyi +424 -155
- freestyle/types/__init__.pyi +1572 -726
- freestyle/utils/ContextFunctions/__init__.pyi +54 -43
- freestyle/utils/__init__.pyi +67 -31
- gpu/__init__.pyi +3 -4
- gpu/capabilities/__init__.pyi +57 -37
- gpu/matrix/__init__.pyi +14 -17
- gpu/platform/__init__.pyi +5 -6
- gpu/select/__init__.pyi +2 -5
- gpu/shader/__init__.pyi +14 -12
- gpu/state/__init__.pyi +48 -62
- gpu/texture/__init__.pyi +7 -7
- gpu/types/__init__.pyi +670 -229
- gpu_extras/__init__.pyi +1 -2
- gpu_extras/batch/__init__.pyi +27 -6
- gpu_extras/presets/__init__.pyi +67 -27
- graphviz_export/__init__.pyi +9 -3
- idprop/__init__.pyi +0 -1
- idprop/types/__init__.pyi +42 -13
- imbuf/__init__.pyi +6 -10
- imbuf/types/__init__.pyi +8 -16
- keyingsets_builtins/__init__.pyi +3149 -702
- keyingsets_utils/__init__.pyi +69 -15
- mathutils/__init__.pyi +951 -876
- mathutils/bvhtree/__init__.pyi +47 -48
- mathutils/geometry/__init__.pyi +237 -242
- mathutils/interpolate/__init__.pyi +3 -6
- mathutils/kdtree/__init__.pyi +23 -26
- mathutils/noise/__init__.pyi +50 -51
- nodeitems_builtins/__init__.pyi +50 -11
- nodeitems_utils/__init__.pyi +58 -11
- rna_info/__init__.pyi +230 -27
- rna_keymap_ui/__init__.pyi +29 -7
- rna_prop_ui/__init__.pyi +69 -13
- rna_xml/__init__.pyi +29 -7
- sys_info/__init__.pyi +4 -2
- bpy_extras/bmesh_utils/__init__.pyi +0 -7
- bpy_extras/extensions/__init__.pyi +0 -5
- bpy_extras/extensions/junction_module/__init__.pyi +0 -13
- bpy_extras/node_shader_utils/__init__.pyi +0 -132
- bpy_extras/wm_utils/__init__.pyi +0 -5
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
- fake_bpy_module-20240210.dist-info/RECORD +0 -349
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import freestyle.types
|
|
4
3
|
|
|
@@ -7,8 +6,8 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
7
6
|
def get_border() -> typing.Tuple:
|
|
8
7
|
"""Returns the border.
|
|
9
8
|
|
|
10
|
-
:rtype: typing.Tuple
|
|
11
9
|
:return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).
|
|
10
|
+
:rtype: typing.Tuple
|
|
12
11
|
"""
|
|
13
12
|
|
|
14
13
|
...
|
|
@@ -16,8 +15,8 @@ def get_border() -> typing.Tuple:
|
|
|
16
15
|
def get_canvas_height() -> int:
|
|
17
16
|
"""Returns the canvas height.
|
|
18
17
|
|
|
19
|
-
:rtype: int
|
|
20
18
|
:return: The canvas height.
|
|
19
|
+
:rtype: int
|
|
21
20
|
"""
|
|
22
21
|
|
|
23
22
|
...
|
|
@@ -25,17 +24,17 @@ def get_canvas_height() -> int:
|
|
|
25
24
|
def get_canvas_width() -> int:
|
|
26
25
|
"""Returns the canvas width.
|
|
27
26
|
|
|
28
|
-
:rtype: int
|
|
29
27
|
:return: The canvas width.
|
|
28
|
+
:rtype: int
|
|
30
29
|
"""
|
|
31
30
|
|
|
32
31
|
...
|
|
33
32
|
|
|
34
|
-
def get_selected_fedge() ->
|
|
33
|
+
def get_selected_fedge() -> freestyle.types.FEdge:
|
|
35
34
|
"""Returns the selected FEdge.
|
|
36
35
|
|
|
37
|
-
:rtype: 'freestyle.types.FEdge'
|
|
38
36
|
:return: The selected FEdge.
|
|
37
|
+
:rtype: freestyle.types.FEdge
|
|
39
38
|
"""
|
|
40
39
|
|
|
41
40
|
...
|
|
@@ -43,8 +42,8 @@ def get_selected_fedge() -> "freestyle.types.FEdge":
|
|
|
43
42
|
def get_time_stamp() -> int:
|
|
44
43
|
"""Returns the system time stamp.
|
|
45
44
|
|
|
46
|
-
:rtype: int
|
|
47
45
|
:return: The system time stamp.
|
|
46
|
+
:rtype: int
|
|
48
47
|
"""
|
|
49
48
|
|
|
50
49
|
...
|
|
@@ -52,14 +51,16 @@ def get_time_stamp() -> int:
|
|
|
52
51
|
def load_map(file_name: str, map_name: str, num_levels: int = 4, sigma: float = 1.0):
|
|
53
52
|
"""Loads an image map for further reading.
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
:param file_name: The name of the image file.
|
|
55
|
+
:type file_name: str
|
|
56
|
+
:param map_name: The name that will be used to access this image.
|
|
57
|
+
:type map_name: str
|
|
58
|
+
:param num_levels: The number of levels in the map pyramid
|
|
59
|
+
(default = 4). If num_levels == 0, the complete pyramid is
|
|
60
|
+
built.
|
|
61
|
+
:type num_levels: int
|
|
62
|
+
:param sigma: The sigma value of the gaussian function.
|
|
63
|
+
:type sigma: float
|
|
63
64
|
"""
|
|
64
65
|
|
|
65
66
|
...
|
|
@@ -67,14 +68,17 @@ def load_map(file_name: str, map_name: str, num_levels: int = 4, sigma: float =
|
|
|
67
68
|
def read_complete_view_map_pixel(level: int, x: int, y: int) -> float:
|
|
68
69
|
"""Reads a pixel in the complete view map.
|
|
69
70
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
:param level: The level of the pyramid in which we wish to read the
|
|
72
|
+
pixel.
|
|
73
|
+
:type level: int
|
|
74
|
+
:param x: The x coordinate of the pixel we wish to read. The origin
|
|
75
|
+
is in the lower-left corner.
|
|
76
|
+
:type x: int
|
|
77
|
+
:param y: The y coordinate of the pixel we wish to read. The origin
|
|
78
|
+
is in the lower-left corner.
|
|
79
|
+
:type y: int
|
|
80
|
+
:return: The floating-point value stored for that pixel.
|
|
81
|
+
:rtype: float
|
|
78
82
|
"""
|
|
79
83
|
|
|
80
84
|
...
|
|
@@ -84,16 +88,20 @@ def read_directional_view_map_pixel(
|
|
|
84
88
|
) -> float:
|
|
85
89
|
"""Reads a pixel in one of the oriented view map images.
|
|
86
90
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
:param orientation: The number telling which orientation we want to
|
|
92
|
+
check.
|
|
93
|
+
:type orientation: int
|
|
94
|
+
:param level: The level of the pyramid in which we wish to read the
|
|
95
|
+
pixel.
|
|
96
|
+
:type level: int
|
|
97
|
+
:param x: The x coordinate of the pixel we wish to read. The origin
|
|
98
|
+
is in the lower-left corner.
|
|
99
|
+
:type x: int
|
|
100
|
+
:param y: The y coordinate of the pixel we wish to read. The origin
|
|
101
|
+
is in the lower-left corner.
|
|
102
|
+
:type y: int
|
|
103
|
+
:return: The floating-point value stored for that pixel.
|
|
104
|
+
:rtype: float
|
|
97
105
|
"""
|
|
98
106
|
|
|
99
107
|
...
|
|
@@ -101,16 +109,19 @@ def read_directional_view_map_pixel(
|
|
|
101
109
|
def read_map_pixel(map_name: str, level: int, x: int, y: int) -> float:
|
|
102
110
|
"""Reads a pixel in a user-defined map.
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
:param map_name: The name of the map.
|
|
113
|
+
:type map_name: str
|
|
114
|
+
:param level: The level of the pyramid in which we wish to read the
|
|
115
|
+
pixel.
|
|
116
|
+
:type level: int
|
|
117
|
+
:param x: The x coordinate of the pixel we wish to read. The origin
|
|
118
|
+
is in the lower-left corner.
|
|
119
|
+
:type x: int
|
|
120
|
+
:param y: The y coordinate of the pixel we wish to read. The origin
|
|
121
|
+
is in the lower-left corner.
|
|
122
|
+
:type y: int
|
|
123
|
+
:return: The floating-point value stored for that pixel.
|
|
124
|
+
:rtype: float
|
|
114
125
|
"""
|
|
115
126
|
|
|
116
127
|
...
|
freestyle/utils/__init__.pyi
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import bpy.types
|
|
4
3
|
import freestyle.types
|
|
@@ -11,21 +10,29 @@ class BoundingBox:
|
|
|
11
10
|
"""Object representing a bounding box consisting out of 2 2D vectors"""
|
|
12
11
|
|
|
13
12
|
def inside(self, other):
|
|
14
|
-
"""True if self inside other, False otherwise
|
|
13
|
+
"""True if self inside other, False otherwise
|
|
14
|
+
|
|
15
|
+
:param other:
|
|
16
|
+
"""
|
|
15
17
|
...
|
|
16
18
|
|
|
17
19
|
class StrokeCollector:
|
|
18
20
|
"""Collects and Stores stroke objects"""
|
|
19
21
|
|
|
20
|
-
def shade(self, stroke):
|
|
22
|
+
def shade(self, stroke):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
:param stroke:
|
|
26
|
+
"""
|
|
27
|
+
...
|
|
21
28
|
|
|
22
|
-
def angle_x_normal(
|
|
29
|
+
def angle_x_normal(it):
|
|
23
30
|
"""unsigned angle between a Point's normal and the X axis, in radians"""
|
|
24
31
|
|
|
25
32
|
...
|
|
26
33
|
|
|
27
34
|
def bound(lower, x, higher):
|
|
28
|
-
"""
|
|
35
|
+
""" """
|
|
29
36
|
|
|
30
37
|
...
|
|
31
38
|
|
|
@@ -35,7 +42,7 @@ def bounding_box(stroke):
|
|
|
35
42
|
...
|
|
36
43
|
|
|
37
44
|
def curvature_from_stroke_vertex(svert):
|
|
38
|
-
"""
|
|
45
|
+
""" """
|
|
39
46
|
|
|
40
47
|
...
|
|
41
48
|
|
|
@@ -44,11 +51,11 @@ def find_matching_vertex(id, it):
|
|
|
44
51
|
|
|
45
52
|
...
|
|
46
53
|
|
|
47
|
-
def getCurrentScene() ->
|
|
54
|
+
def getCurrentScene() -> bpy.types.Scene:
|
|
48
55
|
"""Returns the current scene.
|
|
49
56
|
|
|
50
|
-
:rtype: 'bpy.types.Scene'
|
|
51
57
|
:return: The current scene.
|
|
58
|
+
:rtype: bpy.types.Scene
|
|
52
59
|
"""
|
|
53
60
|
|
|
54
61
|
...
|
|
@@ -74,23 +81,32 @@ def get_test_stroke():
|
|
|
74
81
|
...
|
|
75
82
|
|
|
76
83
|
def integrate(
|
|
77
|
-
func:
|
|
78
|
-
it:
|
|
79
|
-
it_end:
|
|
80
|
-
integration_type:
|
|
84
|
+
func: freestyle.types.UnaryFunction0D,
|
|
85
|
+
it: freestyle.types.Interface0DIterator,
|
|
86
|
+
it_end: freestyle.types.Interface0DIterator,
|
|
87
|
+
integration_type: freestyle.types.IntegrationType,
|
|
81
88
|
) -> typing.Union[int, float]:
|
|
82
|
-
"""Returns a single value from a set of values evaluated at each 0D
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
"""Returns a single value from a set of values evaluated at each 0D
|
|
90
|
+
element of this 1D element.
|
|
91
|
+
|
|
92
|
+
:param func: The UnaryFunction0D used to compute a value at each
|
|
93
|
+
Interface0D.
|
|
94
|
+
:type func: freestyle.types.UnaryFunction0D
|
|
95
|
+
:param it: The Interface0DIterator used to iterate over the 0D
|
|
96
|
+
elements of this 1D element. The integration will occur over
|
|
97
|
+
the 0D elements starting from the one pointed by it.
|
|
98
|
+
:type it: freestyle.types.Interface0DIterator
|
|
99
|
+
:param it_end: The Interface0DIterator pointing the end of the 0D
|
|
100
|
+
elements of the 1D element.
|
|
101
|
+
:type it_end: freestyle.types.Interface0DIterator
|
|
102
|
+
:param integration_type: The integration method used to compute a
|
|
103
|
+
single value from a set of values.
|
|
104
|
+
:type integration_type: freestyle.types.IntegrationType
|
|
105
|
+
:return: The single value obtained for the 1D element. The return
|
|
106
|
+
value type is float if func is of the `UnaryFunction0DDouble`
|
|
107
|
+
or `UnaryFunction0DFloat` type, and int if func is of the
|
|
108
|
+
`UnaryFunction0DUnsigned` type.
|
|
109
|
+
:rtype: typing.Union[int, float]
|
|
94
110
|
"""
|
|
95
111
|
|
|
96
112
|
...
|
|
@@ -106,12 +122,20 @@ def iter_distance_along_stroke(stroke):
|
|
|
106
122
|
...
|
|
107
123
|
|
|
108
124
|
def iter_distance_from_camera(stroke, range_min, range_max, normfac):
|
|
109
|
-
"""Yields the distance to the camera relative to the maximum
|
|
125
|
+
"""Yields the distance to the camera relative to the maximum
|
|
126
|
+
possible distance for every stroke vertex, constrained by
|
|
127
|
+
given minimum and maximum values.
|
|
128
|
+
|
|
129
|
+
"""
|
|
110
130
|
|
|
111
131
|
...
|
|
112
132
|
|
|
113
133
|
def iter_distance_from_object(stroke, location, range_min, range_max, normfac):
|
|
114
|
-
"""yields the distance to the given object relative to the maximum
|
|
134
|
+
"""yields the distance to the given object relative to the maximum
|
|
135
|
+
possible distance for every stroke vertex, constrained by
|
|
136
|
+
given minimum and maximum values.
|
|
137
|
+
|
|
138
|
+
"""
|
|
115
139
|
|
|
116
140
|
...
|
|
117
141
|
|
|
@@ -130,12 +154,12 @@ def material_from_fedge(fe):
|
|
|
130
154
|
|
|
131
155
|
...
|
|
132
156
|
|
|
133
|
-
def normal_at_I0D(
|
|
134
|
-
"""
|
|
157
|
+
def normal_at_I0D(it):
|
|
158
|
+
""" """
|
|
135
159
|
|
|
136
160
|
...
|
|
137
161
|
|
|
138
|
-
def pairwise(iterable, types={}):
|
|
162
|
+
def pairwise(iterable, types={"None"}):
|
|
139
163
|
"""Yields a tuple containing the previous and current object"""
|
|
140
164
|
|
|
141
165
|
...
|
|
@@ -151,12 +175,24 @@ def simplify(points, tolerance):
|
|
|
151
175
|
...
|
|
152
176
|
|
|
153
177
|
def stroke_curvature(it):
|
|
154
|
-
"""Compute the 2D curvature at the stroke vertex pointed by the iterator 'it'.
|
|
178
|
+
"""Compute the 2D curvature at the stroke vertex pointed by the iterator 'it'.
|
|
179
|
+
K = 1 / R
|
|
180
|
+
where R is the radius of the circle going through the current vertex and its neighbors
|
|
181
|
+
|
|
182
|
+
"""
|
|
155
183
|
|
|
156
184
|
...
|
|
157
185
|
|
|
158
186
|
def stroke_normal(stroke):
|
|
159
|
-
"""Compute the 2D normal at the stroke vertex pointed by the iterator
|
|
187
|
+
"""Compute the 2D normal at the stroke vertex pointed by the iterator
|
|
188
|
+
'it'. It is noted that Normal2DF0D computes normals based on
|
|
189
|
+
underlying FEdges instead, which is inappropriate for strokes when
|
|
190
|
+
they have already been modified by stroke geometry modifiers.The returned normals are dynamic: they update when the
|
|
191
|
+
vertex position (and therefore the vertex normal) changes.
|
|
192
|
+
for use in geometry modifiers it is advised to
|
|
193
|
+
cast this generator function to a tuple or list
|
|
194
|
+
|
|
195
|
+
"""
|
|
160
196
|
|
|
161
197
|
...
|
|
162
198
|
|
gpu/__init__.pyi
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
|
-
from . import platform
|
|
4
2
|
from . import capabilities
|
|
5
|
-
from . import
|
|
3
|
+
from . import matrix
|
|
4
|
+
from . import platform
|
|
6
5
|
from . import select
|
|
6
|
+
from . import shader
|
|
7
7
|
from . import state
|
|
8
8
|
from . import texture
|
|
9
|
-
from . import matrix
|
|
10
9
|
from . import types
|
|
11
10
|
|
|
12
11
|
GenericType = typing.TypeVar("GenericType")
|
gpu/capabilities/__init__.pyi
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
|
|
4
3
|
GenericType = typing.TypeVar("GenericType")
|
|
@@ -6,31 +5,34 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
6
5
|
def compute_shader_support_get() -> bool:
|
|
7
6
|
"""Are compute shaders supported.
|
|
8
7
|
|
|
9
|
-
:rtype: bool
|
|
10
8
|
:return: True when supported, False when not supported.
|
|
9
|
+
:rtype: bool
|
|
11
10
|
"""
|
|
12
11
|
|
|
13
12
|
...
|
|
14
13
|
|
|
15
|
-
def extensions_get()
|
|
14
|
+
def extensions_get():
|
|
16
15
|
"""Get supported extensions in the current context.
|
|
17
16
|
|
|
18
|
-
:rtype: typing.Tuple
|
|
19
17
|
:return: Extensions.
|
|
20
18
|
"""
|
|
21
19
|
|
|
22
20
|
...
|
|
23
21
|
|
|
24
|
-
def hdr_support_get():
|
|
25
|
-
"""Return whether GPU backend supports High Dynamic range for viewport.
|
|
22
|
+
def hdr_support_get() -> bool:
|
|
23
|
+
"""Return whether GPU backend supports High Dynamic range for viewport.
|
|
24
|
+
|
|
25
|
+
:return: HDR support available.
|
|
26
|
+
:rtype: bool
|
|
27
|
+
"""
|
|
26
28
|
|
|
27
29
|
...
|
|
28
30
|
|
|
29
31
|
def max_batch_indices_get() -> int:
|
|
30
32
|
"""Get maximum number of vertex array indices.
|
|
31
33
|
|
|
32
|
-
:rtype: int
|
|
33
34
|
:return: Number of indices.
|
|
35
|
+
:rtype: int
|
|
34
36
|
"""
|
|
35
37
|
|
|
36
38
|
...
|
|
@@ -38,8 +40,17 @@ def max_batch_indices_get() -> int:
|
|
|
38
40
|
def max_batch_vertices_get() -> int:
|
|
39
41
|
"""Get maximum number of vertex array vertices.
|
|
40
42
|
|
|
41
|
-
:rtype: int
|
|
42
43
|
:return: Number of vertices.
|
|
44
|
+
:rtype: int
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
...
|
|
48
|
+
|
|
49
|
+
def max_images_get() -> int:
|
|
50
|
+
"""Get maximum supported number of image units.
|
|
51
|
+
|
|
52
|
+
:return: Number of image units.
|
|
53
|
+
:rtype: int
|
|
43
54
|
"""
|
|
44
55
|
|
|
45
56
|
...
|
|
@@ -47,8 +58,8 @@ def max_batch_vertices_get() -> int:
|
|
|
47
58
|
def max_texture_layers_get() -> int:
|
|
48
59
|
"""Get maximum number of layers in texture.
|
|
49
60
|
|
|
50
|
-
:rtype: int
|
|
51
61
|
:return: Number of layers.
|
|
62
|
+
:rtype: int
|
|
52
63
|
"""
|
|
53
64
|
|
|
54
65
|
...
|
|
@@ -56,80 +67,89 @@ def max_texture_layers_get() -> int:
|
|
|
56
67
|
def max_texture_size_get() -> int:
|
|
57
68
|
"""Get estimated maximum texture size to be able to handle.
|
|
58
69
|
|
|
59
|
-
:rtype: int
|
|
60
70
|
:return: Texture size.
|
|
71
|
+
:rtype: int
|
|
61
72
|
"""
|
|
62
73
|
|
|
63
74
|
...
|
|
64
75
|
|
|
65
76
|
def max_textures_frag_get() -> int:
|
|
66
|
-
"""Get maximum supported texture image units used for
|
|
77
|
+
"""Get maximum supported texture image units used for
|
|
78
|
+
accessing texture maps from the fragment shader.
|
|
67
79
|
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
:return: Texture image units.
|
|
81
|
+
:rtype: int
|
|
70
82
|
"""
|
|
71
83
|
|
|
72
84
|
...
|
|
73
85
|
|
|
74
86
|
def max_textures_geom_get() -> int:
|
|
75
|
-
"""Get maximum supported texture image units used for
|
|
87
|
+
"""Get maximum supported texture image units used for
|
|
88
|
+
accessing texture maps from the geometry shader.
|
|
76
89
|
|
|
77
|
-
|
|
78
|
-
|
|
90
|
+
:return: Texture image units.
|
|
91
|
+
:rtype: int
|
|
79
92
|
"""
|
|
80
93
|
|
|
81
94
|
...
|
|
82
95
|
|
|
83
96
|
def max_textures_get() -> int:
|
|
84
|
-
"""Get maximum supported texture image units used for
|
|
97
|
+
"""Get maximum supported texture image units used for
|
|
98
|
+
accessing texture maps from the vertex shader and the
|
|
99
|
+
fragment processor.
|
|
85
100
|
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
:return: Texture image units.
|
|
102
|
+
:rtype: int
|
|
88
103
|
"""
|
|
89
104
|
|
|
90
105
|
...
|
|
91
106
|
|
|
92
107
|
def max_textures_vert_get() -> int:
|
|
93
|
-
"""Get maximum supported texture image units used for
|
|
108
|
+
"""Get maximum supported texture image units used for
|
|
109
|
+
accessing texture maps from the vertex shader.
|
|
94
110
|
|
|
95
|
-
|
|
96
|
-
|
|
111
|
+
:return: Texture image units.
|
|
112
|
+
:rtype: int
|
|
97
113
|
"""
|
|
98
114
|
|
|
99
115
|
...
|
|
100
116
|
|
|
101
117
|
def max_uniforms_frag_get() -> int:
|
|
102
|
-
"""Get maximum number of values held in uniform variable
|
|
118
|
+
"""Get maximum number of values held in uniform variable
|
|
119
|
+
storage for a fragment shader.
|
|
103
120
|
|
|
104
|
-
|
|
105
|
-
|
|
121
|
+
:return: Number of values.
|
|
122
|
+
:rtype: int
|
|
106
123
|
"""
|
|
107
124
|
|
|
108
125
|
...
|
|
109
126
|
|
|
110
127
|
def max_uniforms_vert_get() -> int:
|
|
111
|
-
"""Get maximum number of values held in uniform variable
|
|
128
|
+
"""Get maximum number of values held in uniform variable
|
|
129
|
+
storage for a vertex shader.
|
|
112
130
|
|
|
113
|
-
|
|
114
|
-
|
|
131
|
+
:return: Number of values.
|
|
132
|
+
:rtype: int
|
|
115
133
|
"""
|
|
116
134
|
|
|
117
135
|
...
|
|
118
136
|
|
|
119
137
|
def max_varying_floats_get() -> int:
|
|
120
|
-
"""Get maximum number of varying variables used by
|
|
138
|
+
"""Get maximum number of varying variables used by
|
|
139
|
+
vertex and fragment shaders.
|
|
121
140
|
|
|
122
|
-
|
|
123
|
-
|
|
141
|
+
:return: Number of variables.
|
|
142
|
+
:rtype: int
|
|
124
143
|
"""
|
|
125
144
|
|
|
126
145
|
...
|
|
127
146
|
|
|
128
147
|
def max_vertex_attribs_get() -> int:
|
|
129
|
-
"""Get maximum number of vertex attributes accessible to
|
|
148
|
+
"""Get maximum number of vertex attributes accessible to
|
|
149
|
+
a vertex shader.
|
|
130
150
|
|
|
131
|
-
|
|
132
|
-
|
|
151
|
+
:return: Number of attributes.
|
|
152
|
+
:rtype: int
|
|
133
153
|
"""
|
|
134
154
|
|
|
135
155
|
...
|
|
@@ -139,8 +159,8 @@ def max_work_group_count_get(index: int) -> int:
|
|
|
139
159
|
|
|
140
160
|
:param index: Index of the dimension.
|
|
141
161
|
:type index: int
|
|
142
|
-
:rtype: int
|
|
143
162
|
:return: Maximum number of work groups for the queried dimension.
|
|
163
|
+
:rtype: int
|
|
144
164
|
"""
|
|
145
165
|
|
|
146
166
|
...
|
|
@@ -150,8 +170,8 @@ def max_work_group_size_get(index: int) -> int:
|
|
|
150
170
|
|
|
151
171
|
:param index: Index of the dimension.
|
|
152
172
|
:type index: int
|
|
153
|
-
:rtype: int
|
|
154
173
|
:return: Maximum size of a work group for the queried dimension.
|
|
174
|
+
:rtype: int
|
|
155
175
|
"""
|
|
156
176
|
|
|
157
177
|
...
|
|
@@ -159,8 +179,8 @@ def max_work_group_size_get(index: int) -> int:
|
|
|
159
179
|
def shader_image_load_store_support_get() -> bool:
|
|
160
180
|
"""Is image load/store supported.
|
|
161
181
|
|
|
162
|
-
:rtype: bool
|
|
163
182
|
:return: True when supported, False when not supported.
|
|
183
|
+
:rtype: bool
|
|
164
184
|
"""
|
|
165
185
|
|
|
166
186
|
...
|
gpu/matrix/__init__.pyi
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import mathutils
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
7
|
-
def get_model_view_matrix() ->
|
|
6
|
+
def get_model_view_matrix() -> mathutils.Matrix:
|
|
8
7
|
"""Return a copy of the model-view matrix.
|
|
9
8
|
|
|
10
|
-
:rtype: 'mathutils.Matrix'
|
|
11
9
|
:return: A 4x4 view matrix.
|
|
10
|
+
:rtype: mathutils.Matrix
|
|
12
11
|
"""
|
|
13
12
|
|
|
14
13
|
...
|
|
15
14
|
|
|
16
|
-
def get_normal_matrix() ->
|
|
15
|
+
def get_normal_matrix() -> mathutils.Matrix:
|
|
17
16
|
"""Return a copy of the normal matrix.
|
|
18
17
|
|
|
19
|
-
:rtype: 'mathutils.Matrix'
|
|
20
18
|
:return: A 3x3 normal matrix.
|
|
19
|
+
:rtype: mathutils.Matrix
|
|
21
20
|
"""
|
|
22
21
|
|
|
23
22
|
...
|
|
24
23
|
|
|
25
|
-
def get_projection_matrix() ->
|
|
24
|
+
def get_projection_matrix() -> mathutils.Matrix:
|
|
26
25
|
"""Return a copy of the projection matrix.
|
|
27
26
|
|
|
28
|
-
:rtype: 'mathutils.Matrix'
|
|
29
27
|
:return: A 4x4 projection matrix.
|
|
28
|
+
:rtype: mathutils.Matrix
|
|
30
29
|
"""
|
|
31
30
|
|
|
32
31
|
...
|
|
@@ -36,31 +35,31 @@ def load_identity():
|
|
|
36
35
|
|
|
37
36
|
...
|
|
38
37
|
|
|
39
|
-
def load_matrix(matrix: typing.Union[typing.Sequence[float],
|
|
38
|
+
def load_matrix(matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]):
|
|
40
39
|
"""Load a matrix into the stack.
|
|
41
40
|
|
|
42
41
|
:param matrix: A 4x4 matrix.
|
|
43
|
-
:type matrix: typing.Union[typing.Sequence[float],
|
|
42
|
+
:type matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]
|
|
44
43
|
"""
|
|
45
44
|
|
|
46
45
|
...
|
|
47
46
|
|
|
48
47
|
def load_projection_matrix(
|
|
49
|
-
matrix: typing.Union[typing.Sequence[float],
|
|
48
|
+
matrix: typing.Union[typing.Sequence[float], mathutils.Matrix],
|
|
50
49
|
):
|
|
51
50
|
"""Load a projection matrix into the stack.
|
|
52
51
|
|
|
53
52
|
:param matrix: A 4x4 matrix.
|
|
54
|
-
:type matrix: typing.Union[typing.Sequence[float],
|
|
53
|
+
:type matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]
|
|
55
54
|
"""
|
|
56
55
|
|
|
57
56
|
...
|
|
58
57
|
|
|
59
|
-
def multiply_matrix(matrix: typing.Union[typing.Sequence[float],
|
|
58
|
+
def multiply_matrix(matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]):
|
|
60
59
|
"""Multiply the current stack matrix.
|
|
61
60
|
|
|
62
61
|
:param matrix: A 4x4 matrix.
|
|
63
|
-
:type matrix: typing.Union[typing.Sequence[float],
|
|
62
|
+
:type matrix: typing.Union[typing.Sequence[float], mathutils.Matrix]
|
|
64
63
|
"""
|
|
65
64
|
|
|
66
65
|
...
|
|
@@ -100,11 +99,10 @@ def reset():
|
|
|
100
99
|
|
|
101
100
|
...
|
|
102
101
|
|
|
103
|
-
def scale(scale
|
|
102
|
+
def scale(scale):
|
|
104
103
|
"""Scale the current stack matrix.
|
|
105
104
|
|
|
106
105
|
:param scale: Scale the current stack matrix.
|
|
107
|
-
:type scale: typing.List
|
|
108
106
|
"""
|
|
109
107
|
|
|
110
108
|
...
|
|
@@ -118,11 +116,10 @@ def scale_uniform(scale: float):
|
|
|
118
116
|
|
|
119
117
|
...
|
|
120
118
|
|
|
121
|
-
def translate(offset
|
|
119
|
+
def translate(offset):
|
|
122
120
|
"""Scale the current stack matrix.
|
|
123
121
|
|
|
124
122
|
:param offset: Translate the current stack matrix.
|
|
125
|
-
:type offset: typing.List
|
|
126
123
|
"""
|
|
127
124
|
|
|
128
125
|
...
|