fake-bpy-module 20240528__py3-none-any.whl → 20240530__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.
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +3 -3
- bl_operators/__init__.pyi +2 -0
- bl_operators/connect_to_output/__init__.pyi +325 -0
- bl_operators/image_as_planes/__init__.pyi +11 -5
- bl_operators/node_editor/__init__.pyi +6 -0
- bl_operators/node_editor/node_functions/__init__.pyi +23 -0
- bl_operators/presets/__init__.pyi +12 -12
- bl_operators/wm/__init__.pyi +24 -24
- bl_ui/__init__.pyi +12 -12
- bl_ui/anim/__init__.pyi +6 -6
- bl_ui/node_add_menu/__init__.pyi +6 -6
- bl_ui/node_add_menu_compositor/__init__.pyi +108 -108
- bl_ui/node_add_menu_geometry/__init__.pyi +288 -288
- bl_ui/node_add_menu_shader/__init__.pyi +60 -60
- bl_ui/node_add_menu_texture/__init__.pyi +54 -54
- bl_ui/properties_collection/__init__.pyi +6 -6
- bl_ui/properties_data_armature/__init__.pyi +12 -12
- bl_ui/properties_data_camera/__init__.pyi +12 -12
- bl_ui/properties_data_curves/__init__.pyi +6 -6
- bl_ui/properties_data_gpencil/__init__.pyi +12 -12
- bl_ui/properties_data_grease_pencil/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +24 -24
- bl_ui/properties_data_modifier/__init__.pyi +42 -42
- bl_ui/properties_data_pointcloud/__init__.pyi +6 -6
- bl_ui/properties_freestyle/__init__.pyi +6 -6
- bl_ui/properties_grease_pencil_common/__init__.pyi +72 -72
- bl_ui/properties_mask_common/__init__.pyi +36 -36
- bl_ui/properties_material/__init__.pyi +6 -6
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +6 -6
- bl_ui/properties_output/__init__.pyi +18 -18
- bl_ui/properties_paint_common/__init__.pyi +6 -6
- bl_ui/properties_particle/__init__.pyi +12 -12
- bl_ui/properties_physics_cloth/__init__.pyi +6 -6
- bl_ui/properties_physics_fluid/__init__.pyi +6 -6
- bl_ui/properties_render/__init__.pyi +6 -6
- bl_ui/properties_texture/__init__.pyi +6 -6
- bl_ui/properties_view_layer/__init__.pyi +6 -6
- bl_ui/space_clip/__init__.pyi +186 -186
- bl_ui/space_console/__init__.pyi +30 -30
- bl_ui/space_dopesheet/__init__.pyi +84 -84
- bl_ui/space_filebrowser/__init__.pyi +78 -78
- bl_ui/space_graph/__init__.pyi +96 -96
- bl_ui/space_image/__init__.pyi +138 -138
- bl_ui/space_info/__init__.pyi +30 -30
- bl_ui/space_nla/__init__.pyi +78 -78
- bl_ui/space_node/__init__.pyi +72 -72
- bl_ui/space_outliner/__init__.pyi +72 -72
- bl_ui/space_sequencer/__init__.pyi +204 -204
- bl_ui/space_text/__init__.pyi +72 -72
- bl_ui/space_time/__init__.pyi +24 -24
- bl_ui/space_toolsystem_toolbar/__init__.pyi +4 -0
- bl_ui/space_topbar/__init__.pyi +114 -114
- bl_ui/space_userpref/__init__.pyi +36 -36
- bl_ui/space_view3d/__init__.pyi +1446 -1176
- bl_ui/space_view3d_toolbar/__init__.pyi +30 -30
- bl_ui/utils/__init__.pyi +6 -6
- bmesh/geometry/__init__.pyi +2 -2
- bmesh/ops/__init__.pyi +55 -54
- bmesh/types/__init__.pyi +171 -194
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/handlers/__init__.pyi +37 -37
- bpy/app/icons/__init__.pyi +4 -4
- bpy/app/timers/__init__.pyi +6 -6
- bpy/ops/bl_pkg/__init__.pyi +4 -4
- bpy/ops/image/__init__.pyi +55 -55
- bpy/ops/node/__init__.pyi +18 -0
- bpy/ops/paint/__init__.pyi +66 -0
- bpy/ops/preferences/__init__.pyi +2 -2
- bpy/ops/sculpt/__init__.pyi +126 -0
- bpy/props/__init__.pyi +16 -14
- bpy/types/__init__.pyi +269 -54
- bpy/utils/__init__.pyi +2 -2
- bpy_extras/anim_utils/__init__.pyi +4 -4
- bpy_extras/io_utils/__init__.pyi +4 -4
- bpy_extras/mesh_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +8 -8
- bpy_types/__init__.pyi +12 -12
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/RECORD +92 -89
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +64 -56
- gpu/matrix/__init__.pyi +6 -6
- gpu/types/__init__.pyi +10 -8
- imbuf/__init__.pyi +2 -2
- mathutils/__init__.pyi +176 -137
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +139 -139
- mathutils/kdtree/__init__.pyi +14 -10
- mathutils/noise/__init__.pyi +26 -26
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240528.dist-info → fake_bpy_module-20240530.dist-info}/top_level.txt +0 -0
|
@@ -496,10 +496,10 @@ class VIEW3D_MT_brush_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
496
496
|
searchpaths: list[str],
|
|
497
497
|
operator: str,
|
|
498
498
|
props_default: dict = None,
|
|
499
|
-
prop_filepath: str = "filepath",
|
|
500
|
-
filter_ext:
|
|
499
|
+
prop_filepath: str | None = "filepath",
|
|
500
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
501
501
|
filter_path=None,
|
|
502
|
-
display_name:
|
|
502
|
+
display_name: collections.abc.Callable | None = None,
|
|
503
503
|
add_operator=None,
|
|
504
504
|
add_operator_props=None,
|
|
505
505
|
):
|
|
@@ -512,14 +512,14 @@ class VIEW3D_MT_brush_context_menu(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
512
512
|
:param props_default: Properties to assign to each operator.
|
|
513
513
|
:type props_default: dict
|
|
514
514
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
515
|
-
:type prop_filepath: str
|
|
515
|
+
:type prop_filepath: str | None
|
|
516
516
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
517
517
|
|
|
518
518
|
Returning false excludes the file from the list.
|
|
519
|
-
:type filter_ext:
|
|
519
|
+
:type filter_ext: collections.abc.Callable | None
|
|
520
520
|
:param filter_path:
|
|
521
521
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
522
|
-
:type display_name:
|
|
522
|
+
:type display_name: collections.abc.Callable | None
|
|
523
523
|
:param add_operator:
|
|
524
524
|
:param add_operator_props:
|
|
525
525
|
"""
|
|
@@ -766,10 +766,10 @@ class VIEW3D_MT_brush_gpencil_context_menu(bpy_types.Menu, bpy_types._GenericUI)
|
|
|
766
766
|
searchpaths: list[str],
|
|
767
767
|
operator: str,
|
|
768
768
|
props_default: dict = None,
|
|
769
|
-
prop_filepath: str = "filepath",
|
|
770
|
-
filter_ext:
|
|
769
|
+
prop_filepath: str | None = "filepath",
|
|
770
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
771
771
|
filter_path=None,
|
|
772
|
-
display_name:
|
|
772
|
+
display_name: collections.abc.Callable | None = None,
|
|
773
773
|
add_operator=None,
|
|
774
774
|
add_operator_props=None,
|
|
775
775
|
):
|
|
@@ -782,14 +782,14 @@ class VIEW3D_MT_brush_gpencil_context_menu(bpy_types.Menu, bpy_types._GenericUI)
|
|
|
782
782
|
:param props_default: Properties to assign to each operator.
|
|
783
783
|
:type props_default: dict
|
|
784
784
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
785
|
-
:type prop_filepath: str
|
|
785
|
+
:type prop_filepath: str | None
|
|
786
786
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
787
787
|
|
|
788
788
|
Returning false excludes the file from the list.
|
|
789
|
-
:type filter_ext:
|
|
789
|
+
:type filter_ext: collections.abc.Callable | None
|
|
790
790
|
:param filter_path:
|
|
791
791
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
792
|
-
:type display_name:
|
|
792
|
+
:type display_name: collections.abc.Callable | None
|
|
793
793
|
:param add_operator:
|
|
794
794
|
:param add_operator_props:
|
|
795
795
|
"""
|
|
@@ -1036,10 +1036,10 @@ class VIEW3D_MT_tools_projectpaint_stencil(bpy_types.Menu, bpy_types._GenericUI)
|
|
|
1036
1036
|
searchpaths: list[str],
|
|
1037
1037
|
operator: str,
|
|
1038
1038
|
props_default: dict = None,
|
|
1039
|
-
prop_filepath: str = "filepath",
|
|
1040
|
-
filter_ext:
|
|
1039
|
+
prop_filepath: str | None = "filepath",
|
|
1040
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
1041
1041
|
filter_path=None,
|
|
1042
|
-
display_name:
|
|
1042
|
+
display_name: collections.abc.Callable | None = None,
|
|
1043
1043
|
add_operator=None,
|
|
1044
1044
|
add_operator_props=None,
|
|
1045
1045
|
):
|
|
@@ -1052,14 +1052,14 @@ class VIEW3D_MT_tools_projectpaint_stencil(bpy_types.Menu, bpy_types._GenericUI)
|
|
|
1052
1052
|
:param props_default: Properties to assign to each operator.
|
|
1053
1053
|
:type props_default: dict
|
|
1054
1054
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1055
|
-
:type prop_filepath: str
|
|
1055
|
+
:type prop_filepath: str | None
|
|
1056
1056
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
1057
1057
|
|
|
1058
1058
|
Returning false excludes the file from the list.
|
|
1059
|
-
:type filter_ext:
|
|
1059
|
+
:type filter_ext: collections.abc.Callable | None
|
|
1060
1060
|
:param filter_path:
|
|
1061
1061
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1062
|
-
:type display_name:
|
|
1062
|
+
:type display_name: collections.abc.Callable | None
|
|
1063
1063
|
:param add_operator:
|
|
1064
1064
|
:param add_operator_props:
|
|
1065
1065
|
"""
|
|
@@ -1306,10 +1306,10 @@ class VIEW3D_MT_tools_projectpaint_uvlayer(bpy_types.Menu, bpy_types._GenericUI)
|
|
|
1306
1306
|
searchpaths: list[str],
|
|
1307
1307
|
operator: str,
|
|
1308
1308
|
props_default: dict = None,
|
|
1309
|
-
prop_filepath: str = "filepath",
|
|
1310
|
-
filter_ext:
|
|
1309
|
+
prop_filepath: str | None = "filepath",
|
|
1310
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
1311
1311
|
filter_path=None,
|
|
1312
|
-
display_name:
|
|
1312
|
+
display_name: collections.abc.Callable | None = None,
|
|
1313
1313
|
add_operator=None,
|
|
1314
1314
|
add_operator_props=None,
|
|
1315
1315
|
):
|
|
@@ -1322,14 +1322,14 @@ class VIEW3D_MT_tools_projectpaint_uvlayer(bpy_types.Menu, bpy_types._GenericUI)
|
|
|
1322
1322
|
:param props_default: Properties to assign to each operator.
|
|
1323
1323
|
:type props_default: dict
|
|
1324
1324
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1325
|
-
:type prop_filepath: str
|
|
1325
|
+
:type prop_filepath: str | None
|
|
1326
1326
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
1327
1327
|
|
|
1328
1328
|
Returning false excludes the file from the list.
|
|
1329
|
-
:type filter_ext:
|
|
1329
|
+
:type filter_ext: collections.abc.Callable | None
|
|
1330
1330
|
:param filter_path:
|
|
1331
1331
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1332
|
-
:type display_name:
|
|
1332
|
+
:type display_name: collections.abc.Callable | None
|
|
1333
1333
|
:param add_operator:
|
|
1334
1334
|
:param add_operator_props:
|
|
1335
1335
|
"""
|
|
@@ -1804,10 +1804,10 @@ class VIEW3D_PT_gpencil_brush_presets(
|
|
|
1804
1804
|
searchpaths: list[str],
|
|
1805
1805
|
operator: str,
|
|
1806
1806
|
props_default: dict = None,
|
|
1807
|
-
prop_filepath: str = "filepath",
|
|
1808
|
-
filter_ext:
|
|
1807
|
+
prop_filepath: str | None = "filepath",
|
|
1808
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
1809
1809
|
filter_path=None,
|
|
1810
|
-
display_name:
|
|
1810
|
+
display_name: collections.abc.Callable | None = None,
|
|
1811
1811
|
add_operator=None,
|
|
1812
1812
|
add_operator_props=None,
|
|
1813
1813
|
):
|
|
@@ -1820,14 +1820,14 @@ class VIEW3D_PT_gpencil_brush_presets(
|
|
|
1820
1820
|
:param props_default: Properties to assign to each operator.
|
|
1821
1821
|
:type props_default: dict
|
|
1822
1822
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
1823
|
-
:type prop_filepath: str
|
|
1823
|
+
:type prop_filepath: str | None
|
|
1824
1824
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
1825
1825
|
|
|
1826
1826
|
Returning false excludes the file from the list.
|
|
1827
|
-
:type filter_ext:
|
|
1827
|
+
:type filter_ext: collections.abc.Callable | None
|
|
1828
1828
|
:param filter_path:
|
|
1829
1829
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
1830
|
-
:type display_name:
|
|
1830
|
+
:type display_name: collections.abc.Callable | None
|
|
1831
1831
|
:param add_operator:
|
|
1832
1832
|
:param add_operator_props:
|
|
1833
1833
|
"""
|
bl_ui/utils/__init__.pyi
CHANGED
|
@@ -36,10 +36,10 @@ class PresetPanel:
|
|
|
36
36
|
searchpaths: list[str],
|
|
37
37
|
operator: str,
|
|
38
38
|
props_default: dict = None,
|
|
39
|
-
prop_filepath: str = "filepath",
|
|
40
|
-
filter_ext:
|
|
39
|
+
prop_filepath: str | None = "filepath",
|
|
40
|
+
filter_ext: collections.abc.Callable | None = None,
|
|
41
41
|
filter_path=None,
|
|
42
|
-
display_name:
|
|
42
|
+
display_name: collections.abc.Callable | None = None,
|
|
43
43
|
add_operator=None,
|
|
44
44
|
add_operator_props=None,
|
|
45
45
|
):
|
|
@@ -52,14 +52,14 @@ class PresetPanel:
|
|
|
52
52
|
:param props_default: Properties to assign to each operator.
|
|
53
53
|
:type props_default: dict
|
|
54
54
|
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
55
|
-
:type prop_filepath: str
|
|
55
|
+
:type prop_filepath: str | None
|
|
56
56
|
:param filter_ext: Optional callback that takes the file extensions.
|
|
57
57
|
|
|
58
58
|
Returning false excludes the file from the list.
|
|
59
|
-
:type filter_ext:
|
|
59
|
+
:type filter_ext: collections.abc.Callable | None
|
|
60
60
|
:param filter_path:
|
|
61
61
|
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
62
|
-
:type display_name:
|
|
62
|
+
:type display_name: collections.abc.Callable | None
|
|
63
63
|
:param add_operator:
|
|
64
64
|
:param add_operator_props:
|
|
65
65
|
"""
|
bmesh/geometry/__init__.pyi
CHANGED
|
@@ -12,14 +12,14 @@ GenericType1 = typing.TypeVar("GenericType1")
|
|
|
12
12
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
13
13
|
|
|
14
14
|
def intersect_face_point(
|
|
15
|
-
face: bmesh.types.BMFace, point:
|
|
15
|
+
face: bmesh.types.BMFace, point: collections.abc.Sequence[float] | mathutils.Vector
|
|
16
16
|
) -> bool:
|
|
17
17
|
"""Tests if the projection of a point is inside a face (using the face's normal).
|
|
18
18
|
|
|
19
19
|
:param face: The face to test.
|
|
20
20
|
:type face: bmesh.types.BMFace
|
|
21
21
|
:param point: The point to test.
|
|
22
|
-
:type point:
|
|
22
|
+
:type point: collections.abc.Sequence[float] | mathutils.Vector
|
|
23
23
|
:return: True when the projection of the point is in the face.
|
|
24
24
|
:rtype: bool
|
|
25
25
|
"""
|
bmesh/ops/__init__.pyi
CHANGED
|
@@ -174,8 +174,8 @@ def bisect_plane(
|
|
|
174
174
|
| list[bmesh.types.BMEdge]
|
|
175
175
|
| list[bmesh.types.BMFace] = [],
|
|
176
176
|
dist: float = 0,
|
|
177
|
-
plane_co:
|
|
178
|
-
plane_no:
|
|
177
|
+
plane_co: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
178
|
+
plane_no: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
179
179
|
use_snap_center: bool = False,
|
|
180
180
|
clear_outer: bool = False,
|
|
181
181
|
clear_inner: bool = False,
|
|
@@ -189,9 +189,9 @@ def bisect_plane(
|
|
|
189
189
|
:param dist: minimum distance when testing if a vert is exactly on the plane
|
|
190
190
|
:type dist: float
|
|
191
191
|
:param plane_co: point on the plane
|
|
192
|
-
:type plane_co:
|
|
192
|
+
:type plane_co: collections.abc.Sequence[float] | mathutils.Vector
|
|
193
193
|
:param plane_no: direction of the plane
|
|
194
|
-
:type plane_no:
|
|
194
|
+
:type plane_no: collections.abc.Sequence[float] | mathutils.Vector
|
|
195
195
|
:param use_snap_center: snap axis aligned verts to the center
|
|
196
196
|
:type use_snap_center: bool
|
|
197
197
|
:param clear_outer: when enabled. remove all geometry on the positive side of the plane
|
|
@@ -460,7 +460,7 @@ def create_circle(
|
|
|
460
460
|
cap_tris: bool = False,
|
|
461
461
|
segments: int = 0,
|
|
462
462
|
radius: float = 0,
|
|
463
|
-
matrix:
|
|
463
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
464
464
|
calc_uvs: bool = False,
|
|
465
465
|
) -> dict[str, typing.Any]:
|
|
466
466
|
"""Creates a Circle.
|
|
@@ -476,7 +476,7 @@ def create_circle(
|
|
|
476
476
|
:param radius: Radius of the circle.
|
|
477
477
|
:type radius: float
|
|
478
478
|
:param matrix: matrix to multiply the new geometry with
|
|
479
|
-
:type matrix:
|
|
479
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
480
480
|
:param calc_uvs: calculate default UVs
|
|
481
481
|
:type calc_uvs: bool
|
|
482
482
|
:return: verts: output verts
|
|
@@ -495,7 +495,7 @@ def create_cone(
|
|
|
495
495
|
radius1: float = 0,
|
|
496
496
|
radius2: float = 0,
|
|
497
497
|
depth: float = 0,
|
|
498
|
-
matrix:
|
|
498
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
499
499
|
calc_uvs: bool = False,
|
|
500
500
|
) -> dict[str, typing.Any]:
|
|
501
501
|
"""Create Cone.Creates a cone with variable depth at both ends
|
|
@@ -515,7 +515,7 @@ def create_cone(
|
|
|
515
515
|
:param depth: distance between ends
|
|
516
516
|
:type depth: float
|
|
517
517
|
:param matrix: matrix to multiply the new geometry with
|
|
518
|
-
:type matrix:
|
|
518
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
519
519
|
:param calc_uvs: calculate default UVs
|
|
520
520
|
:type calc_uvs: bool
|
|
521
521
|
:return: verts: output verts
|
|
@@ -529,7 +529,7 @@ def create_cone(
|
|
|
529
529
|
def create_cube(
|
|
530
530
|
bm: bmesh.types.BMesh,
|
|
531
531
|
size: float = 0,
|
|
532
|
-
matrix:
|
|
532
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
533
533
|
calc_uvs: bool = False,
|
|
534
534
|
) -> dict[str, typing.Any]:
|
|
535
535
|
"""Create CubeCreates a cube.
|
|
@@ -539,7 +539,7 @@ def create_cube(
|
|
|
539
539
|
:param size: size of the cube
|
|
540
540
|
:type size: float
|
|
541
541
|
:param matrix: matrix to multiply the new geometry with
|
|
542
|
-
:type matrix:
|
|
542
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
543
543
|
:param calc_uvs: calculate default UVs
|
|
544
544
|
:type calc_uvs: bool
|
|
545
545
|
:return: verts: output verts
|
|
@@ -555,7 +555,7 @@ def create_grid(
|
|
|
555
555
|
x_segments: int = 0,
|
|
556
556
|
y_segments: int = 0,
|
|
557
557
|
size: float = 0,
|
|
558
|
-
matrix:
|
|
558
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
559
559
|
calc_uvs: bool = False,
|
|
560
560
|
) -> dict[str, typing.Any]:
|
|
561
561
|
"""Create Grid.Creates a grid with a variable number of subdivisions
|
|
@@ -569,7 +569,7 @@ def create_grid(
|
|
|
569
569
|
:param size: size of the grid
|
|
570
570
|
:type size: float
|
|
571
571
|
:param matrix: matrix to multiply the new geometry with
|
|
572
|
-
:type matrix:
|
|
572
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
573
573
|
:param calc_uvs: calculate default UVs
|
|
574
574
|
:type calc_uvs: bool
|
|
575
575
|
:return: verts: output verts
|
|
@@ -584,7 +584,7 @@ def create_icosphere(
|
|
|
584
584
|
bm: bmesh.types.BMesh,
|
|
585
585
|
subdivisions: int = 0,
|
|
586
586
|
radius: float = 0,
|
|
587
|
-
matrix:
|
|
587
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
588
588
|
calc_uvs: bool = False,
|
|
589
589
|
) -> dict[str, typing.Any]:
|
|
590
590
|
"""Create Ico-Sphere.Creates a grid with a variable number of subdivisions
|
|
@@ -596,7 +596,7 @@ def create_icosphere(
|
|
|
596
596
|
:param radius: radius
|
|
597
597
|
:type radius: float
|
|
598
598
|
:param matrix: matrix to multiply the new geometry with
|
|
599
|
-
:type matrix:
|
|
599
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
600
600
|
:param calc_uvs: calculate default UVs
|
|
601
601
|
:type calc_uvs: bool
|
|
602
602
|
:return: verts: output verts
|
|
@@ -609,7 +609,7 @@ def create_icosphere(
|
|
|
609
609
|
|
|
610
610
|
def create_monkey(
|
|
611
611
|
bm: bmesh.types.BMesh,
|
|
612
|
-
matrix:
|
|
612
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
613
613
|
calc_uvs: bool = False,
|
|
614
614
|
) -> dict[str, typing.Any]:
|
|
615
615
|
"""Create Suzanne.Creates a monkey (standard blender primitive).
|
|
@@ -617,7 +617,7 @@ def create_monkey(
|
|
|
617
617
|
:param bm: The bmesh to operate on.
|
|
618
618
|
:type bm: bmesh.types.BMesh
|
|
619
619
|
:param matrix: matrix to multiply the new geometry with
|
|
620
|
-
:type matrix:
|
|
620
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
621
621
|
:param calc_uvs: calculate default UVs
|
|
622
622
|
:type calc_uvs: bool
|
|
623
623
|
:return: verts: output verts
|
|
@@ -633,7 +633,7 @@ def create_uvsphere(
|
|
|
633
633
|
u_segments: int = 0,
|
|
634
634
|
v_segments: int = 0,
|
|
635
635
|
radius: float = 0,
|
|
636
|
-
matrix:
|
|
636
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
637
637
|
calc_uvs: bool = False,
|
|
638
638
|
) -> dict[str, typing.Any]:
|
|
639
639
|
"""Create UV Sphere.Creates a grid with a variable number of subdivisions
|
|
@@ -647,7 +647,7 @@ def create_uvsphere(
|
|
|
647
647
|
:param radius: radius
|
|
648
648
|
:type radius: float
|
|
649
649
|
:param matrix: matrix to multiply the new geometry with
|
|
650
|
-
:type matrix:
|
|
650
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
651
651
|
:param calc_uvs: calculate default UVs
|
|
652
652
|
:type calc_uvs: bool
|
|
653
653
|
:return: verts: output verts
|
|
@@ -659,7 +659,8 @@ def create_uvsphere(
|
|
|
659
659
|
...
|
|
660
660
|
|
|
661
661
|
def create_vert(
|
|
662
|
-
bm: bmesh.types.BMesh,
|
|
662
|
+
bm: bmesh.types.BMesh,
|
|
663
|
+
co: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
663
664
|
) -> dict[str, typing.Any]:
|
|
664
665
|
"""Make Vertex.Creates a single vertex; this BMOP was necessary
|
|
665
666
|
for click-create-vertex.
|
|
@@ -667,7 +668,7 @@ def create_vert(
|
|
|
667
668
|
:param bm: The bmesh to operate on.
|
|
668
669
|
:type bm: bmesh.types.BMesh
|
|
669
670
|
:param co: the coordinate of the new vert
|
|
670
|
-
:type co:
|
|
671
|
+
:type co: collections.abc.Sequence[float] | mathutils.Vector
|
|
671
672
|
:return: vert: the new vert
|
|
672
673
|
|
|
673
674
|
type list of (`bmesh.types.BMVert`)
|
|
@@ -1287,7 +1288,7 @@ def mirror(
|
|
|
1287
1288
|
geom: list[bmesh.types.BMVert]
|
|
1288
1289
|
| list[bmesh.types.BMEdge]
|
|
1289
1290
|
| list[bmesh.types.BMFace] = [],
|
|
1290
|
-
matrix:
|
|
1291
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
1291
1292
|
merge_dist: float = 0,
|
|
1292
1293
|
axis: str = "X",
|
|
1293
1294
|
mirror_u: bool = False,
|
|
@@ -1304,7 +1305,7 @@ def mirror(
|
|
|
1304
1305
|
:param geom: input geometry
|
|
1305
1306
|
:type geom: list[bmesh.types.BMVert] | list[bmesh.types.BMEdge] | list[bmesh.types.BMFace]
|
|
1306
1307
|
:param matrix: matrix defining the mirror transformation
|
|
1307
|
-
:type matrix:
|
|
1308
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
1308
1309
|
:param merge_dist: maximum distance for merging. does no merging if 0.
|
|
1309
1310
|
:type merge_dist: float
|
|
1310
1311
|
:param axis: the axis to use.
|
|
@@ -1389,7 +1390,7 @@ def planar_faces(
|
|
|
1389
1390
|
def pointmerge(
|
|
1390
1391
|
bm: bmesh.types.BMesh,
|
|
1391
1392
|
verts: list[bmesh.types.BMVert] = [],
|
|
1392
|
-
merge_co:
|
|
1393
|
+
merge_co: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
1393
1394
|
):
|
|
1394
1395
|
"""Point Merge.Merge verts together at a point.
|
|
1395
1396
|
|
|
@@ -1398,7 +1399,7 @@ def pointmerge(
|
|
|
1398
1399
|
:param verts: input vertices (all verts will be merged into the first).
|
|
1399
1400
|
:type verts: list[bmesh.types.BMVert]
|
|
1400
1401
|
:param merge_co: Position to merge at.
|
|
1401
|
-
:type merge_co:
|
|
1402
|
+
:type merge_co: collections.abc.Sequence[float] | mathutils.Vector
|
|
1402
1403
|
"""
|
|
1403
1404
|
|
|
1404
1405
|
...
|
|
@@ -1556,10 +1557,10 @@ def reverse_uvs(bm: bmesh.types.BMesh, faces: list[bmesh.types.BMFace] = []):
|
|
|
1556
1557
|
|
|
1557
1558
|
def rotate(
|
|
1558
1559
|
bm: bmesh.types.BMesh,
|
|
1559
|
-
cent:
|
|
1560
|
-
matrix:
|
|
1560
|
+
cent: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
1561
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
1561
1562
|
verts: list[bmesh.types.BMVert] = [],
|
|
1562
|
-
space:
|
|
1563
|
+
space: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
1563
1564
|
use_shapekey: bool = False,
|
|
1564
1565
|
):
|
|
1565
1566
|
"""Rotate.Rotate vertices around a center, using a 3x3 rotation matrix.
|
|
@@ -1567,13 +1568,13 @@ def rotate(
|
|
|
1567
1568
|
:param bm: The bmesh to operate on.
|
|
1568
1569
|
:type bm: bmesh.types.BMesh
|
|
1569
1570
|
:param cent: center of rotation
|
|
1570
|
-
:type cent:
|
|
1571
|
+
:type cent: collections.abc.Sequence[float] | mathutils.Vector
|
|
1571
1572
|
:param matrix: matrix defining rotation
|
|
1572
|
-
:type matrix:
|
|
1573
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
1573
1574
|
:param verts: input vertices
|
|
1574
1575
|
:type verts: list[bmesh.types.BMVert]
|
|
1575
1576
|
:param space: matrix to define the space (typically object matrix)
|
|
1576
|
-
:type space:
|
|
1577
|
+
:type space: collections.abc.Sequence[float] | mathutils.Matrix
|
|
1577
1578
|
:param use_shapekey: Transform shape keys too.
|
|
1578
1579
|
:type use_shapekey: bool
|
|
1579
1580
|
"""
|
|
@@ -1637,8 +1638,8 @@ def rotate_uvs(
|
|
|
1637
1638
|
|
|
1638
1639
|
def scale(
|
|
1639
1640
|
bm: bmesh.types.BMesh,
|
|
1640
|
-
vec:
|
|
1641
|
-
space:
|
|
1641
|
+
vec: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
1642
|
+
space: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
1642
1643
|
verts: list[bmesh.types.BMVert] = [],
|
|
1643
1644
|
use_shapekey: bool = False,
|
|
1644
1645
|
):
|
|
@@ -1647,9 +1648,9 @@ def scale(
|
|
|
1647
1648
|
:param bm: The bmesh to operate on.
|
|
1648
1649
|
:type bm: bmesh.types.BMesh
|
|
1649
1650
|
:param vec: scale factor
|
|
1650
|
-
:type vec:
|
|
1651
|
+
:type vec: collections.abc.Sequence[float] | mathutils.Vector
|
|
1651
1652
|
:param space: matrix to define the space (typically object matrix)
|
|
1652
|
-
:type space:
|
|
1653
|
+
:type space: collections.abc.Sequence[float] | mathutils.Matrix
|
|
1653
1654
|
:param verts: input vertices
|
|
1654
1655
|
:type verts: list[bmesh.types.BMVert]
|
|
1655
1656
|
:param use_shapekey: Transform shape keys too.
|
|
@@ -1757,11 +1758,11 @@ def spin(
|
|
|
1757
1758
|
geom: list[bmesh.types.BMVert]
|
|
1758
1759
|
| list[bmesh.types.BMEdge]
|
|
1759
1760
|
| list[bmesh.types.BMFace] = [],
|
|
1760
|
-
cent:
|
|
1761
|
-
axis:
|
|
1762
|
-
dvec:
|
|
1761
|
+
cent: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
1762
|
+
axis: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
1763
|
+
dvec: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
1763
1764
|
angle: float = 0,
|
|
1764
|
-
space:
|
|
1765
|
+
space: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
1765
1766
|
steps: int = 0,
|
|
1766
1767
|
use_merge: bool = False,
|
|
1767
1768
|
use_normal_flip: bool = False,
|
|
@@ -1775,15 +1776,15 @@ def spin(
|
|
|
1775
1776
|
:param geom: input geometry
|
|
1776
1777
|
:type geom: list[bmesh.types.BMVert] | list[bmesh.types.BMEdge] | list[bmesh.types.BMFace]
|
|
1777
1778
|
:param cent: rotation center
|
|
1778
|
-
:type cent:
|
|
1779
|
+
:type cent: collections.abc.Sequence[float] | mathutils.Vector
|
|
1779
1780
|
:param axis: rotation axis
|
|
1780
|
-
:type axis:
|
|
1781
|
+
:type axis: collections.abc.Sequence[float] | mathutils.Vector
|
|
1781
1782
|
:param dvec: translation delta per step
|
|
1782
|
-
:type dvec:
|
|
1783
|
+
:type dvec: collections.abc.Sequence[float] | mathutils.Vector
|
|
1783
1784
|
:param angle: total rotation angle (radians)
|
|
1784
1785
|
:type angle: float
|
|
1785
1786
|
:param space: matrix to define the space (typically object matrix)
|
|
1786
|
-
:type space:
|
|
1787
|
+
:type space: collections.abc.Sequence[float] | mathutils.Matrix
|
|
1787
1788
|
:param steps: number of steps
|
|
1788
1789
|
:type steps: int
|
|
1789
1790
|
:param use_merge: Merge first/last when the angle is a full revolution.
|
|
@@ -1838,7 +1839,7 @@ def split(
|
|
|
1838
1839
|
def split_edges(
|
|
1839
1840
|
bm: bmesh.types.BMesh,
|
|
1840
1841
|
edges: list[bmesh.types.BMEdge] = [],
|
|
1841
|
-
verts: list[bmesh.types.BMVert] = [],
|
|
1842
|
+
verts: list[bmesh.types.BMVert] | None = [],
|
|
1842
1843
|
use_verts: bool = False,
|
|
1843
1844
|
) -> dict[str, typing.Any]:
|
|
1844
1845
|
"""Edge Split.Disconnects faces along input edges.
|
|
@@ -1848,7 +1849,7 @@ def split_edges(
|
|
|
1848
1849
|
:param edges: input edges
|
|
1849
1850
|
:type edges: list[bmesh.types.BMEdge]
|
|
1850
1851
|
:param verts: optional tag verts, use to have greater control of splits
|
|
1851
|
-
:type verts: list[bmesh.types.BMVert]
|
|
1852
|
+
:type verts: list[bmesh.types.BMVert] | None
|
|
1852
1853
|
:param use_verts: use 'verts' for splitting, else just find verts to split from edges
|
|
1853
1854
|
:type use_verts: bool
|
|
1854
1855
|
:return: edges: old output disconnected edges
|
|
@@ -1993,8 +1994,8 @@ def symmetrize(
|
|
|
1993
1994
|
|
|
1994
1995
|
def transform(
|
|
1995
1996
|
bm: bmesh.types.BMesh,
|
|
1996
|
-
matrix:
|
|
1997
|
-
space:
|
|
1997
|
+
matrix: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
1998
|
+
space: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
1998
1999
|
verts: list[bmesh.types.BMVert] = [],
|
|
1999
2000
|
use_shapekey: bool = False,
|
|
2000
2001
|
):
|
|
@@ -2004,9 +2005,9 @@ def transform(
|
|
|
2004
2005
|
:param bm: The bmesh to operate on.
|
|
2005
2006
|
:type bm: bmesh.types.BMesh
|
|
2006
2007
|
:param matrix: transform matrix
|
|
2007
|
-
:type matrix:
|
|
2008
|
+
:type matrix: collections.abc.Sequence[float] | mathutils.Matrix
|
|
2008
2009
|
:param space: matrix to define the space (typically object matrix)
|
|
2009
|
-
:type space:
|
|
2010
|
+
:type space: collections.abc.Sequence[float] | mathutils.Matrix
|
|
2010
2011
|
:param verts: input vertices
|
|
2011
2012
|
:type verts: list[bmesh.types.BMVert]
|
|
2012
2013
|
:param use_shapekey: Transform shape keys too.
|
|
@@ -2017,8 +2018,8 @@ def transform(
|
|
|
2017
2018
|
|
|
2018
2019
|
def translate(
|
|
2019
2020
|
bm: bmesh.types.BMesh,
|
|
2020
|
-
vec:
|
|
2021
|
-
space:
|
|
2021
|
+
vec: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
2022
|
+
space: collections.abc.Sequence[float] | mathutils.Matrix = None(4),
|
|
2022
2023
|
verts: list[bmesh.types.BMVert] = [],
|
|
2023
2024
|
use_shapekey: bool = False,
|
|
2024
2025
|
):
|
|
@@ -2027,9 +2028,9 @@ def translate(
|
|
|
2027
2028
|
:param bm: The bmesh to operate on.
|
|
2028
2029
|
:type bm: bmesh.types.BMesh
|
|
2029
2030
|
:param vec: translation offset
|
|
2030
|
-
:type vec:
|
|
2031
|
+
:type vec: collections.abc.Sequence[float] | mathutils.Vector
|
|
2031
2032
|
:param space: matrix to define the space (typically object matrix)
|
|
2032
|
-
:type space:
|
|
2033
|
+
:type space: collections.abc.Sequence[float] | mathutils.Matrix
|
|
2033
2034
|
:param verts: input vertices
|
|
2034
2035
|
:type verts: list[bmesh.types.BMVert]
|
|
2035
2036
|
:param use_shapekey: Transform shape keys too.
|
|
@@ -2043,7 +2044,7 @@ def triangle_fill(
|
|
|
2043
2044
|
use_beauty: bool = False,
|
|
2044
2045
|
use_dissolve: bool = False,
|
|
2045
2046
|
edges: list[bmesh.types.BMEdge] = [],
|
|
2046
|
-
normal:
|
|
2047
|
+
normal: collections.abc.Sequence[float] | mathutils.Vector = None(),
|
|
2047
2048
|
) -> dict[str, typing.Any]:
|
|
2048
2049
|
"""Triangle Fill.Fill edges with triangles
|
|
2049
2050
|
|
|
@@ -2056,7 +2057,7 @@ def triangle_fill(
|
|
|
2056
2057
|
:param edges: input edges
|
|
2057
2058
|
:type edges: list[bmesh.types.BMEdge]
|
|
2058
2059
|
:param normal: optionally pass the fill normal to use
|
|
2059
|
-
:type normal:
|
|
2060
|
+
:type normal: collections.abc.Sequence[float] | mathutils.Vector
|
|
2060
2061
|
:return: geom: new faces and edges
|
|
2061
2062
|
|
|
2062
2063
|
type list of (`bmesh.types.BMVert`, `bmesh.types.BMEdge`, `bmesh.types.BMFace`)
|