fake-bpy-module 20250630__py3-none-any.whl → 20250827__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.
- _bpy_internal/__init__.pyi +1 -0
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
- _bpy_types/__init__.pyi +1594 -0
- aud/__init__.pyi +84 -31
- bl_i18n_utils/settings/__init__.pyi +1 -1
- bl_i18n_utils/utils/__init__.pyi +4 -4
- bl_math/__init__.pyi +1 -1
- bl_operators/add_mesh_torus/__init__.pyi +2 -1
- bl_operators/anim/__init__.pyi +15 -14
- bl_operators/assets/__init__.pyi +4 -3
- bl_operators/bone_selection_sets/__init__.pyi +15 -14
- bl_operators/clip/__init__.pyi +12 -11
- bl_operators/connect_to_output/__init__.pyi +2 -1
- bl_operators/console/__init__.pyi +6 -5
- bl_operators/constraint/__init__.pyi +6 -5
- bl_operators/file/__init__.pyi +6 -5
- bl_operators/freestyle/__init__.pyi +5 -4
- bl_operators/geometry_nodes/__init__.pyi +5 -4
- bl_operators/grease_pencil/__init__.pyi +2 -1
- bl_operators/image/__init__.pyi +6 -5
- bl_operators/image_as_planes/__init__.pyi +3 -2
- bl_operators/mesh/__init__.pyi +4 -3
- bl_operators/node/__init__.pyi +18 -17
- bl_operators/object/__init__.pyi +17 -16
- bl_operators/object_align/__init__.pyi +2 -1
- bl_operators/object_quick_effects/__init__.pyi +5 -4
- bl_operators/object_randomize_transform/__init__.pyi +2 -1
- bl_operators/presets/__init__.pyi +26 -25
- bl_operators/rigidbody/__init__.pyi +4 -3
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -1
- bl_operators/sequencer/__init__.pyi +12 -11
- bl_operators/spreadsheet/__init__.pyi +2 -1
- bl_operators/userpref/__init__.pyi +26 -25
- bl_operators/uvcalc_follow_active/__init__.pyi +2 -1
- bl_operators/uvcalc_lightmap/__init__.pyi +3 -2
- bl_operators/uvcalc_transform/__init__.pyi +5 -4
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -1
- bl_operators/view3d/__init__.pyi +9 -8
- bl_operators/wm/__init__.pyi +48 -47
- bl_operators/world/__init__.pyi +3 -2
- bl_ui/__init__.pyi +4 -3
- bl_ui/anim/__init__.pyi +2 -1
- bl_ui/asset_shelf/__init__.pyi +2 -1
- bl_ui/generic_ui_list/__init__.pyi +6 -5
- bl_ui/node_add_menu/__init__.pyi +3 -2
- bl_ui/node_add_menu_compositor/__init__.pyi +19 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +133 -54
- bl_ui/node_add_menu_shader/__init__.pyi +11 -10
- bl_ui/node_add_menu_texture/__init__.pyi +10 -9
- bl_ui/properties_collection/__init__.pyi +9 -8
- bl_ui/properties_constraint/__init__.pyi +78 -77
- bl_ui/properties_data_armature/__init__.pyi +22 -21
- bl_ui/properties_data_bone/__init__.pyi +12 -11
- bl_ui/properties_data_camera/__init__.pyi +18 -17
- bl_ui/properties_data_curve/__init__.pyi +18 -17
- bl_ui/properties_data_curves/__init__.pyi +11 -10
- bl_ui/properties_data_empty/__init__.pyi +3 -2
- bl_ui/properties_data_grease_pencil/__init__.pyi +23 -22
- bl_ui/properties_data_lattice/__init__.pyi +7 -6
- bl_ui/properties_data_light/__init__.pyi +13 -12
- bl_ui/properties_data_lightprobe/__init__.pyi +16 -15
- bl_ui/properties_data_mesh/__init__.pyi +48 -22
- bl_ui/properties_data_metaball/__init__.pyi +9 -8
- bl_ui/properties_data_modifier/__init__.pyi +10 -9
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -7
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -1
- bl_ui/properties_data_speaker/__init__.pyi +9 -8
- bl_ui/properties_data_volume/__init__.pyi +12 -11
- bl_ui/properties_freestyle/__init__.pyi +27 -26
- bl_ui/properties_grease_pencil_common/__init__.pyi +11 -10
- bl_ui/properties_mask_common/__init__.pyi +8 -7
- bl_ui/properties_material/__init__.pyi +19 -18
- bl_ui/properties_material_gpencil/__init__.pyi +14 -13
- bl_ui/properties_object/__init__.pyi +24 -23
- bl_ui/properties_output/__init__.pyi +21 -20
- bl_ui/properties_paint_common/__init__.pyi +8 -4
- bl_ui/properties_particle/__init__.pyi +58 -55
- bl_ui/properties_physics_cloth/__init__.pyi +15 -14
- bl_ui/properties_physics_common/__init__.pyi +2 -1
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -22
- bl_ui/properties_physics_field/__init__.pyi +11 -10
- bl_ui/properties_physics_fluid/__init__.pyi +29 -28
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -1
- bl_ui/properties_physics_rigidbody/__init__.pyi +9 -8
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -13
- bl_ui/properties_physics_softbody/__init__.pyi +16 -15
- bl_ui/properties_render/__init__.pyi +44 -74
- bl_ui/properties_scene/__init__.pyi +48 -18
- bl_ui/properties_texture/__init__.pyi +30 -29
- bl_ui/properties_view_layer/__init__.pyi +52 -14
- bl_ui/properties_workspace/__init__.pyi +6 -5
- bl_ui/properties_world/__init__.pyi +14 -13
- bl_ui/space_clip/__init__.pyi +76 -73
- bl_ui/space_console/__init__.pyi +7 -6
- bl_ui/space_dopesheet/__init__.pyi +32 -31
- bl_ui/space_filebrowser/__init__.pyi +33 -30
- bl_ui/space_graph/__init__.pyi +24 -23
- bl_ui/space_image/__init__.pyi +88 -72
- bl_ui/space_info/__init__.pyi +7 -6
- bl_ui/space_nla/__init__.pyi +22 -19
- bl_ui/space_node/__init__.pyi +66 -31
- bl_ui/space_outliner/__init__.pyi +16 -15
- bl_ui/space_properties/__init__.pyi +5 -4
- bl_ui/space_sequencer/__init__.pyi +131 -91
- bl_ui/space_spreadsheet/__init__.pyi +4 -3
- bl_ui/space_statusbar/__init__.pyi +2 -1
- bl_ui/space_text/__init__.pyi +17 -16
- bl_ui/space_time/__init__.pyi +7 -6
- bl_ui/space_toolsystem_common/__init__.pyi +2 -2
- bl_ui/space_toolsystem_toolbar/__init__.pyi +23 -5
- bl_ui/space_topbar/__init__.pyi +28 -27
- bl_ui/space_userpref/__init__.pyi +103 -92
- bl_ui/space_view3d/__init__.pyi +268 -266
- bl_ui/space_view3d_toolbar/__init__.pyi +106 -99
- blf/__init__.pyi +3 -5
- bmesh/__init__.pyi +2 -2
- bmesh/geometry/__init__.pyi +1 -1
- bmesh/ops/__init__.pyi +29 -14
- bmesh/types/__init__.pyi +41 -46
- bmesh/utils/__init__.pyi +1 -0
- bpy/__init__.pyi +1 -1
- bpy/app/__init__.pyi +34 -37
- bpy/app/handlers/__init__.pyi +19 -19
- bpy/app/timers/__init__.pyi +2 -1
- bpy/app/translations/__init__.pyi +8 -8
- bpy/msgbus/__init__.pyi +3 -2
- bpy/ops/action/__init__.pyi +58 -20
- bpy/ops/anim/__init__.pyi +115 -31
- bpy/ops/armature/__init__.pyi +59 -19
- bpy/ops/asset/__init__.pyi +35 -11
- bpy/ops/boid/__init__.pyi +21 -7
- bpy/ops/brush/__init__.pyi +10 -4
- bpy/ops/buttons/__init__.pyi +12 -4
- bpy/ops/cachefile/__init__.pyi +6 -2
- bpy/ops/clip/__init__.pyi +132 -46
- bpy/ops/collection/__init__.pyi +23 -4
- bpy/ops/console/__init__.pyi +30 -10
- bpy/ops/constraint/__init__.pyi +12 -6
- bpy/ops/curve/__init__.pyi +72 -24
- bpy/ops/curves/__init__.pyi +47 -15
- bpy/ops/cycles/__init__.pyi +4 -2
- bpy/ops/dpaint/__init__.pyi +11 -3
- bpy/ops/ed/__init__.pyi +34 -10
- bpy/ops/export_scene/__init__.pyi +15 -15
- bpy/ops/extensions/__init__.pyi +45 -15
- bpy/ops/file/__init__.pyi +81 -30
- bpy/ops/fluid/__init__.pyi +39 -13
- bpy/ops/font/__init__.pyi +30 -10
- bpy/ops/geometry/__init__.pyi +9 -3
- bpy/ops/gizmogroup/__init__.pyi +3 -1
- bpy/ops/gpencil/__init__.pyi +20 -8
- bpy/ops/graph/__init__.pyi +67 -29
- bpy/ops/grease_pencil/__init__.pyi +148 -38
- bpy/ops/image/__init__.pyi +68 -58
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +3 -0
- bpy/ops/import_scene/__init__.pyi +15 -2
- bpy/ops/info/__init__.pyi +12 -4
- bpy/ops/lattice/__init__.pyi +9 -3
- bpy/ops/marker/__init__.pyi +8 -2
- bpy/ops/mask/__init__.pyi +53 -19
- bpy/ops/material/__init__.pyi +15 -3
- bpy/ops/mball/__init__.pyi +3 -1
- bpy/ops/mesh/__init__.pyi +116 -45
- bpy/ops/nla/__init__.pyi +67 -25
- bpy/ops/node/__init__.pyi +285 -119
- bpy/ops/object/__init__.pyi +278 -116
- bpy/ops/outliner/__init__.pyi +145 -49
- bpy/ops/paint/__init__.pyi +65 -37
- bpy/ops/paintcurve/__init__.pyi +16 -4
- bpy/ops/palette/__init__.pyi +11 -3
- bpy/ops/particle/__init__.pyi +66 -24
- bpy/ops/pointcloud/__init__.pyi +9 -3
- bpy/ops/pose/__init__.pyi +80 -28
- bpy/ops/poselib/__init__.pyi +19 -7
- bpy/ops/preferences/__init__.pyi +29 -11
- bpy/ops/ptcache/__init__.pyi +17 -5
- bpy/ops/render/__init__.pyi +10 -4
- bpy/ops/rigidbody/__init__.pyi +19 -7
- bpy/ops/scene/__init__.pyi +93 -22
- bpy/ops/screen/__init__.pyi +58 -20
- bpy/ops/script/__init__.pyi +3 -1
- bpy/ops/sculpt/__init__.pyi +30 -14
- bpy/ops/sculpt_curves/__init__.pyi +4 -2
- bpy/ops/sequencer/__init__.pyi +262 -125
- bpy/ops/sound/__init__.pyi +13 -5
- bpy/ops/spreadsheet/__init__.pyi +15 -5
- bpy/ops/text/__init__.pyi +85 -25
- bpy/ops/texture/__init__.pyi +11 -3
- bpy/ops/transform/__init__.pyi +7 -3
- bpy/ops/ui/__init__.pyi +98 -53
- bpy/ops/uv/__init__.pyi +43 -17
- bpy/ops/view2d/__init__.pyi +13 -3
- bpy/ops/view3d/__init__.pyi +116 -38
- bpy/ops/wm/__init__.pyi +144 -86
- bpy/ops/workspace/__init__.pyi +31 -6
- bpy/ops/world/__init__.pyi +9 -3
- bpy/path/__init__.pyi +1 -1
- bpy/props/__init__.pyi +31 -31
- bpy/stub_internal/rna_enums/__init__.pyi +40 -25
- bpy/types/__init__.pyi +58124 -41707
- bpy/utils/__init__.pyi +8 -8
- bpy/utils/previews/__init__.pyi +2 -2
- bpy/utils/units/__init__.pyi +5 -3
- bpy_extras/anim_utils/__init__.pyi +1 -1
- bpy_extras/id_map_utils/__init__.pyi +1 -1
- bpy_extras/image_utils/__init__.pyi +2 -2
- bpy_extras/io_utils/__init__.pyi +5 -5
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/node_shader_utils/__init__.pyi +1 -1
- bpy_extras/object_utils/__init__.pyi +1 -1
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
- {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250827.dist-info}/METADATA +1 -1
- fake_bpy_module-20250827.dist-info/RECORD +370 -0
- {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250827.dist-info}/top_level.txt +1 -1
- freestyle/chainingiterators/__init__.pyi +5 -5
- freestyle/predicates/__init__.pyi +2 -2
- freestyle/shaders/__init__.pyi +16 -17
- freestyle/types/__init__.pyi +25 -27
- freestyle/utils/__init__.pyi +5 -5
- gpu/platform/__init__.pyi +2 -2
- gpu/shader/__init__.pyi +3 -3
- gpu/state/__init__.pyi +1 -1
- gpu/texture/__init__.pyi +3 -3
- gpu/types/__init__.pyi +25 -14
- gpu_extras/batch/__init__.pyi +1 -1
- idprop/types/__init__.pyi +2 -2
- imbuf/__init__.pyi +1 -1
- imbuf/types/__init__.pyi +12 -6
- keyingsets_builtins/__init__.pyi +23 -22
- mathutils/__init__.pyi +157 -61
- mathutils/bvhtree/__init__.pyi +20 -6
- mathutils/geometry/__init__.pyi +54 -12
- mathutils/interpolate/__init__.pyi +4 -2
- mathutils/kdtree/__init__.pyi +1 -0
- mathutils/noise/__init__.pyi +61 -44
- rna_info/__init__.pyi +4 -1
- rna_prop_ui/__init__.pyi +1 -1
- bpy_types/__init__.pyi +0 -30
- fake_bpy_module-20250630.dist-info/RECORD +0 -367
- {bpy_types → _bpy_types}/py.typed +0 -0
- {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250827.dist-info}/WHEEL +0 -0
blf/__init__.pyi
CHANGED
|
@@ -33,13 +33,11 @@ def aspect(fontid: int, aspect: float) -> None:
|
|
|
33
33
|
:type aspect: float
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
|
-
def bind_imbuf(fontid: int, image
|
|
37
|
-
"""Context manager to draw text into an image buffer instead of the
|
|
36
|
+
def bind_imbuf(fontid: int, image) -> None:
|
|
37
|
+
"""Context manager to draw text into an image buffer instead of the GPUs context.
|
|
38
38
|
|
|
39
39
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
40
40
|
:type fontid: int
|
|
41
|
-
:param display_name: The color management display name to use or None.
|
|
42
|
-
:type display_name: None | str | None
|
|
43
41
|
:return: The BLF ImBuf context manager.
|
|
44
42
|
"""
|
|
45
43
|
|
|
@@ -125,7 +123,7 @@ def load(filepath: bytes | str) -> int:
|
|
|
125
123
|
|
|
126
124
|
:param filepath: the filepath of the font.
|
|
127
125
|
:type filepath: bytes | str
|
|
128
|
-
:return: the new
|
|
126
|
+
:return: the new fonts fontid or -1 if there was an error.
|
|
129
127
|
:rtype: int
|
|
130
128
|
"""
|
|
131
129
|
|
bmesh/__init__.pyi
CHANGED
|
@@ -32,7 +32,7 @@ def from_edit_mesh(mesh: bpy.types.Mesh) -> bmesh.types.BMesh:
|
|
|
32
32
|
:rtype: bmesh.types.BMesh
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
|
-
def new(use_operators: bool = True) -> bmesh.types.BMesh:
|
|
35
|
+
def new(*, use_operators: bool = True) -> bmesh.types.BMesh:
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
:param use_operators: Support calling operators in `bmesh.ops` (uses some extra memory per vert/edge/face).
|
|
@@ -42,7 +42,7 @@ def new(use_operators: bool = True) -> bmesh.types.BMesh:
|
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
44
|
def update_edit_mesh(
|
|
45
|
-
mesh: bpy.types.Mesh, loop_triangles: bool = True, destructive: bool = True
|
|
45
|
+
mesh: bpy.types.Mesh, *, loop_triangles: bool = True, destructive: bool = True
|
|
46
46
|
) -> None:
|
|
47
47
|
"""Update the mesh after changes to the BMesh in editmode,
|
|
48
48
|
optionally recalculating n-gon tessellation.
|
bmesh/geometry/__init__.pyi
CHANGED
|
@@ -13,7 +13,7 @@ import mathutils
|
|
|
13
13
|
def intersect_face_point(
|
|
14
14
|
face: bmesh.types.BMFace, point: collections.abc.Sequence[float] | mathutils.Vector
|
|
15
15
|
) -> bool:
|
|
16
|
-
"""Tests if the projection of a point is inside a face (using the
|
|
16
|
+
"""Tests if the projection of a point is inside a face (using the faces normal).
|
|
17
17
|
|
|
18
18
|
:param face: The face to test.
|
|
19
19
|
:type face: bmesh.types.BMFace
|
bmesh/ops/__init__.pyi
CHANGED
|
@@ -25,7 +25,7 @@ def average_vert_facedata(
|
|
|
25
25
|
bm: bmesh.types.BMesh, verts: list[bmesh.types.BMVert] = []
|
|
26
26
|
) -> None:
|
|
27
27
|
"""Average Vertices Face-vert Data.Merge uv/vcols associated with the input vertices at
|
|
28
|
-
the bounding box center. (I know,
|
|
28
|
+
the bounding box center. (I know, its not averaging but
|
|
29
29
|
the vert_snap_to_bb_center is just too long).
|
|
30
30
|
|
|
31
31
|
:param bm: The bmesh to operate on.
|
|
@@ -151,7 +151,7 @@ def bisect_edges(
|
|
|
151
151
|
cuts: int = 0,
|
|
152
152
|
edge_percents={},
|
|
153
153
|
) -> dict[str, typing.Any]:
|
|
154
|
-
"""Edge Bisect.Splits input edges (but
|
|
154
|
+
"""Edge Bisect.Splits input edges (but doesnt do anything else).
|
|
155
155
|
This creates a 2-valence vert.
|
|
156
156
|
|
|
157
157
|
:param bm: The bmesh to operate on.
|
|
@@ -244,7 +244,7 @@ def bridge_loops(
|
|
|
244
244
|
:type use_cyclic: bool
|
|
245
245
|
:param use_merge: Merge rather than creating faces.
|
|
246
246
|
:type use_merge: bool
|
|
247
|
-
:param merge_factor:
|
|
247
|
+
:param merge_factor: Merge factor.
|
|
248
248
|
:type merge_factor: float
|
|
249
249
|
:param twist_offset: Twist offset for closed loops.
|
|
250
250
|
:type twist_offset: int
|
|
@@ -406,12 +406,12 @@ def convex_hull(
|
|
|
406
406
|
| list[bmesh.types.BMVert] = [],
|
|
407
407
|
use_existing_faces: bool = False,
|
|
408
408
|
) -> dict[str, typing.Any]:
|
|
409
|
-
"""Convex HullBuilds a convex hull from the vertices in
|
|
410
|
-
that are covered by a pre-existing face.All hull vertices, faces, and edges are added to
|
|
409
|
+
"""Convex HullBuilds a convex hull from the vertices in input.If use_existing_faces is true, the hull will not output triangles
|
|
410
|
+
that are covered by a pre-existing face.All hull vertices, faces, and edges are added to geom.out. Any
|
|
411
411
|
input elements that end up inside the hull (i.e. are not used by an
|
|
412
|
-
output face) are added to the
|
|
413
|
-
|
|
414
|
-
completely unused. Lastly,
|
|
412
|
+
output face) are added to the interior_geom slot. The
|
|
413
|
+
unused_geom slot will contain all interior geometry that is
|
|
414
|
+
completely unused. Lastly, holes_geom contains edges and faces
|
|
415
415
|
that were in the input and are part of the hull.
|
|
416
416
|
|
|
417
417
|
:param bm: The bmesh to operate on.
|
|
@@ -829,6 +829,8 @@ def duplicate(
|
|
|
829
829
|
type dict mapping vert/edge/face types to `bmesh.types.BMVert`/`bmesh.types.BMEdge`/`bmesh.types.BMFace`
|
|
830
830
|
|
|
831
831
|
boundary_map:
|
|
832
|
+
Boundary edges from the split geometry that maps edges from the original geometry
|
|
833
|
+
to the destination edges.
|
|
832
834
|
|
|
833
835
|
type dict mapping vert/edge/face types to `bmesh.types.BMVert`/`bmesh.types.BMEdge`/`bmesh.types.BMFace`
|
|
834
836
|
|
|
@@ -891,7 +893,7 @@ def edgenet_prepare(
|
|
|
891
893
|
bm: bmesh.types.BMesh, edges: list[bmesh.types.BMEdge] = []
|
|
892
894
|
) -> dict[str, typing.Any]:
|
|
893
895
|
"""Edge-net Prepare.Identifies several useful edge loop cases and modifies them so
|
|
894
|
-
|
|
896
|
+
theyll become a face when edgenet_fill is called. The cases covered are:
|
|
895
897
|
|
|
896
898
|
:param bm: The bmesh to operate on.
|
|
897
899
|
:type bm: bmesh.types.BMesh
|
|
@@ -933,7 +935,7 @@ def extrude_edge_only(
|
|
|
933
935
|
use_normal_flip: bool = False,
|
|
934
936
|
use_select_history: bool = False,
|
|
935
937
|
) -> dict[str, typing.Any]:
|
|
936
|
-
"""Extrude Only Edges.Extrudes Edges into faces, note that this is very simple,
|
|
938
|
+
"""Extrude Only Edges.Extrudes Edges into faces, note that this is very simple, theres no fancy
|
|
937
939
|
winged extrusion.
|
|
938
940
|
|
|
939
941
|
:param bm: The bmesh to operate on.
|
|
@@ -1038,6 +1040,7 @@ def find_doubles(
|
|
|
1038
1040
|
bm: bmesh.types.BMesh,
|
|
1039
1041
|
verts: list[bmesh.types.BMVert] = [],
|
|
1040
1042
|
keep_verts: list[bmesh.types.BMVert] = [],
|
|
1043
|
+
use_connected: bool = False,
|
|
1041
1044
|
dist: float = 0,
|
|
1042
1045
|
) -> dict[str, typing.Any]:
|
|
1043
1046
|
"""Find Doubles.Takes input verts and find vertices they should weld to.
|
|
@@ -1050,6 +1053,8 @@ def find_doubles(
|
|
|
1050
1053
|
:type verts: list[bmesh.types.BMVert]
|
|
1051
1054
|
:param keep_verts: List of verts to keep.
|
|
1052
1055
|
:type keep_verts: list[bmesh.types.BMVert]
|
|
1056
|
+
:param use_connected: Limit the search for doubles by connected geometry.
|
|
1057
|
+
:type use_connected: bool
|
|
1053
1058
|
:param dist: Maximum distance.
|
|
1054
1059
|
:type dist: float
|
|
1055
1060
|
:return: targetmap:
|
|
@@ -1246,7 +1251,7 @@ def mesh_to_bmesh(
|
|
|
1246
1251
|
object: bpy.types.Object,
|
|
1247
1252
|
use_shapekey: bool = False,
|
|
1248
1253
|
) -> None:
|
|
1249
|
-
"""Mesh to BMesh.Load the contents of a mesh into the bmesh. this BMOP is private,
|
|
1254
|
+
"""Mesh to BMesh.Load the contents of a mesh into the bmesh. this BMOP is private, its
|
|
1250
1255
|
reserved exclusively for entering edit-mode.
|
|
1251
1256
|
|
|
1252
1257
|
:param bm: The bmesh to operate on.
|
|
@@ -1463,7 +1468,10 @@ def region_extend(
|
|
|
1463
1468
|
"""
|
|
1464
1469
|
|
|
1465
1470
|
def remove_doubles(
|
|
1466
|
-
bm: bmesh.types.BMesh,
|
|
1471
|
+
bm: bmesh.types.BMesh,
|
|
1472
|
+
verts: list[bmesh.types.BMVert] = [],
|
|
1473
|
+
use_connected: bool = False,
|
|
1474
|
+
dist: float = 0,
|
|
1467
1475
|
) -> None:
|
|
1468
1476
|
"""Remove Doubles.Finds groups of vertices closer than dist and merges them together,
|
|
1469
1477
|
using the weld verts BMOP.
|
|
@@ -1472,6 +1480,8 @@ def remove_doubles(
|
|
|
1472
1480
|
:type bm: bmesh.types.BMesh
|
|
1473
1481
|
:param verts: Input verts.
|
|
1474
1482
|
:type verts: list[bmesh.types.BMVert]
|
|
1483
|
+
:param use_connected: Limit the search for doubles by connected geometry.
|
|
1484
|
+
:type use_connected: bool
|
|
1475
1485
|
:param dist: Minimum distance.
|
|
1476
1486
|
:type dist: float
|
|
1477
1487
|
"""
|
|
@@ -1765,13 +1775,18 @@ def split(
|
|
|
1765
1775
|
:type geom: list[bmesh.types.BMEdge] | list[bmesh.types.BMFace] | list[bmesh.types.BMVert]
|
|
1766
1776
|
:param dest: Destination bmesh, if None will use current one.
|
|
1767
1777
|
:type dest: bmesh.types.BMesh | None
|
|
1768
|
-
:param use_only_faces: When enabled.
|
|
1778
|
+
:param use_only_faces: When enabled. dont duplicate loose verts/edges.
|
|
1769
1779
|
:type use_only_faces: bool
|
|
1770
1780
|
:return: geom:
|
|
1771
1781
|
|
|
1772
1782
|
type list of (`bmesh.types.BMVert`, `bmesh.types.BMEdge`, `bmesh.types.BMFace`)
|
|
1773
1783
|
|
|
1774
1784
|
boundary_map:
|
|
1785
|
+
Boundary edges from the split geometry that maps edges from the original geometry
|
|
1786
|
+
to the destination edges.
|
|
1787
|
+
|
|
1788
|
+
When the source edges have been deleted, the destination edge will be used
|
|
1789
|
+
for both the key and the value.
|
|
1775
1790
|
|
|
1776
1791
|
type dict mapping vert/edge/face types to `bmesh.types.BMVert`/`bmesh.types.BMEdge`/`bmesh.types.BMFace`
|
|
1777
1792
|
|
|
@@ -1795,7 +1810,7 @@ def split_edges(
|
|
|
1795
1810
|
:type edges: list[bmesh.types.BMEdge]
|
|
1796
1811
|
:param verts: Optional tag verts, use to have greater control of splits.
|
|
1797
1812
|
:type verts: list[bmesh.types.BMVert]
|
|
1798
|
-
:param use_verts: Use
|
|
1813
|
+
:param use_verts: Use verts for splitting, else just find verts to split from edges.
|
|
1799
1814
|
:type use_verts: bool
|
|
1800
1815
|
:return: edges:
|
|
1801
1816
|
Old output disconnected edges.
|
bmesh/types/__init__.pyi
CHANGED
|
@@ -23,6 +23,7 @@ import typing
|
|
|
23
23
|
import collections.abc
|
|
24
24
|
import typing_extensions
|
|
25
25
|
import numpy.typing as npt
|
|
26
|
+
import _bpy_types
|
|
26
27
|
import bpy.types
|
|
27
28
|
import mathutils
|
|
28
29
|
|
|
@@ -32,7 +33,7 @@ class BMDeformVert:
|
|
|
32
33
|
|
|
33
34
|
def get(self, key: int, default: typing.Any | None = None) -> None:
|
|
34
35
|
"""Returns the deform weight matching the key or default
|
|
35
|
-
when not found (matches
|
|
36
|
+
when not found (matches Pythons dictionary function of the same name).
|
|
36
37
|
|
|
37
38
|
:param key: The key associated with deform weight.
|
|
38
39
|
:type key: int
|
|
@@ -43,7 +44,7 @@ class BMDeformVert:
|
|
|
43
44
|
|
|
44
45
|
def items(self) -> list[tuple[int, float]]:
|
|
45
46
|
"""Return (group, weight) pairs for this vertex
|
|
46
|
-
(matching
|
|
47
|
+
(matching Pythons dict.items() functionality).
|
|
47
48
|
|
|
48
49
|
:return: (key, value) pairs for each deform weight of this vertex.
|
|
49
50
|
:rtype: list[tuple[int, float]]
|
|
@@ -51,7 +52,7 @@ class BMDeformVert:
|
|
|
51
52
|
|
|
52
53
|
def keys(self) -> list[int]:
|
|
53
54
|
"""Return the group indices used by this vertex
|
|
54
|
-
(matching
|
|
55
|
+
(matching Pythons dict.keys() functionality).
|
|
55
56
|
|
|
56
57
|
:return: the deform group this vertex uses
|
|
57
58
|
:rtype: list[int]
|
|
@@ -59,7 +60,7 @@ class BMDeformVert:
|
|
|
59
60
|
|
|
60
61
|
def values(self) -> list[float]:
|
|
61
62
|
"""Return the weights of the deform vertex
|
|
62
|
-
(matching
|
|
63
|
+
(matching Pythons dict.values() functionality).
|
|
63
64
|
|
|
64
65
|
:return: The weights that influence this vertex
|
|
65
66
|
:rtype: list[float]
|
|
@@ -105,7 +106,7 @@ class BMEdge:
|
|
|
105
106
|
"""
|
|
106
107
|
|
|
107
108
|
is_valid: bool
|
|
108
|
-
""" True when this element is valid (
|
|
109
|
+
""" True when this element is valid (hasnt been removed).
|
|
109
110
|
|
|
110
111
|
:type: bool
|
|
111
112
|
"""
|
|
@@ -161,7 +162,7 @@ class BMEdge:
|
|
|
161
162
|
def calc_face_angle(self, fallback: typing.Any | None = None) -> float:
|
|
162
163
|
"""
|
|
163
164
|
|
|
164
|
-
:param fallback: return this when the edge
|
|
165
|
+
:param fallback: return this when the edge doesnt have 2 faces
|
|
165
166
|
(instead of raising a `ValueError`).
|
|
166
167
|
:type fallback: typing.Any | None
|
|
167
168
|
:return: The angle between 2 connected faces in radians.
|
|
@@ -171,7 +172,7 @@ class BMEdge:
|
|
|
171
172
|
def calc_face_angle_signed(self, fallback: typing.Any | None = None) -> float:
|
|
172
173
|
"""
|
|
173
174
|
|
|
174
|
-
:param fallback: return this when the edge
|
|
175
|
+
:param fallback: return this when the edge doesnt have 2 faces
|
|
175
176
|
(instead of raising a `ValueError`).
|
|
176
177
|
:type fallback: typing.Any | None
|
|
177
178
|
:return: The angle between 2 connected faces in radians (negative for concave join).
|
|
@@ -304,6 +305,7 @@ class BMEdgeSeq:
|
|
|
304
305
|
|
|
305
306
|
def sort(
|
|
306
307
|
self,
|
|
308
|
+
*,
|
|
307
309
|
key: None
|
|
308
310
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
309
311
|
| None = None,
|
|
@@ -371,7 +373,7 @@ class BMEditSelSeq:
|
|
|
371
373
|
"""Empties the selection history."""
|
|
372
374
|
|
|
373
375
|
def discard(self, element) -> None:
|
|
374
|
-
"""Discard an element from the selection history.Like remove but
|
|
376
|
+
"""Discard an element from the selection history.Like remove but doesnt raise an error when the elements not in the selection list.
|
|
375
377
|
|
|
376
378
|
:param element:
|
|
377
379
|
"""
|
|
@@ -450,7 +452,7 @@ class BMFace:
|
|
|
450
452
|
"""
|
|
451
453
|
|
|
452
454
|
is_valid: bool
|
|
453
|
-
""" True when this element is valid (
|
|
455
|
+
""" True when this element is valid (hasnt been removed).
|
|
454
456
|
|
|
455
457
|
:type: bool
|
|
456
458
|
"""
|
|
@@ -462,7 +464,7 @@ class BMFace:
|
|
|
462
464
|
"""
|
|
463
465
|
|
|
464
466
|
material_index: int
|
|
465
|
-
""" The
|
|
467
|
+
""" The faces material index.
|
|
466
468
|
|
|
467
469
|
:type: int
|
|
468
470
|
"""
|
|
@@ -560,7 +562,7 @@ class BMFace:
|
|
|
560
562
|
:rtype: mathutils.Vector
|
|
561
563
|
"""
|
|
562
564
|
|
|
563
|
-
def copy(self, verts: bool = True, edges: bool = True) -> typing_extensions.Self:
|
|
565
|
+
def copy(self, *, verts: bool = True, edges: bool = True) -> typing_extensions.Self:
|
|
564
566
|
"""Make a copy of this face.
|
|
565
567
|
|
|
566
568
|
:param verts: When set, the faces verts will be duplicated too.
|
|
@@ -694,6 +696,7 @@ class BMFaceSeq:
|
|
|
694
696
|
|
|
695
697
|
def sort(
|
|
696
698
|
self,
|
|
699
|
+
*,
|
|
697
700
|
key: None
|
|
698
701
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
699
702
|
| None = None,
|
|
@@ -794,12 +797,6 @@ class BMLayerAccessEdge:
|
|
|
794
797
|
:type: BMLayerCollection[mathutils.Vector]
|
|
795
798
|
"""
|
|
796
799
|
|
|
797
|
-
freestyle: BMLayerCollection
|
|
798
|
-
""" Accessor for Freestyle edge layer.
|
|
799
|
-
|
|
800
|
-
:type: BMLayerCollection
|
|
801
|
-
"""
|
|
802
|
-
|
|
803
800
|
int: BMLayerCollection[int]
|
|
804
801
|
""" Generic int custom-data layer.
|
|
805
802
|
|
|
@@ -845,12 +842,6 @@ class BMLayerAccessFace:
|
|
|
845
842
|
:type: BMLayerCollection[mathutils.Vector]
|
|
846
843
|
"""
|
|
847
844
|
|
|
848
|
-
freestyle: BMLayerCollection
|
|
849
|
-
""" Accessor for Freestyle face layer.
|
|
850
|
-
|
|
851
|
-
:type: BMLayerCollection
|
|
852
|
-
"""
|
|
853
|
-
|
|
854
845
|
int: BMLayerCollection[int]
|
|
855
846
|
""" Generic int custom-data layer.
|
|
856
847
|
|
|
@@ -960,7 +951,7 @@ class BMLayerAccessVert:
|
|
|
960
951
|
"""
|
|
961
952
|
|
|
962
953
|
shape: BMLayerCollection[mathutils.Vector]
|
|
963
|
-
""" Vertex
|
|
954
|
+
""" Vertex shape-key absolute location (as a 3D Vector).
|
|
964
955
|
|
|
965
956
|
:type: BMLayerCollection[mathutils.Vector]
|
|
966
957
|
"""
|
|
@@ -993,7 +984,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
993
984
|
self, key: str, default: _GenericType2 = None
|
|
994
985
|
) -> BMLayerItem[_GenericType1] | _GenericType2:
|
|
995
986
|
"""Returns the value of the layer matching the key or default
|
|
996
|
-
when not found (matches
|
|
987
|
+
when not found (matches Pythons dictionary function of the same name).
|
|
997
988
|
|
|
998
989
|
:param key: The key associated with the layer.
|
|
999
990
|
:type key: str
|
|
@@ -1006,7 +997,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
1006
997
|
|
|
1007
998
|
def items(self) -> list[str, BMLayerItem[_GenericType1]]:
|
|
1008
999
|
"""Return the identifiers of collection members
|
|
1009
|
-
(matching
|
|
1000
|
+
(matching Pythons dict.items() functionality).
|
|
1010
1001
|
|
|
1011
1002
|
:return: (key, value) pairs for each member of this collection.
|
|
1012
1003
|
:rtype: list[str, BMLayerItem[_GenericType1]]
|
|
@@ -1014,7 +1005,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
1014
1005
|
|
|
1015
1006
|
def keys(self) -> list[str]:
|
|
1016
1007
|
"""Return the identifiers of collection members
|
|
1017
|
-
(matching
|
|
1008
|
+
(matching Pythons dict.keys() functionality).
|
|
1018
1009
|
|
|
1019
1010
|
:return: the identifiers for each member of this collection.
|
|
1020
1011
|
:rtype: list[str]
|
|
@@ -1038,7 +1029,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
1038
1029
|
|
|
1039
1030
|
def values(self) -> list[BMLayerItem[_GenericType1]]:
|
|
1040
1031
|
"""Return the values of collection
|
|
1041
|
-
(matching
|
|
1032
|
+
(matching Pythons dict.values() functionality).
|
|
1042
1033
|
|
|
1043
1034
|
:return: the members of this collection.
|
|
1044
1035
|
:rtype: list[BMLayerItem[_GenericType1]]
|
|
@@ -1071,7 +1062,7 @@ class BMLoop:
|
|
|
1071
1062
|
"""This is normally accessed from `BMFace.loops` where each face loop represents a corner of the face."""
|
|
1072
1063
|
|
|
1073
1064
|
edge: BMEdge
|
|
1074
|
-
""" The
|
|
1065
|
+
""" The loops edge (between this loop and the next), (read-only).
|
|
1075
1066
|
|
|
1076
1067
|
:type: BMEdge
|
|
1077
1068
|
"""
|
|
@@ -1095,7 +1086,7 @@ class BMLoop:
|
|
|
1095
1086
|
"""
|
|
1096
1087
|
|
|
1097
1088
|
is_valid: bool
|
|
1098
|
-
""" True when this element is valid (
|
|
1089
|
+
""" True when this element is valid (hasnt been removed).
|
|
1099
1090
|
|
|
1100
1091
|
:type: bool
|
|
1101
1092
|
"""
|
|
@@ -1137,7 +1128,7 @@ class BMLoop:
|
|
|
1137
1128
|
"""
|
|
1138
1129
|
|
|
1139
1130
|
vert: BMVert
|
|
1140
|
-
""" The
|
|
1131
|
+
""" The loops vertex (read-only).
|
|
1141
1132
|
|
|
1142
1133
|
:type: BMVert
|
|
1143
1134
|
"""
|
|
@@ -1315,7 +1306,7 @@ class BMVert:
|
|
|
1315
1306
|
"""
|
|
1316
1307
|
|
|
1317
1308
|
is_valid: bool
|
|
1318
|
-
""" True when this element is valid (
|
|
1309
|
+
""" True when this element is valid (hasnt been removed).
|
|
1319
1310
|
|
|
1320
1311
|
:type: bool
|
|
1321
1312
|
"""
|
|
@@ -1363,9 +1354,9 @@ class BMVert:
|
|
|
1363
1354
|
"""
|
|
1364
1355
|
|
|
1365
1356
|
def calc_edge_angle(self, fallback: typing.Any | None = None) -> float:
|
|
1366
|
-
"""Return the angle between this
|
|
1357
|
+
"""Return the angle between this verts two connected edges.
|
|
1367
1358
|
|
|
1368
|
-
:param fallback: return this when the vert
|
|
1359
|
+
:param fallback: return this when the vert doesnt have 2 edges
|
|
1369
1360
|
(instead of raising a `ValueError`).
|
|
1370
1361
|
:type fallback: typing.Any | None
|
|
1371
1362
|
:return: Angle between edges in radians.
|
|
@@ -1494,6 +1485,7 @@ class BMVertSeq:
|
|
|
1494
1485
|
|
|
1495
1486
|
def sort(
|
|
1496
1487
|
self,
|
|
1488
|
+
*,
|
|
1497
1489
|
key: None
|
|
1498
1490
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
1499
1491
|
| None = None,
|
|
@@ -1558,7 +1550,7 @@ class BMesh:
|
|
|
1558
1550
|
"""
|
|
1559
1551
|
|
|
1560
1552
|
is_valid: bool
|
|
1561
|
-
""" True when this element is valid (
|
|
1553
|
+
""" True when this element is valid (hasnt been removed).
|
|
1562
1554
|
|
|
1563
1555
|
:type: bool
|
|
1564
1556
|
"""
|
|
@@ -1582,7 +1574,7 @@ class BMesh:
|
|
|
1582
1574
|
"""
|
|
1583
1575
|
|
|
1584
1576
|
select_mode: set
|
|
1585
|
-
""" The selection mode, values can be {
|
|
1577
|
+
""" The selection mode, values can be {VERT, EDGE, FACE}, cannot be assigned an empty set.
|
|
1586
1578
|
|
|
1587
1579
|
:type: set
|
|
1588
1580
|
"""
|
|
@@ -1600,7 +1592,7 @@ class BMesh:
|
|
|
1600
1592
|
:rtype: list[tuple[BMLoop, BMLoop, BMLoop]]
|
|
1601
1593
|
"""
|
|
1602
1594
|
|
|
1603
|
-
def calc_volume(self, signed: bool = False) -> float:
|
|
1595
|
+
def calc_volume(self, *, signed: bool = False) -> float:
|
|
1604
1596
|
"""Calculate mesh volume based on face normals.
|
|
1605
1597
|
|
|
1606
1598
|
:param signed: when signed is true, negative values may be returned.
|
|
@@ -1624,16 +1616,17 @@ class BMesh:
|
|
|
1624
1616
|
|
|
1625
1617
|
def from_mesh(
|
|
1626
1618
|
self,
|
|
1627
|
-
mesh:
|
|
1619
|
+
mesh: _bpy_types.Mesh,
|
|
1620
|
+
*,
|
|
1628
1621
|
face_normals: bool = True,
|
|
1629
1622
|
vertex_normals: bool = True,
|
|
1630
1623
|
use_shape_key: bool = False,
|
|
1631
1624
|
shape_key_index: int = 0,
|
|
1632
1625
|
) -> None:
|
|
1633
|
-
"""Initialize this bmesh from existing mesh
|
|
1626
|
+
"""Initialize this bmesh from existing mesh data-block.
|
|
1634
1627
|
|
|
1635
1628
|
:param mesh: The mesh data to load.
|
|
1636
|
-
:type mesh:
|
|
1629
|
+
:type mesh: _bpy_types.Mesh
|
|
1637
1630
|
:param face_normals:
|
|
1638
1631
|
:type face_normals: bool
|
|
1639
1632
|
:param vertex_normals:
|
|
@@ -1646,8 +1639,9 @@ class BMesh:
|
|
|
1646
1639
|
|
|
1647
1640
|
def from_object(
|
|
1648
1641
|
self,
|
|
1649
|
-
object:
|
|
1642
|
+
object: _bpy_types.Object,
|
|
1650
1643
|
depsgraph: bpy.types.Depsgraph,
|
|
1644
|
+
*,
|
|
1651
1645
|
cage: bool = False,
|
|
1652
1646
|
face_normals: bool = True,
|
|
1653
1647
|
vertex_normals: bool = True,
|
|
@@ -1655,7 +1649,7 @@ class BMesh:
|
|
|
1655
1649
|
"""Initialize this bmesh from existing object data-block (only meshes are currently supported).
|
|
1656
1650
|
|
|
1657
1651
|
:param object: The object data to load.
|
|
1658
|
-
:type object:
|
|
1652
|
+
:type object: _bpy_types.Object
|
|
1659
1653
|
:param depsgraph:
|
|
1660
1654
|
:type depsgraph: bpy.types.Depsgraph
|
|
1661
1655
|
:param cage: Get the mesh as a deformed cage.
|
|
@@ -1679,22 +1673,23 @@ class BMesh:
|
|
|
1679
1673
|
def select_flush_mode(self) -> None:
|
|
1680
1674
|
"""flush selection based on the current mode current `BMesh.select_mode`."""
|
|
1681
1675
|
|
|
1682
|
-
def to_mesh(self, mesh:
|
|
1683
|
-
"""Writes this BMesh data into an existing Mesh
|
|
1676
|
+
def to_mesh(self, mesh: _bpy_types.Mesh) -> None:
|
|
1677
|
+
"""Writes this BMesh data into an existing Mesh data-block.
|
|
1684
1678
|
|
|
1685
1679
|
:param mesh: The mesh data to write into.
|
|
1686
|
-
:type mesh:
|
|
1680
|
+
:type mesh: _bpy_types.Mesh
|
|
1687
1681
|
"""
|
|
1688
1682
|
|
|
1689
1683
|
def transform(
|
|
1690
1684
|
self,
|
|
1691
1685
|
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
1692
1686
|
| mathutils.Matrix,
|
|
1687
|
+
*,
|
|
1693
1688
|
filter=None,
|
|
1694
1689
|
) -> None:
|
|
1695
1690
|
"""Transform the mesh (optionally filtering flagged data only).
|
|
1696
1691
|
|
|
1697
1692
|
:param matrix: 4x4x transform matrix.
|
|
1698
1693
|
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
1699
|
-
:param filter: set of values in (
|
|
1694
|
+
:param filter: set of values in (SELECT, HIDE, SEAM, SMOOTH, TAG).
|
|
1700
1695
|
"""
|
bmesh/utils/__init__.pyi
CHANGED
bpy/__init__.pyi
CHANGED