fake-bpy-module 20240915__py3-none-any.whl → 20240917__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 +2 -2
- _bpy_internal/addons/__init__.pyi +2 -2
- _bpy_internal/addons/cli/__init__.pyi +2 -2
- _bpy_internal/extensions/__init__.pyi +2 -2
- _bpy_internal/extensions/junction_module/__init__.pyi +2 -8
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +2 -6
- _bpy_internal/extensions/wheel_manager/__init__.pyi +2 -6
- _bpy_internal/freedesktop/__init__.pyi +2 -2
- _bpy_internal/grease_pencil/__init__.pyi +2 -2
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -16
- _bpy_internal/system_info/__init__.pyi +2 -2
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +2 -2
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +2 -2
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
- addon_utils/__init__.pyi +2 -12
- animsys_refactor/__init__.pyi +2 -3
- aud/__init__.pyi +2 -71
- bgl/__init__.pyi +2 -526
- bl_app_override/__init__.pyi +2 -2
- bl_app_override/helpers/__init__.pyi +2 -2
- bl_app_template_utils/__init__.pyi +2 -4
- bl_console_utils/__init__.pyi +2 -2
- bl_console_utils/autocomplete/__init__.pyi +2 -2
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +2 -12
- bl_console_utils/autocomplete/complete_import/__init__.pyi +2 -8
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -12
- bl_console_utils/autocomplete/intellisense/__init__.pyi +2 -6
- bl_i18n_utils/__init__.pyi +2 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +2 -6
- bl_i18n_utils/merge_po/__init__.pyi +2 -2
- bl_i18n_utils/settings/__init__.pyi +2 -6
- bl_i18n_utils/utils/__init__.pyi +2 -45
- bl_i18n_utils/utils_cli/__init__.pyi +2 -2
- bl_i18n_utils/utils_languages_menu/__init__.pyi +2 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +2 -6
- bl_keymap_utils/__init__.pyi +2 -2
- bl_keymap_utils/io/__init__.pyi +2 -4
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -4
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +2 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -4
- bl_keymap_utils/versioning/__init__.pyi +2 -2
- bl_math/__init__.pyi +2 -8
- bl_operators/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +2 -8
- bl_operators/anim/__init__.pyi +2 -48
- bl_operators/assets/__init__.pyi +2 -17
- bl_operators/bmesh/__init__.pyi +2 -2
- bl_operators/bmesh/find_adjacent/__init__.pyi +2 -6
- bl_operators/bone_selection_sets/__init__.pyi +2 -46
- bl_operators/clip/__init__.pyi +2 -43
- bl_operators/connect_to_output/__init__.pyi +2 -18
- bl_operators/console/__init__.pyi +2 -22
- bl_operators/constraint/__init__.pyi +2 -18
- bl_operators/file/__init__.pyi +2 -14
- bl_operators/freestyle/__init__.pyi +2 -19
- bl_operators/geometry_nodes/__init__.pyi +2 -21
- bl_operators/image/__init__.pyi +2 -19
- bl_operators/image_as_planes/__init__.pyi +2 -43
- bl_operators/mesh/__init__.pyi +2 -15
- bl_operators/node/__init__.pyi +2 -41
- bl_operators/node_editor/__init__.pyi +2 -2
- bl_operators/node_editor/node_functions/__init__.pyi +2 -3
- bl_operators/object/__init__.pyi +2 -63
- bl_operators/object_align/__init__.pyi +2 -6
- bl_operators/object_quick_effects/__init__.pyi +2 -18
- bl_operators/object_randomize_transform/__init__.pyi +2 -6
- bl_operators/presets/__init__.pyi +2 -70
- bl_operators/rigidbody/__init__.pyi +2 -15
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -5
- bl_operators/sequencer/__init__.pyi +2 -36
- bl_operators/spreadsheet/__init__.pyi +2 -8
- bl_operators/userpref/__init__.pyi +2 -93
- bl_operators/uvcalc_follow_active/__init__.pyi +2 -7
- bl_operators/uvcalc_lightmap/__init__.pyi +2 -11
- bl_operators/uvcalc_transform/__init__.pyi +2 -19
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -6
- bl_operators/view3d/__init__.pyi +2 -37
- bl_operators/wm/__init__.pyi +2 -168
- bl_operators/world/__init__.pyi +2 -6
- bl_previews_utils/__init__.pyi +2 -2
- bl_previews_utils/bl_previews_render/__init__.pyi +2 -2
- bl_rna_utils/__init__.pyi +2 -2
- bl_rna_utils/data_path/__init__.pyi +2 -6
- bl_text_utils/__init__.pyi +2 -2
- bl_text_utils/external_editor/__init__.pyi +2 -2
- bl_ui/__init__.pyi +2 -11
- bl_ui/anim/__init__.pyi +2 -5
- bl_ui/asset_shelf/__init__.pyi +2 -6
- bl_ui/generic_ui_list/__init__.pyi +2 -16
- bl_ui/node_add_menu/__init__.pyi +2 -11
- bl_ui/node_add_menu_compositor/__init__.pyi +2 -53
- bl_ui/node_add_menu_geometry/__init__.pyi +2 -152
- bl_ui/node_add_menu_shader/__init__.pyi +2 -31
- bl_ui/node_add_menu_texture/__init__.pyi +2 -29
- bl_ui/properties_animviz/__init__.pyi +2 -4
- bl_ui/properties_collection/__init__.pyi +2 -20
- bl_ui/properties_constraint/__init__.pyi +2 -288
- bl_ui/properties_data_armature/__init__.pyi +2 -60
- bl_ui/properties_data_bone/__init__.pyi +2 -42
- bl_ui/properties_data_camera/__init__.pyi +2 -51
- bl_ui/properties_data_curve/__init__.pyi +2 -58
- bl_ui/properties_data_curves/__init__.pyi +2 -24
- bl_ui/properties_data_empty/__init__.pyi +2 -10
- bl_ui/properties_data_gpencil/__init__.pyi +2 -57
- bl_ui/properties_data_grease_pencil/__init__.pyi +2 -49
- bl_ui/properties_data_lattice/__init__.pyi +2 -14
- bl_ui/properties_data_light/__init__.pyi +2 -50
- bl_ui/properties_data_lightprobe/__init__.pyi +2 -48
- bl_ui/properties_data_mesh/__init__.pyi +2 -69
- bl_ui/properties_data_metaball/__init__.pyi +2 -20
- bl_ui/properties_data_modifier/__init__.pyi +2 -36
- bl_ui/properties_data_pointcloud/__init__.pyi +2 -19
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -5
- bl_ui/properties_data_speaker/__init__.pyi +2 -19
- bl_ui/properties_data_volume/__init__.pyi +2 -29
- bl_ui/properties_freestyle/__init__.pyi +2 -98
- bl_ui/properties_grease_pencil_common/__init__.pyi +2 -74
- bl_ui/properties_mask_common/__init__.pyi +2 -37
- bl_ui/properties_material/__init__.pyi +2 -59
- bl_ui/properties_material_gpencil/__init__.pyi +2 -36
- bl_ui/properties_object/__init__.pyi +2 -52
- bl_ui/properties_output/__init__.pyi +2 -65
- bl_ui/properties_paint_common/__init__.pyi +2 -41
- bl_ui/properties_particle/__init__.pyi +2 -205
- bl_ui/properties_physics_cloth/__init__.pyi +2 -49
- bl_ui/properties_physics_common/__init__.pyi +2 -6
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2 -103
- bl_ui/properties_physics_field/__init__.pyi +2 -44
- bl_ui/properties_physics_fluid/__init__.pyi +2 -134
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -7
- bl_ui/properties_physics_rigidbody/__init__.pyi +2 -35
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2 -57
- bl_ui/properties_physics_softbody/__init__.pyi +2 -52
- bl_ui/properties_render/__init__.pyi +2 -220
- bl_ui/properties_scene/__init__.pyi +2 -55
- bl_ui/properties_texture/__init__.pyi +2 -93
- bl_ui/properties_view_layer/__init__.pyi +2 -47
- bl_ui/properties_workspace/__init__.pyi +2 -15
- bl_ui/properties_world/__init__.pyi +2 -42
- bl_ui/space_clip/__init__.pyi +2 -224
- bl_ui/space_console/__init__.pyi +2 -20
- bl_ui/space_dopesheet/__init__.pyi +2 -96
- bl_ui/space_filebrowser/__init__.pyi +2 -99
- bl_ui/space_graph/__init__.pyi +2 -62
- bl_ui/space_image/__init__.pyi +2 -211
- bl_ui/space_info/__init__.pyi +2 -20
- bl_ui/space_nla/__init__.pyi +2 -54
- bl_ui/space_node/__init__.pyi +2 -100
- bl_ui/space_outliner/__init__.pyi +2 -48
- bl_ui/space_properties/__init__.pyi +2 -14
- bl_ui/space_sequencer/__init__.pyi +2 -280
- bl_ui/space_spreadsheet/__init__.pyi +2 -11
- bl_ui/space_statusbar/__init__.pyi +2 -5
- bl_ui/space_text/__init__.pyi +2 -51
- bl_ui/space_time/__init__.pyi +2 -27
- bl_ui/space_toolsystem_common/__init__.pyi +3 -13
- bl_ui/space_toolsystem_toolbar/__init__.pyi +7 -126
- bl_ui/space_topbar/__init__.pyi +37 -86
- bl_ui/space_userpref/__init__.pyi +2 -313
- bl_ui/space_view3d/__init__.pyi +30 -881
- bl_ui/space_view3d_toolbar/__init__.pyi +2 -344
- bl_ui/utils/__init__.pyi +2 -5
- bl_ui_utils/__init__.pyi +2 -2
- bl_ui_utils/layout/__init__.pyi +2 -4
- blend_render_info/__init__.pyi +2 -4
- blf/__init__.pyi +2 -32
- bmesh/__init__.pyi +2 -8
- bmesh/geometry/__init__.pyi +2 -4
- bmesh/ops/__init__.pyi +2 -162
- bmesh/types/__init__.pyi +19 -133
- bmesh/utils/__init__.pyi +2 -28
- bpy/__init__.pyi +2 -2
- bpy/app/__init__.pyi +2 -6
- bpy/app/handlers/__init__.pyi +2 -2
- bpy/app/icons/__init__.pyi +2 -8
- bpy/app/timers/__init__.pyi +2 -8
- bpy/app/translations/__init__.pyi +2 -20
- bpy/msgbus/__init__.pyi +2 -8
- bpy/ops/__init__.pyi +2 -2
- bpy/ops/action/__init__.pyi +15 -110
- bpy/ops/anim/__init__.pyi +2 -118
- bpy/ops/armature/__init__.pyi +2 -98
- bpy/ops/asset/__init__.pyi +2 -34
- bpy/ops/boid/__init__.pyi +5 -30
- bpy/ops/brush/__init__.pyi +5 -31
- bpy/ops/buttons/__init__.pyi +2 -14
- bpy/ops/cachefile/__init__.pyi +2 -12
- bpy/ops/camera/__init__.pyi +2 -6
- bpy/ops/clip/__init__.pyi +5 -188
- bpy/ops/cloth/__init__.pyi +2 -4
- bpy/ops/collection/__init__.pyi +2 -20
- bpy/ops/console/__init__.pyi +2 -44
- bpy/ops/constraint/__init__.pyi +2 -38
- bpy/ops/curve/__init__.pyi +7 -143
- bpy/ops/curves/__init__.pyi +11 -64
- bpy/ops/cycles/__init__.pyi +2 -8
- bpy/ops/dpaint/__init__.pyi +5 -14
- bpy/ops/ed/__init__.pyi +2 -26
- bpy/ops/export_anim/__init__.pyi +2 -4
- bpy/ops/export_scene/__init__.pyi +2 -6
- bpy/ops/extensions/__init__.pyi +2 -70
- bpy/ops/file/__init__.pyi +2 -82
- bpy/ops/fluid/__init__.pyi +2 -30
- bpy/ops/font/__init__.pyi +2 -48
- bpy/ops/geometry/__init__.pyi +21 -75
- bpy/ops/gizmogroup/__init__.pyi +2 -6
- bpy/ops/gpencil/__init__.pyi +2 -286
- bpy/ops/graph/__init__.pyi +19 -213
- bpy/ops/grease_pencil/__init__.pyi +9 -196
- bpy/ops/image/__init__.pyi +11 -111
- bpy/ops/import_anim/__init__.pyi +2 -4
- bpy/ops/import_curve/__init__.pyi +2 -4
- bpy/ops/import_scene/__init__.pyi +2 -6
- bpy/ops/info/__init__.pyi +2 -16
- bpy/ops/lattice/__init__.pyi +5 -20
- bpy/ops/marker/__init__.pyi +2 -24
- bpy/ops/mask/__init__.pyi +2 -80
- bpy/ops/material/__init__.pyi +2 -8
- bpy/ops/mball/__init__.pyi +2 -18
- bpy/ops/mesh/__init__.pyi +45 -467
- bpy/ops/nla/__init__.pyi +5 -92
- bpy/ops/node/__init__.pyi +5 -215
- bpy/ops/object/__init__.pyi +73 -870
- bpy/ops/outliner/__init__.pyi +7 -200
- bpy/ops/paint/__init__.pyi +9 -116
- bpy/ops/paintcurve/__init__.pyi +2 -18
- bpy/ops/palette/__init__.pyi +2 -16
- bpy/ops/particle/__init__.pyi +2 -74
- bpy/ops/pose/__init__.pyi +15 -180
- bpy/ops/poselib/__init__.pyi +2 -20
- bpy/ops/preferences/__init__.pyi +2 -72
- bpy/ops/ptcache/__init__.pyi +2 -16
- bpy/ops/render/__init__.pyi +2 -28
- bpy/ops/rigidbody/__init__.pyi +11 -56
- bpy/ops/scene/__init__.pyi +11 -131
- bpy/ops/screen/__init__.pyi +9 -142
- bpy/ops/script/__init__.pyi +2 -8
- bpy/ops/sculpt/__init__.pyi +2 -74
- bpy/ops/sculpt_curves/__init__.pyi +2 -10
- bpy/ops/sequencer/__init__.pyi +5 -194
- bpy/ops/sound/__init__.pyi +5 -21
- bpy/ops/spreadsheet/__init__.pyi +2 -10
- bpy/ops/surface/__init__.pyi +2 -14
- bpy/ops/text/__init__.pyi +2 -88
- bpy/ops/text_editor/__init__.pyi +2 -4
- bpy/ops/texture/__init__.pyi +2 -10
- bpy/ops/transform/__init__.pyi +75 -400
- bpy/ops/ui/__init__.pyi +2 -68
- bpy/ops/uilist/__init__.pyi +2 -8
- bpy/ops/uv/__init__.pyi +5 -102
- bpy/ops/view2d/__init__.pyi +2 -30
- bpy/ops/view3d/__init__.pyi +2 -136
- bpy/ops/wm/__init__.pyi +17 -259
- bpy/ops/workspace/__init__.pyi +2 -16
- bpy/ops/world/__init__.pyi +2 -6
- bpy/path/__init__.pyi +2 -28
- bpy/props/__init__.pyi +2 -24
- bpy/types/__init__.pyi +1230 -31631
- bpy/typing/__init__.pyi +2490 -0
- bpy/utils/__init__.pyi +4 -74
- bpy/utils/previews/__init__.pyi +2 -10
- bpy/utils/units/__init__.pyi +2 -6
- bpy_extras/__init__.pyi +2 -2
- bpy_extras/anim_utils/__init__.pyi +2 -17
- bpy_extras/asset_utils/__init__.pyi +2 -5
- bpy_extras/bmesh_utils/__init__.pyi +2 -4
- bpy_extras/id_map_utils/__init__.pyi +2 -8
- bpy_extras/image_utils/__init__.pyi +2 -4
- bpy_extras/io_utils/__init__.pyi +2 -23
- bpy_extras/keyconfig_utils/__init__.pyi +2 -6
- bpy_extras/mesh_utils/__init__.pyi +2 -16
- bpy_extras/node_shader_utils/__init__.pyi +2 -23
- bpy_extras/node_utils/__init__.pyi +2 -6
- bpy_extras/object_utils/__init__.pyi +2 -15
- bpy_extras/view3d_utils/__init__.pyi +2 -10
- bpy_extras/wm_utils/__init__.pyi +2 -2
- bpy_extras/wm_utils/progress_report/__init__.pyi +2 -10
- bpy_restrict_state/__init__.pyi +2 -2
- bpy_types/__init__.pyi +2 -5
- console_python/__init__.pyi +2 -4
- console_shell/__init__.pyi +2 -2
- {fake_bpy_module-20240915.dist-info → fake_bpy_module-20240917.dist-info}/METADATA +1 -1
- fake_bpy_module-20240917.dist-info/RECORD +365 -0
- {fake_bpy_module-20240915.dist-info → fake_bpy_module-20240917.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +2 -2
- freestyle/chainingiterators/__init__.pyi +2 -25
- freestyle/functions/__init__.pyi +2 -109
- freestyle/predicates/__init__.pyi +2 -30
- freestyle/shaders/__init__.pyi +2 -77
- freestyle/types/__init__.pyi +2 -192
- freestyle/utils/ContextFunctions/__init__.pyi +2 -20
- freestyle/utils/__init__.pyi +4 -50
- gpu/__init__.pyi +2 -2
- gpu/capabilities/__init__.pyi +2 -40
- gpu/matrix/__init__.pyi +2 -36
- gpu/platform/__init__.pyi +2 -12
- gpu/select/__init__.pyi +2 -4
- gpu/shader/__init__.pyi +2 -8
- gpu/state/__init__.pyi +5 -45
- gpu/texture/__init__.pyi +2 -4
- gpu/types/__init__.pyi +2 -54
- gpu_extras/__init__.pyi +2 -2
- gpu_extras/batch/__init__.pyi +2 -4
- gpu_extras/presets/__init__.pyi +2 -6
- graphviz_export/__init__.pyi +2 -2
- idprop/__init__.pyi +2 -2
- idprop/types/__init__.pyi +2 -11
- imbuf/__init__.pyi +2 -8
- imbuf/types/__init__.pyi +2 -6
- keyingsets_builtins/__init__.pyi +2 -70
- keyingsets_utils/__init__.pyi +2 -2
- mathutils/__init__.pyi +38 -228
- mathutils/bvhtree/__init__.pyi +2 -10
- mathutils/geometry/__init__.pyi +2 -54
- mathutils/interpolate/__init__.pyi +2 -4
- mathutils/kdtree/__init__.pyi +2 -8
- mathutils/noise/__init__.pyi +2 -36
- nodeitems_builtins/__init__.pyi +2 -4
- nodeitems_utils/__init__.pyi +2 -4
- rna_info/__init__.pyi +2 -7
- rna_keymap_ui/__init__.pyi +2 -2
- rna_prop_ui/__init__.pyi +2 -6
- rna_xml/__init__.pyi +2 -2
- fake_bpy_module-20240915.dist-info/RECORD +0 -364
- {fake_bpy_module-20240915.dist-info → fake_bpy_module-20240917.dist-info}/top_level.txt +0 -0
bmesh/types/__init__.pyi
CHANGED
|
@@ -25,13 +25,12 @@ import typing_extensions
|
|
|
25
25
|
import bpy.types
|
|
26
26
|
import mathutils
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
29
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
30
30
|
|
|
31
31
|
class BMDeformVert:
|
|
32
32
|
def clear(self):
|
|
33
33
|
"""Clears all weights."""
|
|
34
|
-
...
|
|
35
34
|
|
|
36
35
|
def get(self, key: int, default=None):
|
|
37
36
|
"""Returns the deform weight matching the key or default
|
|
@@ -42,7 +41,6 @@ class BMDeformVert:
|
|
|
42
41
|
:param default: Optional argument for the value to return if
|
|
43
42
|
key is not found.
|
|
44
43
|
"""
|
|
45
|
-
...
|
|
46
44
|
|
|
47
45
|
def items(self):
|
|
48
46
|
"""Return (group, weight) pairs for this vertex
|
|
@@ -50,7 +48,6 @@ class BMDeformVert:
|
|
|
50
48
|
|
|
51
49
|
:return: (key, value) pairs for each deform weight of this vertex.
|
|
52
50
|
"""
|
|
53
|
-
...
|
|
54
51
|
|
|
55
52
|
def keys(self) -> list[int]:
|
|
56
53
|
"""Return the group indices used by this vertex
|
|
@@ -59,7 +56,6 @@ class BMDeformVert:
|
|
|
59
56
|
:return: the deform group this vertex uses
|
|
60
57
|
:rtype: list[int]
|
|
61
58
|
"""
|
|
62
|
-
...
|
|
63
59
|
|
|
64
60
|
def values(self) -> list[float]:
|
|
65
61
|
"""Return the weights of the deform vertex
|
|
@@ -68,7 +64,6 @@ class BMDeformVert:
|
|
|
68
64
|
:return: The weights that influence this vertex
|
|
69
65
|
:rtype: list[float]
|
|
70
66
|
"""
|
|
71
|
-
...
|
|
72
67
|
|
|
73
68
|
class BMEdge:
|
|
74
69
|
"""The BMesh edge connecting 2 verts"""
|
|
@@ -172,7 +167,6 @@ class BMEdge:
|
|
|
172
167
|
:return: The angle between 2 connected faces in radians.
|
|
173
168
|
:rtype: float
|
|
174
169
|
"""
|
|
175
|
-
...
|
|
176
170
|
|
|
177
171
|
def calc_face_angle_signed(self, fallback: typing.Any = None) -> float:
|
|
178
172
|
"""
|
|
@@ -183,7 +177,6 @@ class BMEdge:
|
|
|
183
177
|
:return: The angle between 2 connected faces in radians (negative for concave join).
|
|
184
178
|
:rtype: float
|
|
185
179
|
"""
|
|
186
|
-
...
|
|
187
180
|
|
|
188
181
|
def calc_length(self) -> float:
|
|
189
182
|
"""
|
|
@@ -191,7 +184,6 @@ class BMEdge:
|
|
|
191
184
|
:return: The length between both verts.
|
|
192
185
|
:rtype: float
|
|
193
186
|
"""
|
|
194
|
-
...
|
|
195
187
|
|
|
196
188
|
def calc_tangent(self, loop: BMLoop) -> mathutils.Vector:
|
|
197
189
|
"""Return the tangent at this edge relative to a face (pointing inward into the face).
|
|
@@ -202,7 +194,6 @@ class BMEdge:
|
|
|
202
194
|
:return: a normalized vector.
|
|
203
195
|
:rtype: mathutils.Vector
|
|
204
196
|
"""
|
|
205
|
-
...
|
|
206
197
|
|
|
207
198
|
def copy_from(self, other: typing_extensions.Self):
|
|
208
199
|
"""Copy values from another element of matching type.
|
|
@@ -210,7 +201,6 @@ class BMEdge:
|
|
|
210
201
|
:param other:
|
|
211
202
|
:type other: typing_extensions.Self
|
|
212
203
|
"""
|
|
213
|
-
...
|
|
214
204
|
|
|
215
205
|
def hide_set(self, hide: bool):
|
|
216
206
|
"""Set the hide state.
|
|
@@ -219,11 +209,9 @@ class BMEdge:
|
|
|
219
209
|
:param hide: Hidden or visible.
|
|
220
210
|
:type hide: bool
|
|
221
211
|
"""
|
|
222
|
-
...
|
|
223
212
|
|
|
224
213
|
def normal_update(self):
|
|
225
214
|
"""Update normals of all connected faces and the edge verts."""
|
|
226
|
-
...
|
|
227
215
|
|
|
228
216
|
def other_vert(self, vert: BMVert) -> BMVert:
|
|
229
217
|
"""Return the other vertex on this edge or None if the vertex is not used by this edge.
|
|
@@ -233,7 +221,6 @@ class BMEdge:
|
|
|
233
221
|
:return: The edges other vert.
|
|
234
222
|
:rtype: BMVert
|
|
235
223
|
"""
|
|
236
|
-
...
|
|
237
224
|
|
|
238
225
|
def select_set(self, select: bool):
|
|
239
226
|
"""Set the selection.
|
|
@@ -242,7 +229,6 @@ class BMEdge:
|
|
|
242
229
|
:param select: Select or de-select.
|
|
243
230
|
:type select: bool
|
|
244
231
|
"""
|
|
245
|
-
...
|
|
246
232
|
|
|
247
233
|
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
248
234
|
"""
|
|
@@ -252,7 +238,6 @@ class BMEdge:
|
|
|
252
238
|
:return:
|
|
253
239
|
:rtype: typing.Any
|
|
254
240
|
"""
|
|
255
|
-
...
|
|
256
241
|
|
|
257
242
|
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
258
243
|
"""
|
|
@@ -262,7 +247,6 @@ class BMEdge:
|
|
|
262
247
|
:param value:
|
|
263
248
|
:type value: typing.Any
|
|
264
249
|
"""
|
|
265
|
-
...
|
|
266
250
|
|
|
267
251
|
def __delitem__(self, key: BMLayerItem):
|
|
268
252
|
"""
|
|
@@ -270,7 +254,6 @@ class BMEdge:
|
|
|
270
254
|
:param key:
|
|
271
255
|
:type key: BMLayerItem
|
|
272
256
|
"""
|
|
273
|
-
...
|
|
274
257
|
|
|
275
258
|
class BMEdgeSeq:
|
|
276
259
|
layers: BMLayerAccessEdge
|
|
@@ -281,7 +264,6 @@ class BMEdgeSeq:
|
|
|
281
264
|
|
|
282
265
|
def ensure_lookup_table(self):
|
|
283
266
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
284
|
-
...
|
|
285
267
|
|
|
286
268
|
def get(self, verts: list[BMVert], fallback=None) -> BMEdge:
|
|
287
269
|
"""Return an edge which uses the verts passed.
|
|
@@ -292,11 +274,9 @@ class BMEdgeSeq:
|
|
|
292
274
|
:return: The edge found or None
|
|
293
275
|
:rtype: BMEdge
|
|
294
276
|
"""
|
|
295
|
-
...
|
|
296
277
|
|
|
297
278
|
def index_update(self):
|
|
298
279
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
299
|
-
...
|
|
300
280
|
|
|
301
281
|
def new(
|
|
302
282
|
self, verts: tuple[BMVert, BMVert], example: BMEdge | None = None
|
|
@@ -310,7 +290,6 @@ class BMEdgeSeq:
|
|
|
310
290
|
:return: The newly created edge.
|
|
311
291
|
:rtype: BMEdge
|
|
312
292
|
"""
|
|
313
|
-
...
|
|
314
293
|
|
|
315
294
|
def remove(self, edge: BMEdge):
|
|
316
295
|
"""Remove an edge.
|
|
@@ -318,7 +297,6 @@ class BMEdgeSeq:
|
|
|
318
297
|
:param edge:
|
|
319
298
|
:type edge: BMEdge
|
|
320
299
|
"""
|
|
321
|
-
...
|
|
322
300
|
|
|
323
301
|
def sort(self, key=None, reverse: bool = False):
|
|
324
302
|
"""Sort the elements of this sequence, using an optional custom sort key.
|
|
@@ -328,7 +306,6 @@ class BMEdgeSeq:
|
|
|
328
306
|
:param reverse: Reverse the order of the elements
|
|
329
307
|
:type reverse: bool
|
|
330
308
|
"""
|
|
331
|
-
...
|
|
332
309
|
|
|
333
310
|
@typing.overload
|
|
334
311
|
def __getitem__(self, key: int) -> BMEdge:
|
|
@@ -339,7 +316,6 @@ class BMEdgeSeq:
|
|
|
339
316
|
:return:
|
|
340
317
|
:rtype: BMEdge
|
|
341
318
|
"""
|
|
342
|
-
...
|
|
343
319
|
|
|
344
320
|
@typing.overload
|
|
345
321
|
def __getitem__(self, key: slice) -> tuple[BMEdge, ...]:
|
|
@@ -350,7 +326,6 @@ class BMEdgeSeq:
|
|
|
350
326
|
:return:
|
|
351
327
|
:rtype: tuple[BMEdge, ...]
|
|
352
328
|
"""
|
|
353
|
-
...
|
|
354
329
|
|
|
355
330
|
def __iter__(self) -> BMIter[BMEdge]:
|
|
356
331
|
"""
|
|
@@ -358,7 +333,6 @@ class BMEdgeSeq:
|
|
|
358
333
|
:return:
|
|
359
334
|
:rtype: BMIter[BMEdge]
|
|
360
335
|
"""
|
|
361
|
-
...
|
|
362
336
|
|
|
363
337
|
def __len__(self) -> int:
|
|
364
338
|
"""
|
|
@@ -366,7 +340,6 @@ class BMEdgeSeq:
|
|
|
366
340
|
:return:
|
|
367
341
|
:rtype: int
|
|
368
342
|
"""
|
|
369
|
-
...
|
|
370
343
|
|
|
371
344
|
class BMEditSelIter: ...
|
|
372
345
|
|
|
@@ -382,31 +355,26 @@ class BMEditSelSeq:
|
|
|
382
355
|
|
|
383
356
|
:param element:
|
|
384
357
|
"""
|
|
385
|
-
...
|
|
386
358
|
|
|
387
359
|
def clear(self):
|
|
388
360
|
"""Empties the selection history."""
|
|
389
|
-
...
|
|
390
361
|
|
|
391
362
|
def discard(self, element):
|
|
392
363
|
"""Discard an element from the selection history.Like remove but doesn't raise an error when the elements not in the selection list.
|
|
393
364
|
|
|
394
365
|
:param element:
|
|
395
366
|
"""
|
|
396
|
-
...
|
|
397
367
|
|
|
398
368
|
def remove(self, element):
|
|
399
369
|
"""Remove an element from the selection history.
|
|
400
370
|
|
|
401
371
|
:param element:
|
|
402
372
|
"""
|
|
403
|
-
...
|
|
404
373
|
|
|
405
374
|
def validate(self):
|
|
406
375
|
"""Ensures all elements in the selection history are selected."""
|
|
407
|
-
...
|
|
408
376
|
|
|
409
|
-
class BMElemSeq(typing.Generic[
|
|
377
|
+
class BMElemSeq(typing.Generic[_GenericType1]):
|
|
410
378
|
"""General sequence type used for accessing any sequence of
|
|
411
379
|
`BMVert`, `BMEdge`, `BMFace`, `BMLoop`.When accessed via `BMesh.verts`, `BMesh.edges`, `BMesh.faces`
|
|
412
380
|
there are also functions to create/remove items.
|
|
@@ -414,37 +382,33 @@ class BMElemSeq(typing.Generic[GenericType1]):
|
|
|
414
382
|
|
|
415
383
|
def index_update(self):
|
|
416
384
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
417
|
-
...
|
|
418
385
|
|
|
419
386
|
@typing.overload
|
|
420
|
-
def __getitem__(self, key: int) ->
|
|
387
|
+
def __getitem__(self, key: int) -> _GenericType1:
|
|
421
388
|
"""
|
|
422
389
|
|
|
423
390
|
:param key:
|
|
424
391
|
:type key: int
|
|
425
392
|
:return:
|
|
426
|
-
:rtype:
|
|
393
|
+
:rtype: _GenericType1
|
|
427
394
|
"""
|
|
428
|
-
...
|
|
429
395
|
|
|
430
396
|
@typing.overload
|
|
431
|
-
def __getitem__(self, key: slice) -> tuple[
|
|
397
|
+
def __getitem__(self, key: slice) -> tuple[_GenericType1, ...]:
|
|
432
398
|
"""
|
|
433
399
|
|
|
434
400
|
:param key:
|
|
435
401
|
:type key: slice
|
|
436
402
|
:return:
|
|
437
|
-
:rtype: tuple[
|
|
403
|
+
:rtype: tuple[_GenericType1, ...]
|
|
438
404
|
"""
|
|
439
|
-
...
|
|
440
405
|
|
|
441
|
-
def __iter__(self) -> BMIter[
|
|
406
|
+
def __iter__(self) -> BMIter[_GenericType1]:
|
|
442
407
|
"""
|
|
443
408
|
|
|
444
409
|
:return:
|
|
445
|
-
:rtype: BMIter[
|
|
410
|
+
:rtype: BMIter[_GenericType1]
|
|
446
411
|
"""
|
|
447
|
-
...
|
|
448
412
|
|
|
449
413
|
def __len__(self) -> int:
|
|
450
414
|
"""
|
|
@@ -452,7 +416,6 @@ class BMElemSeq(typing.Generic[GenericType1]):
|
|
|
452
416
|
:return:
|
|
453
417
|
:rtype: int
|
|
454
418
|
"""
|
|
455
|
-
...
|
|
456
419
|
|
|
457
420
|
class BMFace:
|
|
458
421
|
"""The BMesh face with 3 or more sides"""
|
|
@@ -529,7 +492,6 @@ class BMFace:
|
|
|
529
492
|
:return: Return the area of the face.
|
|
530
493
|
:rtype: float
|
|
531
494
|
"""
|
|
532
|
-
...
|
|
533
495
|
|
|
534
496
|
def calc_center_bounds(self) -> mathutils.Vector:
|
|
535
497
|
"""Return bounds center of the face.
|
|
@@ -537,7 +499,6 @@ class BMFace:
|
|
|
537
499
|
:return: a 3D vector.
|
|
538
500
|
:rtype: mathutils.Vector
|
|
539
501
|
"""
|
|
540
|
-
...
|
|
541
502
|
|
|
542
503
|
def calc_center_median(self) -> mathutils.Vector:
|
|
543
504
|
"""Return median center of the face.
|
|
@@ -545,7 +506,6 @@ class BMFace:
|
|
|
545
506
|
:return: a 3D vector.
|
|
546
507
|
:rtype: mathutils.Vector
|
|
547
508
|
"""
|
|
548
|
-
...
|
|
549
509
|
|
|
550
510
|
def calc_center_median_weighted(self) -> mathutils.Vector:
|
|
551
511
|
"""Return median center of the face weighted by edge lengths.
|
|
@@ -553,7 +513,6 @@ class BMFace:
|
|
|
553
513
|
:return: a 3D vector.
|
|
554
514
|
:rtype: mathutils.Vector
|
|
555
515
|
"""
|
|
556
|
-
...
|
|
557
516
|
|
|
558
517
|
def calc_perimeter(self) -> float:
|
|
559
518
|
"""Return the perimeter of the face.
|
|
@@ -561,7 +520,6 @@ class BMFace:
|
|
|
561
520
|
:return: Return the perimeter of the face.
|
|
562
521
|
:rtype: float
|
|
563
522
|
"""
|
|
564
|
-
...
|
|
565
523
|
|
|
566
524
|
def calc_tangent_edge(self) -> mathutils.Vector:
|
|
567
525
|
"""Return face tangent based on longest edge.
|
|
@@ -569,7 +527,6 @@ class BMFace:
|
|
|
569
527
|
:return: a normalized vector.
|
|
570
528
|
:rtype: mathutils.Vector
|
|
571
529
|
"""
|
|
572
|
-
...
|
|
573
530
|
|
|
574
531
|
def calc_tangent_edge_diagonal(self) -> mathutils.Vector:
|
|
575
532
|
"""Return face tangent based on the edge farthest from any vertex.
|
|
@@ -577,7 +534,6 @@ class BMFace:
|
|
|
577
534
|
:return: a normalized vector.
|
|
578
535
|
:rtype: mathutils.Vector
|
|
579
536
|
"""
|
|
580
|
-
...
|
|
581
537
|
|
|
582
538
|
def calc_tangent_edge_pair(self) -> mathutils.Vector:
|
|
583
539
|
"""Return face tangent based on the two longest disconnected edges.
|
|
@@ -585,7 +541,6 @@ class BMFace:
|
|
|
585
541
|
:return: a normalized vector.
|
|
586
542
|
:rtype: mathutils.Vector
|
|
587
543
|
"""
|
|
588
|
-
...
|
|
589
544
|
|
|
590
545
|
def calc_tangent_vert_diagonal(self) -> mathutils.Vector:
|
|
591
546
|
"""Return face tangent based on the two most distant vertices.
|
|
@@ -593,7 +548,6 @@ class BMFace:
|
|
|
593
548
|
:return: a normalized vector.
|
|
594
549
|
:rtype: mathutils.Vector
|
|
595
550
|
"""
|
|
596
|
-
...
|
|
597
551
|
|
|
598
552
|
def copy(self, verts: bool = True, edges: bool = True) -> typing_extensions.Self:
|
|
599
553
|
"""Make a copy of this face.
|
|
@@ -605,7 +559,6 @@ class BMFace:
|
|
|
605
559
|
:return: The newly created face.
|
|
606
560
|
:rtype: typing_extensions.Self
|
|
607
561
|
"""
|
|
608
|
-
...
|
|
609
562
|
|
|
610
563
|
def copy_from(self, other: typing_extensions.Self):
|
|
611
564
|
"""Copy values from another element of matching type.
|
|
@@ -613,7 +566,6 @@ class BMFace:
|
|
|
613
566
|
:param other:
|
|
614
567
|
:type other: typing_extensions.Self
|
|
615
568
|
"""
|
|
616
|
-
...
|
|
617
569
|
|
|
618
570
|
def copy_from_face_interp(self, face: typing_extensions.Self, vert: bool = True):
|
|
619
571
|
"""Interpolate the customdata from another face onto this one (faces should overlap).
|
|
@@ -623,7 +575,6 @@ class BMFace:
|
|
|
623
575
|
:param vert: When True, also copy vertex data.
|
|
624
576
|
:type vert: bool
|
|
625
577
|
"""
|
|
626
|
-
...
|
|
627
578
|
|
|
628
579
|
def hide_set(self, hide: bool):
|
|
629
580
|
"""Set the hide state.
|
|
@@ -632,18 +583,15 @@ class BMFace:
|
|
|
632
583
|
:param hide: Hidden or visible.
|
|
633
584
|
:type hide: bool
|
|
634
585
|
"""
|
|
635
|
-
...
|
|
636
586
|
|
|
637
587
|
def normal_flip(self):
|
|
638
588
|
"""Reverses winding of a face, which flips its normal."""
|
|
639
|
-
...
|
|
640
589
|
|
|
641
590
|
def normal_update(self):
|
|
642
591
|
"""Update face normal based on the positions of the face verts.
|
|
643
592
|
This does not update the normals of face verts.
|
|
644
593
|
|
|
645
594
|
"""
|
|
646
|
-
...
|
|
647
595
|
|
|
648
596
|
def select_set(self, select: bool):
|
|
649
597
|
"""Set the selection.
|
|
@@ -652,7 +600,6 @@ class BMFace:
|
|
|
652
600
|
:param select: Select or de-select.
|
|
653
601
|
:type select: bool
|
|
654
602
|
"""
|
|
655
|
-
...
|
|
656
603
|
|
|
657
604
|
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
658
605
|
"""
|
|
@@ -662,7 +609,6 @@ class BMFace:
|
|
|
662
609
|
:return:
|
|
663
610
|
:rtype: typing.Any
|
|
664
611
|
"""
|
|
665
|
-
...
|
|
666
612
|
|
|
667
613
|
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
668
614
|
"""
|
|
@@ -672,7 +618,6 @@ class BMFace:
|
|
|
672
618
|
:param value:
|
|
673
619
|
:type value: typing.Any
|
|
674
620
|
"""
|
|
675
|
-
...
|
|
676
621
|
|
|
677
622
|
def __delitem__(self, key: BMLayerItem):
|
|
678
623
|
"""
|
|
@@ -680,7 +625,6 @@ class BMFace:
|
|
|
680
625
|
:param key:
|
|
681
626
|
:type key: BMLayerItem
|
|
682
627
|
"""
|
|
683
|
-
...
|
|
684
628
|
|
|
685
629
|
class BMFaceSeq:
|
|
686
630
|
active: BMFace | None
|
|
@@ -697,7 +641,6 @@ class BMFaceSeq:
|
|
|
697
641
|
|
|
698
642
|
def ensure_lookup_table(self):
|
|
699
643
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
700
|
-
...
|
|
701
644
|
|
|
702
645
|
def get(self, verts: list[BMVert], fallback=None) -> BMFace:
|
|
703
646
|
"""Return a face which uses the verts passed.
|
|
@@ -708,11 +651,9 @@ class BMFaceSeq:
|
|
|
708
651
|
:return: The face found or None
|
|
709
652
|
:rtype: BMFace
|
|
710
653
|
"""
|
|
711
|
-
...
|
|
712
654
|
|
|
713
655
|
def index_update(self):
|
|
714
656
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
715
|
-
...
|
|
716
657
|
|
|
717
658
|
def new(self, verts: list[BMVert], example: BMFace | None = None) -> BMFace:
|
|
718
659
|
"""Create a new face from a given set of verts.
|
|
@@ -724,7 +665,6 @@ class BMFaceSeq:
|
|
|
724
665
|
:return: The newly created face.
|
|
725
666
|
:rtype: BMFace
|
|
726
667
|
"""
|
|
727
|
-
...
|
|
728
668
|
|
|
729
669
|
def remove(self, face: BMFace):
|
|
730
670
|
"""Remove a face.
|
|
@@ -732,7 +672,6 @@ class BMFaceSeq:
|
|
|
732
672
|
:param face:
|
|
733
673
|
:type face: BMFace
|
|
734
674
|
"""
|
|
735
|
-
...
|
|
736
675
|
|
|
737
676
|
def sort(self, key=None, reverse: bool = False):
|
|
738
677
|
"""Sort the elements of this sequence, using an optional custom sort key.
|
|
@@ -742,7 +681,6 @@ class BMFaceSeq:
|
|
|
742
681
|
:param reverse: Reverse the order of the elements
|
|
743
682
|
:type reverse: bool
|
|
744
683
|
"""
|
|
745
|
-
...
|
|
746
684
|
|
|
747
685
|
@typing.overload
|
|
748
686
|
def __getitem__(self, key: int) -> BMFace:
|
|
@@ -753,7 +691,6 @@ class BMFaceSeq:
|
|
|
753
691
|
:return:
|
|
754
692
|
:rtype: BMFace
|
|
755
693
|
"""
|
|
756
|
-
...
|
|
757
694
|
|
|
758
695
|
@typing.overload
|
|
759
696
|
def __getitem__(self, key: slice) -> tuple[BMFace, ...]:
|
|
@@ -764,7 +701,6 @@ class BMFaceSeq:
|
|
|
764
701
|
:return:
|
|
765
702
|
:rtype: tuple[BMFace, ...]
|
|
766
703
|
"""
|
|
767
|
-
...
|
|
768
704
|
|
|
769
705
|
def __iter__(self) -> BMIter[BMFace]:
|
|
770
706
|
"""
|
|
@@ -772,7 +708,6 @@ class BMFaceSeq:
|
|
|
772
708
|
:return:
|
|
773
709
|
:rtype: BMIter[BMFace]
|
|
774
710
|
"""
|
|
775
|
-
...
|
|
776
711
|
|
|
777
712
|
def __len__(self) -> int:
|
|
778
713
|
"""
|
|
@@ -780,28 +715,25 @@ class BMFaceSeq:
|
|
|
780
715
|
:return:
|
|
781
716
|
:rtype: int
|
|
782
717
|
"""
|
|
783
|
-
...
|
|
784
718
|
|
|
785
|
-
class BMIter(typing.Generic[
|
|
719
|
+
class BMIter(typing.Generic[_GenericType1]):
|
|
786
720
|
"""Internal BMesh type for looping over verts/faces/edges,
|
|
787
721
|
used for iterating over `BMElemSeq` types.
|
|
788
722
|
"""
|
|
789
723
|
|
|
790
|
-
def __iter__(self) -> BMIter[
|
|
724
|
+
def __iter__(self) -> BMIter[_GenericType1]:
|
|
791
725
|
"""
|
|
792
726
|
|
|
793
727
|
:return:
|
|
794
|
-
:rtype: BMIter[
|
|
728
|
+
:rtype: BMIter[_GenericType1]
|
|
795
729
|
"""
|
|
796
|
-
...
|
|
797
730
|
|
|
798
|
-
def __next__(self) ->
|
|
731
|
+
def __next__(self) -> _GenericType1:
|
|
799
732
|
"""
|
|
800
733
|
|
|
801
734
|
:return:
|
|
802
|
-
:rtype:
|
|
735
|
+
:rtype: _GenericType1
|
|
803
736
|
"""
|
|
804
|
-
...
|
|
805
737
|
|
|
806
738
|
class BMLayerAccessEdge:
|
|
807
739
|
"""Exposes custom-data layer attributes."""
|
|
@@ -1010,7 +942,9 @@ class BMLayerCollection:
|
|
|
1010
942
|
:type: bool
|
|
1011
943
|
"""
|
|
1012
944
|
|
|
1013
|
-
def get(
|
|
945
|
+
def get(
|
|
946
|
+
self, key: str, default: _GenericType2 = None
|
|
947
|
+
) -> BMLayerItem | _GenericType2:
|
|
1014
948
|
"""Returns the value of the layer matching the key or default
|
|
1015
949
|
when not found (matches Python's dictionary function of the same name).
|
|
1016
950
|
|
|
@@ -1018,11 +952,10 @@ class BMLayerCollection:
|
|
|
1018
952
|
:type key: str
|
|
1019
953
|
:param default: Optional argument for the value to return if
|
|
1020
954
|
key is not found.
|
|
1021
|
-
:type default:
|
|
955
|
+
:type default: _GenericType2
|
|
1022
956
|
:return:
|
|
1023
|
-
:rtype: BMLayerItem |
|
|
957
|
+
:rtype: BMLayerItem | _GenericType2
|
|
1024
958
|
"""
|
|
1025
|
-
...
|
|
1026
959
|
|
|
1027
960
|
def items(self):
|
|
1028
961
|
"""Return the identifiers of collection members
|
|
@@ -1030,7 +963,6 @@ class BMLayerCollection:
|
|
|
1030
963
|
|
|
1031
964
|
:return: (key, value) pairs for each member of this collection.
|
|
1032
965
|
"""
|
|
1033
|
-
...
|
|
1034
966
|
|
|
1035
967
|
def keys(self) -> list[str]:
|
|
1036
968
|
"""Return the identifiers of collection members
|
|
@@ -1039,7 +971,6 @@ class BMLayerCollection:
|
|
|
1039
971
|
:return: the identifiers for each member of this collection.
|
|
1040
972
|
:rtype: list[str]
|
|
1041
973
|
"""
|
|
1042
|
-
...
|
|
1043
974
|
|
|
1044
975
|
def new(self, name: str | None = "") -> BMLayerItem:
|
|
1045
976
|
"""Create a new layer
|
|
@@ -1049,7 +980,6 @@ class BMLayerCollection:
|
|
|
1049
980
|
:return: The newly created layer.
|
|
1050
981
|
:rtype: BMLayerItem
|
|
1051
982
|
"""
|
|
1052
|
-
...
|
|
1053
983
|
|
|
1054
984
|
def remove(self, layer: BMLayerItem):
|
|
1055
985
|
"""Remove a layer
|
|
@@ -1057,7 +987,6 @@ class BMLayerCollection:
|
|
|
1057
987
|
:param layer: The layer to remove.
|
|
1058
988
|
:type layer: BMLayerItem
|
|
1059
989
|
"""
|
|
1060
|
-
...
|
|
1061
990
|
|
|
1062
991
|
def values(self) -> list:
|
|
1063
992
|
"""Return the values of collection
|
|
@@ -1066,7 +995,6 @@ class BMLayerCollection:
|
|
|
1066
995
|
:return: the members of this collection.
|
|
1067
996
|
:rtype: list
|
|
1068
997
|
"""
|
|
1069
|
-
...
|
|
1070
998
|
|
|
1071
999
|
def verify(self) -> BMLayerItem:
|
|
1072
1000
|
"""Create a new layer or return an existing active layer
|
|
@@ -1074,7 +1002,6 @@ class BMLayerCollection:
|
|
|
1074
1002
|
:return: The newly verified layer.
|
|
1075
1003
|
:rtype: BMLayerItem
|
|
1076
1004
|
"""
|
|
1077
|
-
...
|
|
1078
1005
|
|
|
1079
1006
|
class BMLayerItem:
|
|
1080
1007
|
"""Exposes a single custom data layer, their main purpose is for use as item accessors to custom-data when used with vert/edge/face/loop data."""
|
|
@@ -1091,7 +1018,6 @@ class BMLayerItem:
|
|
|
1091
1018
|
:param other: Another layer to copy from.
|
|
1092
1019
|
:type other: typing_extensions.Self
|
|
1093
1020
|
"""
|
|
1094
|
-
...
|
|
1095
1021
|
|
|
1096
1022
|
class BMLoop:
|
|
1097
1023
|
"""This is normally accessed from `BMFace.loops` where each face loop represents a corner of the face."""
|
|
@@ -1175,7 +1101,6 @@ class BMLoop:
|
|
|
1175
1101
|
:return: The angle in radians.
|
|
1176
1102
|
:rtype: float
|
|
1177
1103
|
"""
|
|
1178
|
-
...
|
|
1179
1104
|
|
|
1180
1105
|
def calc_normal(self) -> mathutils.Vector:
|
|
1181
1106
|
"""Return normal at this loops corner of the face.
|
|
@@ -1184,7 +1109,6 @@ class BMLoop:
|
|
|
1184
1109
|
:return: a normalized vector.
|
|
1185
1110
|
:rtype: mathutils.Vector
|
|
1186
1111
|
"""
|
|
1187
|
-
...
|
|
1188
1112
|
|
|
1189
1113
|
def calc_tangent(self) -> mathutils.Vector:
|
|
1190
1114
|
"""Return the tangent at this loops corner of the face (pointing inward into the face).
|
|
@@ -1193,7 +1117,6 @@ class BMLoop:
|
|
|
1193
1117
|
:return: a normalized vector.
|
|
1194
1118
|
:rtype: mathutils.Vector
|
|
1195
1119
|
"""
|
|
1196
|
-
...
|
|
1197
1120
|
|
|
1198
1121
|
def copy_from(self, other: typing_extensions.Self):
|
|
1199
1122
|
"""Copy values from another element of matching type.
|
|
@@ -1201,7 +1124,6 @@ class BMLoop:
|
|
|
1201
1124
|
:param other:
|
|
1202
1125
|
:type other: typing_extensions.Self
|
|
1203
1126
|
"""
|
|
1204
|
-
...
|
|
1205
1127
|
|
|
1206
1128
|
def copy_from_face_interp(
|
|
1207
1129
|
self, face: BMFace, vert: bool = True, multires: bool = True
|
|
@@ -1215,7 +1137,6 @@ class BMLoop:
|
|
|
1215
1137
|
:param multires: When enabled, interpolate the loops multires data (optional).
|
|
1216
1138
|
:type multires: bool
|
|
1217
1139
|
"""
|
|
1218
|
-
...
|
|
1219
1140
|
|
|
1220
1141
|
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
1221
1142
|
"""
|
|
@@ -1225,7 +1146,6 @@ class BMLoop:
|
|
|
1225
1146
|
:return:
|
|
1226
1147
|
:rtype: typing.Any
|
|
1227
1148
|
"""
|
|
1228
|
-
...
|
|
1229
1149
|
|
|
1230
1150
|
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
1231
1151
|
"""
|
|
@@ -1235,7 +1155,6 @@ class BMLoop:
|
|
|
1235
1155
|
:param value:
|
|
1236
1156
|
:type value: typing.Any
|
|
1237
1157
|
"""
|
|
1238
|
-
...
|
|
1239
1158
|
|
|
1240
1159
|
def __delitem__(self, key: BMLayerItem):
|
|
1241
1160
|
"""
|
|
@@ -1243,7 +1162,6 @@ class BMLoop:
|
|
|
1243
1162
|
:param key:
|
|
1244
1163
|
:type key: BMLayerItem
|
|
1245
1164
|
"""
|
|
1246
|
-
...
|
|
1247
1165
|
|
|
1248
1166
|
class BMLoopSeq:
|
|
1249
1167
|
layers: BMLayerAccessLoop
|
|
@@ -1367,7 +1285,6 @@ class BMVert:
|
|
|
1367
1285
|
:return: Angle between edges in radians.
|
|
1368
1286
|
:rtype: float
|
|
1369
1287
|
"""
|
|
1370
|
-
...
|
|
1371
1288
|
|
|
1372
1289
|
def calc_shell_factor(self) -> float:
|
|
1373
1290
|
"""Return a multiplier calculated based on the sharpness of the vertex.
|
|
@@ -1377,7 +1294,6 @@ class BMVert:
|
|
|
1377
1294
|
:return: offset multiplier
|
|
1378
1295
|
:rtype: float
|
|
1379
1296
|
"""
|
|
1380
|
-
...
|
|
1381
1297
|
|
|
1382
1298
|
def copy_from(self, other: typing_extensions.Self):
|
|
1383
1299
|
"""Copy values from another element of matching type.
|
|
@@ -1385,7 +1301,6 @@ class BMVert:
|
|
|
1385
1301
|
:param other:
|
|
1386
1302
|
:type other: typing_extensions.Self
|
|
1387
1303
|
"""
|
|
1388
|
-
...
|
|
1389
1304
|
|
|
1390
1305
|
def copy_from_face_interp(self, face: BMFace):
|
|
1391
1306
|
"""Interpolate the customdata from a face onto this loop (the loops vert should overlap the face).
|
|
@@ -1393,7 +1308,6 @@ class BMVert:
|
|
|
1393
1308
|
:param face: The face to interpolate data from.
|
|
1394
1309
|
:type face: BMFace
|
|
1395
1310
|
"""
|
|
1396
|
-
...
|
|
1397
1311
|
|
|
1398
1312
|
def copy_from_vert_interp(self, vert_pair: tuple[BMVert, BMVert], fac: float):
|
|
1399
1313
|
"""Interpolate the customdata from a vert between 2 other verts.
|
|
@@ -1403,7 +1317,6 @@ class BMVert:
|
|
|
1403
1317
|
:param fac:
|
|
1404
1318
|
:type fac: float
|
|
1405
1319
|
"""
|
|
1406
|
-
...
|
|
1407
1320
|
|
|
1408
1321
|
def hide_set(self, hide: bool):
|
|
1409
1322
|
"""Set the hide state.
|
|
@@ -1412,14 +1325,12 @@ class BMVert:
|
|
|
1412
1325
|
:param hide: Hidden or visible.
|
|
1413
1326
|
:type hide: bool
|
|
1414
1327
|
"""
|
|
1415
|
-
...
|
|
1416
1328
|
|
|
1417
1329
|
def normal_update(self):
|
|
1418
1330
|
"""Update vertex normal.
|
|
1419
1331
|
This does not update the normals of adjoining faces.
|
|
1420
1332
|
|
|
1421
1333
|
"""
|
|
1422
|
-
...
|
|
1423
1334
|
|
|
1424
1335
|
def select_set(self, select: bool):
|
|
1425
1336
|
"""Set the selection.
|
|
@@ -1428,7 +1339,6 @@ class BMVert:
|
|
|
1428
1339
|
:param select: Select or de-select.
|
|
1429
1340
|
:type select: bool
|
|
1430
1341
|
"""
|
|
1431
|
-
...
|
|
1432
1342
|
|
|
1433
1343
|
def __getitem__(self, key: BMLayerItem) -> typing.Any:
|
|
1434
1344
|
"""
|
|
@@ -1438,7 +1348,6 @@ class BMVert:
|
|
|
1438
1348
|
:return:
|
|
1439
1349
|
:rtype: typing.Any
|
|
1440
1350
|
"""
|
|
1441
|
-
...
|
|
1442
1351
|
|
|
1443
1352
|
def __setitem__(self, key: BMLayerItem, value: typing.Any):
|
|
1444
1353
|
"""
|
|
@@ -1448,7 +1357,6 @@ class BMVert:
|
|
|
1448
1357
|
:param value:
|
|
1449
1358
|
:type value: typing.Any
|
|
1450
1359
|
"""
|
|
1451
|
-
...
|
|
1452
1360
|
|
|
1453
1361
|
def __delitem__(self, key: BMLayerItem):
|
|
1454
1362
|
"""
|
|
@@ -1456,7 +1364,6 @@ class BMVert:
|
|
|
1456
1364
|
:param key:
|
|
1457
1365
|
:type key: BMLayerItem
|
|
1458
1366
|
"""
|
|
1459
|
-
...
|
|
1460
1367
|
|
|
1461
1368
|
class BMVertSeq:
|
|
1462
1369
|
layers: BMLayerAccessVert
|
|
@@ -1467,11 +1374,9 @@ class BMVertSeq:
|
|
|
1467
1374
|
|
|
1468
1375
|
def ensure_lookup_table(self):
|
|
1469
1376
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
1470
|
-
...
|
|
1471
1377
|
|
|
1472
1378
|
def index_update(self):
|
|
1473
1379
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
1474
|
-
...
|
|
1475
1380
|
|
|
1476
1381
|
def new(
|
|
1477
1382
|
self,
|
|
@@ -1487,7 +1392,6 @@ class BMVertSeq:
|
|
|
1487
1392
|
:return: The newly created vertex.
|
|
1488
1393
|
:rtype: BMVert
|
|
1489
1394
|
"""
|
|
1490
|
-
...
|
|
1491
1395
|
|
|
1492
1396
|
def remove(self, vert: BMVert):
|
|
1493
1397
|
"""Remove a vert.
|
|
@@ -1495,7 +1399,6 @@ class BMVertSeq:
|
|
|
1495
1399
|
:param vert:
|
|
1496
1400
|
:type vert: BMVert
|
|
1497
1401
|
"""
|
|
1498
|
-
...
|
|
1499
1402
|
|
|
1500
1403
|
def sort(self, key=None, reverse: bool = False):
|
|
1501
1404
|
"""Sort the elements of this sequence, using an optional custom sort key.
|
|
@@ -1505,7 +1408,6 @@ class BMVertSeq:
|
|
|
1505
1408
|
:param reverse: Reverse the order of the elements
|
|
1506
1409
|
:type reverse: bool
|
|
1507
1410
|
"""
|
|
1508
|
-
...
|
|
1509
1411
|
|
|
1510
1412
|
@typing.overload
|
|
1511
1413
|
def __getitem__(self, key: int) -> BMVert:
|
|
@@ -1516,7 +1418,6 @@ class BMVertSeq:
|
|
|
1516
1418
|
:return:
|
|
1517
1419
|
:rtype: BMVert
|
|
1518
1420
|
"""
|
|
1519
|
-
...
|
|
1520
1421
|
|
|
1521
1422
|
@typing.overload
|
|
1522
1423
|
def __getitem__(self, key: slice) -> tuple[BMVert, ...]:
|
|
@@ -1527,7 +1428,6 @@ class BMVertSeq:
|
|
|
1527
1428
|
:return:
|
|
1528
1429
|
:rtype: tuple[BMVert, ...]
|
|
1529
1430
|
"""
|
|
1530
|
-
...
|
|
1531
1431
|
|
|
1532
1432
|
def __iter__(self) -> BMIter[BMVert]:
|
|
1533
1433
|
"""
|
|
@@ -1535,7 +1435,6 @@ class BMVertSeq:
|
|
|
1535
1435
|
:return:
|
|
1536
1436
|
:rtype: BMIter[BMVert]
|
|
1537
1437
|
"""
|
|
1538
|
-
...
|
|
1539
1438
|
|
|
1540
1439
|
def __len__(self) -> int:
|
|
1541
1440
|
"""
|
|
@@ -1543,7 +1442,6 @@ class BMVertSeq:
|
|
|
1543
1442
|
:return:
|
|
1544
1443
|
:rtype: int
|
|
1545
1444
|
"""
|
|
1546
|
-
...
|
|
1547
1445
|
|
|
1548
1446
|
class BMesh:
|
|
1549
1447
|
"""The BMesh data structure"""
|
|
@@ -1601,7 +1499,6 @@ class BMesh:
|
|
|
1601
1499
|
|
|
1602
1500
|
:return: The triangulated faces.
|
|
1603
1501
|
"""
|
|
1604
|
-
...
|
|
1605
1502
|
|
|
1606
1503
|
def calc_volume(self, signed: bool = False) -> float:
|
|
1607
1504
|
"""Calculate mesh volume based on face normals.
|
|
@@ -1611,11 +1508,9 @@ class BMesh:
|
|
|
1611
1508
|
:return: The volume of the mesh.
|
|
1612
1509
|
:rtype: float
|
|
1613
1510
|
"""
|
|
1614
|
-
...
|
|
1615
1511
|
|
|
1616
1512
|
def clear(self):
|
|
1617
1513
|
"""Clear all mesh data."""
|
|
1618
|
-
...
|
|
1619
1514
|
|
|
1620
1515
|
def copy(self) -> typing_extensions.Self:
|
|
1621
1516
|
"""
|
|
@@ -1623,11 +1518,9 @@ class BMesh:
|
|
|
1623
1518
|
:return: A copy of this BMesh.
|
|
1624
1519
|
:rtype: typing_extensions.Self
|
|
1625
1520
|
"""
|
|
1626
|
-
...
|
|
1627
1521
|
|
|
1628
1522
|
def free(self):
|
|
1629
1523
|
"""Explicitly free the BMesh data from memory, causing exceptions on further access."""
|
|
1630
|
-
...
|
|
1631
1524
|
|
|
1632
1525
|
def from_mesh(
|
|
1633
1526
|
self,
|
|
@@ -1650,7 +1543,6 @@ class BMesh:
|
|
|
1650
1543
|
:param shape_key_index: The shape key index to use.
|
|
1651
1544
|
:type shape_key_index: int
|
|
1652
1545
|
"""
|
|
1653
|
-
...
|
|
1654
1546
|
|
|
1655
1547
|
def from_object(
|
|
1656
1548
|
self,
|
|
@@ -1673,11 +1565,9 @@ class BMesh:
|
|
|
1673
1565
|
:param vertex_normals: Calculate vertex normals.
|
|
1674
1566
|
:type vertex_normals: bool
|
|
1675
1567
|
"""
|
|
1676
|
-
...
|
|
1677
1568
|
|
|
1678
1569
|
def normal_update(self):
|
|
1679
1570
|
"""Update normals of mesh faces and verts."""
|
|
1680
|
-
...
|
|
1681
1571
|
|
|
1682
1572
|
def select_flush(self, select: bool):
|
|
1683
1573
|
"""Flush selection, independent of the current selection mode.
|
|
@@ -1685,11 +1575,9 @@ class BMesh:
|
|
|
1685
1575
|
:param select: flush selection or de-selected elements.
|
|
1686
1576
|
:type select: bool
|
|
1687
1577
|
"""
|
|
1688
|
-
...
|
|
1689
1578
|
|
|
1690
1579
|
def select_flush_mode(self):
|
|
1691
1580
|
"""flush selection based on the current mode current `BMesh.select_mode`."""
|
|
1692
|
-
...
|
|
1693
1581
|
|
|
1694
1582
|
def to_mesh(self, mesh: bpy.types.Mesh):
|
|
1695
1583
|
"""Writes this BMesh data into an existing Mesh datablock.
|
|
@@ -1697,7 +1585,6 @@ class BMesh:
|
|
|
1697
1585
|
:param mesh: The mesh data to write into.
|
|
1698
1586
|
:type mesh: bpy.types.Mesh
|
|
1699
1587
|
"""
|
|
1700
|
-
...
|
|
1701
1588
|
|
|
1702
1589
|
def transform(
|
|
1703
1590
|
self,
|
|
@@ -1712,4 +1599,3 @@ class BMesh:
|
|
|
1712
1599
|
:param filter: set of values in ('SELECT', 'HIDE', 'SEAM', 'SMOOTH', 'TAG').
|
|
1713
1600
|
:type filter: set
|
|
1714
1601
|
"""
|
|
1715
|
-
...
|