fake-bpy-module 20250628__py3-none-any.whl → 20250830__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 +4 -3
- bl_ui/node_add_menu/__init__.pyi +6 -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 +34 -40
- 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 +69 -21
- bpy/ops/cycles/__init__.pyi +4 -2
- bpy/ops/dpaint/__init__.pyi +11 -3
- bpy/ops/ed/__init__.pyi +34 -10
- bpy/ops/export_scene/__init__.pyi +15 -15
- bpy/ops/extensions/__init__.pyi +45 -15
- bpy/ops/file/__init__.pyi +81 -30
- bpy/ops/fluid/__init__.pyi +39 -13
- bpy/ops/font/__init__.pyi +30 -10
- bpy/ops/geometry/__init__.pyi +9 -3
- bpy/ops/gizmogroup/__init__.pyi +3 -1
- bpy/ops/gpencil/__init__.pyi +20 -8
- bpy/ops/graph/__init__.pyi +67 -29
- bpy/ops/grease_pencil/__init__.pyi +178 -49
- bpy/ops/image/__init__.pyi +68 -58
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +3 -0
- bpy/ops/import_scene/__init__.pyi +15 -2
- bpy/ops/info/__init__.pyi +12 -4
- bpy/ops/lattice/__init__.pyi +9 -3
- bpy/ops/marker/__init__.pyi +8 -2
- bpy/ops/mask/__init__.pyi +53 -19
- bpy/ops/material/__init__.pyi +15 -3
- bpy/ops/mball/__init__.pyi +3 -1
- bpy/ops/mesh/__init__.pyi +116 -45
- bpy/ops/nla/__init__.pyi +67 -25
- bpy/ops/node/__init__.pyi +285 -119
- bpy/ops/object/__init__.pyi +278 -116
- bpy/ops/outliner/__init__.pyi +145 -49
- bpy/ops/paint/__init__.pyi +65 -37
- bpy/ops/paintcurve/__init__.pyi +16 -4
- bpy/ops/palette/__init__.pyi +11 -3
- bpy/ops/particle/__init__.pyi +66 -24
- bpy/ops/pointcloud/__init__.pyi +9 -3
- bpy/ops/pose/__init__.pyi +80 -28
- bpy/ops/poselib/__init__.pyi +40 -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 +106 -52
- 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 +54 -34
- bpy/types/__init__.pyi +55628 -39419
- 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-20250628.dist-info → fake_bpy_module-20250830.dist-info}/METADATA +1 -1
- fake_bpy_module-20250830.dist-info/RECORD +370 -0
- {fake_bpy_module-20250628.dist-info → fake_bpy_module-20250830.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 +6 -6
- 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 +17 -4
- 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-20250628.dist-info/RECORD +0 -367
- {bpy_types → _bpy_types}/py.typed +0 -0
- {fake_bpy_module-20250628.dist-info → fake_bpy_module-20250830.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
|
@@ -32,7 +32,7 @@ class BMDeformVert:
|
|
|
32
32
|
|
|
33
33
|
def get(self, key: int, default: typing.Any | None = None) -> None:
|
|
34
34
|
"""Returns the deform weight matching the key or default
|
|
35
|
-
when not found (matches
|
|
35
|
+
when not found (matches Pythons dictionary function of the same name).
|
|
36
36
|
|
|
37
37
|
:param key: The key associated with deform weight.
|
|
38
38
|
:type key: int
|
|
@@ -43,7 +43,7 @@ class BMDeformVert:
|
|
|
43
43
|
|
|
44
44
|
def items(self) -> list[tuple[int, float]]:
|
|
45
45
|
"""Return (group, weight) pairs for this vertex
|
|
46
|
-
(matching
|
|
46
|
+
(matching Pythons dict.items() functionality).
|
|
47
47
|
|
|
48
48
|
:return: (key, value) pairs for each deform weight of this vertex.
|
|
49
49
|
:rtype: list[tuple[int, float]]
|
|
@@ -51,7 +51,7 @@ class BMDeformVert:
|
|
|
51
51
|
|
|
52
52
|
def keys(self) -> list[int]:
|
|
53
53
|
"""Return the group indices used by this vertex
|
|
54
|
-
(matching
|
|
54
|
+
(matching Pythons dict.keys() functionality).
|
|
55
55
|
|
|
56
56
|
:return: the deform group this vertex uses
|
|
57
57
|
:rtype: list[int]
|
|
@@ -59,7 +59,7 @@ class BMDeformVert:
|
|
|
59
59
|
|
|
60
60
|
def values(self) -> list[float]:
|
|
61
61
|
"""Return the weights of the deform vertex
|
|
62
|
-
(matching
|
|
62
|
+
(matching Pythons dict.values() functionality).
|
|
63
63
|
|
|
64
64
|
:return: The weights that influence this vertex
|
|
65
65
|
:rtype: list[float]
|
|
@@ -105,7 +105,7 @@ class BMEdge:
|
|
|
105
105
|
"""
|
|
106
106
|
|
|
107
107
|
is_valid: bool
|
|
108
|
-
""" True when this element is valid (
|
|
108
|
+
""" True when this element is valid (hasnt been removed).
|
|
109
109
|
|
|
110
110
|
:type: bool
|
|
111
111
|
"""
|
|
@@ -161,7 +161,7 @@ class BMEdge:
|
|
|
161
161
|
def calc_face_angle(self, fallback: typing.Any | None = None) -> float:
|
|
162
162
|
"""
|
|
163
163
|
|
|
164
|
-
:param fallback: return this when the edge
|
|
164
|
+
:param fallback: return this when the edge doesnt have 2 faces
|
|
165
165
|
(instead of raising a `ValueError`).
|
|
166
166
|
:type fallback: typing.Any | None
|
|
167
167
|
:return: The angle between 2 connected faces in radians.
|
|
@@ -171,7 +171,7 @@ class BMEdge:
|
|
|
171
171
|
def calc_face_angle_signed(self, fallback: typing.Any | None = None) -> float:
|
|
172
172
|
"""
|
|
173
173
|
|
|
174
|
-
:param fallback: return this when the edge
|
|
174
|
+
:param fallback: return this when the edge doesnt have 2 faces
|
|
175
175
|
(instead of raising a `ValueError`).
|
|
176
176
|
:type fallback: typing.Any | None
|
|
177
177
|
:return: The angle between 2 connected faces in radians (negative for concave join).
|
|
@@ -304,6 +304,7 @@ class BMEdgeSeq:
|
|
|
304
304
|
|
|
305
305
|
def sort(
|
|
306
306
|
self,
|
|
307
|
+
*,
|
|
307
308
|
key: None
|
|
308
309
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
309
310
|
| None = None,
|
|
@@ -371,7 +372,7 @@ class BMEditSelSeq:
|
|
|
371
372
|
"""Empties the selection history."""
|
|
372
373
|
|
|
373
374
|
def discard(self, element) -> None:
|
|
374
|
-
"""Discard an element from the selection history.Like remove but
|
|
375
|
+
"""Discard an element from the selection history.Like remove but doesnt raise an error when the elements not in the selection list.
|
|
375
376
|
|
|
376
377
|
:param element:
|
|
377
378
|
"""
|
|
@@ -450,7 +451,7 @@ class BMFace:
|
|
|
450
451
|
"""
|
|
451
452
|
|
|
452
453
|
is_valid: bool
|
|
453
|
-
""" True when this element is valid (
|
|
454
|
+
""" True when this element is valid (hasnt been removed).
|
|
454
455
|
|
|
455
456
|
:type: bool
|
|
456
457
|
"""
|
|
@@ -462,7 +463,7 @@ class BMFace:
|
|
|
462
463
|
"""
|
|
463
464
|
|
|
464
465
|
material_index: int
|
|
465
|
-
""" The
|
|
466
|
+
""" The faces material index.
|
|
466
467
|
|
|
467
468
|
:type: int
|
|
468
469
|
"""
|
|
@@ -560,7 +561,7 @@ class BMFace:
|
|
|
560
561
|
:rtype: mathutils.Vector
|
|
561
562
|
"""
|
|
562
563
|
|
|
563
|
-
def copy(self, verts: bool = True, edges: bool = True) -> typing_extensions.Self:
|
|
564
|
+
def copy(self, *, verts: bool = True, edges: bool = True) -> typing_extensions.Self:
|
|
564
565
|
"""Make a copy of this face.
|
|
565
566
|
|
|
566
567
|
:param verts: When set, the faces verts will be duplicated too.
|
|
@@ -694,6 +695,7 @@ class BMFaceSeq:
|
|
|
694
695
|
|
|
695
696
|
def sort(
|
|
696
697
|
self,
|
|
698
|
+
*,
|
|
697
699
|
key: None
|
|
698
700
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
699
701
|
| None = None,
|
|
@@ -794,12 +796,6 @@ class BMLayerAccessEdge:
|
|
|
794
796
|
:type: BMLayerCollection[mathutils.Vector]
|
|
795
797
|
"""
|
|
796
798
|
|
|
797
|
-
freestyle: BMLayerCollection
|
|
798
|
-
""" Accessor for Freestyle edge layer.
|
|
799
|
-
|
|
800
|
-
:type: BMLayerCollection
|
|
801
|
-
"""
|
|
802
|
-
|
|
803
799
|
int: BMLayerCollection[int]
|
|
804
800
|
""" Generic int custom-data layer.
|
|
805
801
|
|
|
@@ -845,12 +841,6 @@ class BMLayerAccessFace:
|
|
|
845
841
|
:type: BMLayerCollection[mathutils.Vector]
|
|
846
842
|
"""
|
|
847
843
|
|
|
848
|
-
freestyle: BMLayerCollection
|
|
849
|
-
""" Accessor for Freestyle face layer.
|
|
850
|
-
|
|
851
|
-
:type: BMLayerCollection
|
|
852
|
-
"""
|
|
853
|
-
|
|
854
844
|
int: BMLayerCollection[int]
|
|
855
845
|
""" Generic int custom-data layer.
|
|
856
846
|
|
|
@@ -960,7 +950,7 @@ class BMLayerAccessVert:
|
|
|
960
950
|
"""
|
|
961
951
|
|
|
962
952
|
shape: BMLayerCollection[mathutils.Vector]
|
|
963
|
-
""" Vertex
|
|
953
|
+
""" Vertex shape-key absolute location (as a 3D Vector).
|
|
964
954
|
|
|
965
955
|
:type: BMLayerCollection[mathutils.Vector]
|
|
966
956
|
"""
|
|
@@ -993,7 +983,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
993
983
|
self, key: str, default: _GenericType2 = None
|
|
994
984
|
) -> BMLayerItem[_GenericType1] | _GenericType2:
|
|
995
985
|
"""Returns the value of the layer matching the key or default
|
|
996
|
-
when not found (matches
|
|
986
|
+
when not found (matches Pythons dictionary function of the same name).
|
|
997
987
|
|
|
998
988
|
:param key: The key associated with the layer.
|
|
999
989
|
:type key: str
|
|
@@ -1006,7 +996,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
1006
996
|
|
|
1007
997
|
def items(self) -> list[str, BMLayerItem[_GenericType1]]:
|
|
1008
998
|
"""Return the identifiers of collection members
|
|
1009
|
-
(matching
|
|
999
|
+
(matching Pythons dict.items() functionality).
|
|
1010
1000
|
|
|
1011
1001
|
:return: (key, value) pairs for each member of this collection.
|
|
1012
1002
|
:rtype: list[str, BMLayerItem[_GenericType1]]
|
|
@@ -1014,7 +1004,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
1014
1004
|
|
|
1015
1005
|
def keys(self) -> list[str]:
|
|
1016
1006
|
"""Return the identifiers of collection members
|
|
1017
|
-
(matching
|
|
1007
|
+
(matching Pythons dict.keys() functionality).
|
|
1018
1008
|
|
|
1019
1009
|
:return: the identifiers for each member of this collection.
|
|
1020
1010
|
:rtype: list[str]
|
|
@@ -1038,7 +1028,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
1038
1028
|
|
|
1039
1029
|
def values(self) -> list[BMLayerItem[_GenericType1]]:
|
|
1040
1030
|
"""Return the values of collection
|
|
1041
|
-
(matching
|
|
1031
|
+
(matching Pythons dict.values() functionality).
|
|
1042
1032
|
|
|
1043
1033
|
:return: the members of this collection.
|
|
1044
1034
|
:rtype: list[BMLayerItem[_GenericType1]]
|
|
@@ -1071,7 +1061,7 @@ class BMLoop:
|
|
|
1071
1061
|
"""This is normally accessed from `BMFace.loops` where each face loop represents a corner of the face."""
|
|
1072
1062
|
|
|
1073
1063
|
edge: BMEdge
|
|
1074
|
-
""" The
|
|
1064
|
+
""" The loops edge (between this loop and the next), (read-only).
|
|
1075
1065
|
|
|
1076
1066
|
:type: BMEdge
|
|
1077
1067
|
"""
|
|
@@ -1095,7 +1085,7 @@ class BMLoop:
|
|
|
1095
1085
|
"""
|
|
1096
1086
|
|
|
1097
1087
|
is_valid: bool
|
|
1098
|
-
""" True when this element is valid (
|
|
1088
|
+
""" True when this element is valid (hasnt been removed).
|
|
1099
1089
|
|
|
1100
1090
|
:type: bool
|
|
1101
1091
|
"""
|
|
@@ -1137,7 +1127,7 @@ class BMLoop:
|
|
|
1137
1127
|
"""
|
|
1138
1128
|
|
|
1139
1129
|
vert: BMVert
|
|
1140
|
-
""" The
|
|
1130
|
+
""" The loops vertex (read-only).
|
|
1141
1131
|
|
|
1142
1132
|
:type: BMVert
|
|
1143
1133
|
"""
|
|
@@ -1315,7 +1305,7 @@ class BMVert:
|
|
|
1315
1305
|
"""
|
|
1316
1306
|
|
|
1317
1307
|
is_valid: bool
|
|
1318
|
-
""" True when this element is valid (
|
|
1308
|
+
""" True when this element is valid (hasnt been removed).
|
|
1319
1309
|
|
|
1320
1310
|
:type: bool
|
|
1321
1311
|
"""
|
|
@@ -1363,9 +1353,9 @@ class BMVert:
|
|
|
1363
1353
|
"""
|
|
1364
1354
|
|
|
1365
1355
|
def calc_edge_angle(self, fallback: typing.Any | None = None) -> float:
|
|
1366
|
-
"""Return the angle between this
|
|
1356
|
+
"""Return the angle between this verts two connected edges.
|
|
1367
1357
|
|
|
1368
|
-
:param fallback: return this when the vert
|
|
1358
|
+
:param fallback: return this when the vert doesnt have 2 edges
|
|
1369
1359
|
(instead of raising a `ValueError`).
|
|
1370
1360
|
:type fallback: typing.Any | None
|
|
1371
1361
|
:return: Angle between edges in radians.
|
|
@@ -1494,6 +1484,7 @@ class BMVertSeq:
|
|
|
1494
1484
|
|
|
1495
1485
|
def sort(
|
|
1496
1486
|
self,
|
|
1487
|
+
*,
|
|
1497
1488
|
key: None
|
|
1498
1489
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
1499
1490
|
| None = None,
|
|
@@ -1558,7 +1549,7 @@ class BMesh:
|
|
|
1558
1549
|
"""
|
|
1559
1550
|
|
|
1560
1551
|
is_valid: bool
|
|
1561
|
-
""" True when this element is valid (
|
|
1552
|
+
""" True when this element is valid (hasnt been removed).
|
|
1562
1553
|
|
|
1563
1554
|
:type: bool
|
|
1564
1555
|
"""
|
|
@@ -1582,7 +1573,7 @@ class BMesh:
|
|
|
1582
1573
|
"""
|
|
1583
1574
|
|
|
1584
1575
|
select_mode: set
|
|
1585
|
-
""" The selection mode, values can be {
|
|
1576
|
+
""" The selection mode, values can be {VERT, EDGE, FACE}, cannot be assigned an empty set.
|
|
1586
1577
|
|
|
1587
1578
|
:type: set
|
|
1588
1579
|
"""
|
|
@@ -1600,7 +1591,7 @@ class BMesh:
|
|
|
1600
1591
|
:rtype: list[tuple[BMLoop, BMLoop, BMLoop]]
|
|
1601
1592
|
"""
|
|
1602
1593
|
|
|
1603
|
-
def calc_volume(self, signed: bool = False) -> float:
|
|
1594
|
+
def calc_volume(self, *, signed: bool = False) -> float:
|
|
1604
1595
|
"""Calculate mesh volume based on face normals.
|
|
1605
1596
|
|
|
1606
1597
|
:param signed: when signed is true, negative values may be returned.
|
|
@@ -1625,12 +1616,13 @@ class BMesh:
|
|
|
1625
1616
|
def from_mesh(
|
|
1626
1617
|
self,
|
|
1627
1618
|
mesh: bpy.types.Mesh,
|
|
1619
|
+
*,
|
|
1628
1620
|
face_normals: bool = True,
|
|
1629
1621
|
vertex_normals: bool = True,
|
|
1630
1622
|
use_shape_key: bool = False,
|
|
1631
1623
|
shape_key_index: int = 0,
|
|
1632
1624
|
) -> None:
|
|
1633
|
-
"""Initialize this bmesh from existing mesh
|
|
1625
|
+
"""Initialize this bmesh from existing mesh data-block.
|
|
1634
1626
|
|
|
1635
1627
|
:param mesh: The mesh data to load.
|
|
1636
1628
|
:type mesh: bpy.types.Mesh
|
|
@@ -1648,6 +1640,7 @@ class BMesh:
|
|
|
1648
1640
|
self,
|
|
1649
1641
|
object: bpy.types.Object,
|
|
1650
1642
|
depsgraph: bpy.types.Depsgraph,
|
|
1643
|
+
*,
|
|
1651
1644
|
cage: bool = False,
|
|
1652
1645
|
face_normals: bool = True,
|
|
1653
1646
|
vertex_normals: bool = True,
|
|
@@ -1680,7 +1673,7 @@ class BMesh:
|
|
|
1680
1673
|
"""flush selection based on the current mode current `BMesh.select_mode`."""
|
|
1681
1674
|
|
|
1682
1675
|
def to_mesh(self, mesh: bpy.types.Mesh) -> None:
|
|
1683
|
-
"""Writes this BMesh data into an existing Mesh
|
|
1676
|
+
"""Writes this BMesh data into an existing Mesh data-block.
|
|
1684
1677
|
|
|
1685
1678
|
:param mesh: The mesh data to write into.
|
|
1686
1679
|
:type mesh: bpy.types.Mesh
|
|
@@ -1690,11 +1683,12 @@ class BMesh:
|
|
|
1690
1683
|
self,
|
|
1691
1684
|
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
1692
1685
|
| mathutils.Matrix,
|
|
1686
|
+
*,
|
|
1693
1687
|
filter=None,
|
|
1694
1688
|
) -> None:
|
|
1695
1689
|
"""Transform the mesh (optionally filtering flagged data only).
|
|
1696
1690
|
|
|
1697
1691
|
:param matrix: 4x4x transform matrix.
|
|
1698
1692
|
:type matrix: collections.abc.Sequence[collections.abc.Sequence[float]] | mathutils.Matrix
|
|
1699
|
-
:param filter: set of values in (
|
|
1693
|
+
:param filter: set of values in (SELECT, HIDE, SEAM, SMOOTH, TAG).
|
|
1700
1694
|
"""
|
bmesh/utils/__init__.pyi
CHANGED
bpy/__init__.pyi
CHANGED