fake-bpy-module 20240516__py3-none-any.whl → 20240518__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/freedesktop/__init__.pyi +17 -84
- addon_utils/__init__.pyi +44 -38
- animsys_refactor/__init__.pyi +7 -27
- aud/__init__.pyi +8 -11
- bgl/__init__.pyi +121 -1812
- bl_app_override/__init__.pyi +8 -19
- bl_app_override/helpers/__init__.pyi +5 -23
- bl_app_template_utils/__init__.pyi +5 -17
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +48 -10
- bl_console_utils/autocomplete/complete_import/__init__.pyi +27 -6
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +40 -8
- bl_console_utils/autocomplete/intellisense/__init__.pyi +31 -4
- bl_i18n_utils/bl_extract_messages/__init__.pyi +16 -67
- bl_i18n_utils/merge_po/__init__.pyi +1 -4
- bl_i18n_utils/settings/__init__.pyi +6 -24
- bl_i18n_utils/utils/__init__.pyi +93 -122
- bl_i18n_utils/utils_cli/__init__.pyi +6 -29
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -4
- bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
- bl_keymap_utils/io/__init__.pyi +9 -40
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -4
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -6
- bl_keymap_utils/versioning/__init__.pyi +1 -4
- bl_operators/__init__.pyi +2 -9
- bl_operators/add_mesh_torus/__init__.pyi +128 -59
- bl_operators/anim/__init__.pyi +1001 -398
- bl_operators/assets/__init__.pyi +376 -152
- bl_operators/bmesh/find_adjacent/__init__.pyi +10 -37
- bl_operators/clip/__init__.pyi +1264 -532
- bl_operators/console/__init__.pyi +626 -242
- bl_operators/constraint/__init__.pyi +502 -201
- bl_operators/file/__init__.pyi +376 -150
- bl_operators/freestyle/__init__.pyi +501 -200
- bl_operators/geometry_nodes/__init__.pyi +514 -266
- bl_operators/image/__init__.pyi +621 -251
- bl_operators/mesh/__init__.pyi +376 -150
- bl_operators/node/__init__.pyi +1253 -516
- bl_operators/object/__init__.pyi +1879 -755
- bl_operators/object_align/__init__.pyi +129 -64
- bl_operators/object_quick_effects/__init__.pyi +504 -213
- bl_operators/object_randomize_transform/__init__.pyi +129 -54
- bl_operators/presets/__init__.pyi +3072 -1403
- bl_operators/rigidbody/__init__.pyi +376 -150
- bl_operators/screen_play_rendered_anim/__init__.pyi +127 -54
- bl_operators/sequencer/__init__.pyi +1010 -434
- bl_operators/spreadsheet/__init__.pyi +126 -50
- bl_operators/userpref/__init__.pyi +3253 -1267
- bl_operators/uvcalc_follow_active/__init__.pyi +128 -59
- bl_operators/uvcalc_lightmap/__init__.pyi +139 -80
- bl_operators/uvcalc_transform/__init__.pyi +297 -159
- bl_operators/vertexpaint_dirt/__init__.pyi +128 -59
- bl_operators/view3d/__init__.pyi +868 -342
- bl_operators/wm/__init__.pyi +5795 -2388
- bl_operators/world/__init__.pyi +126 -50
- bl_previews_utils/bl_previews_render/__init__.pyi +7 -34
- bl_rna_utils/data_path/__init__.pyi +8 -4
- bl_text_utils/external_editor/__init__.pyi +1 -4
- bl_ui/__init__.pyi +366 -269
- bl_ui/anim/__init__.pyi +164 -74
- bl_ui/asset_shelf/__init__.pyi +129 -56
- bl_ui/generic_ui_list/__init__.pyi +412 -163
- bl_ui/node_add_menu/__init__.pyi +171 -94
- bl_ui/node_add_menu_compositor/__init__.pyi +2918 -1353
- bl_ui/node_add_menu_geometry/__init__.pyi +7789 -3616
- bl_ui/node_add_menu_shader/__init__.pyi +1630 -790
- bl_ui/node_add_menu_texture/__init__.pyi +1459 -675
- bl_ui/properties_animviz/__init__.pyi +2 -16
- bl_ui/properties_collection/__init__.pyi +807 -379
- bl_ui/properties_constraint/__init__.pyi +10292 -4941
- bl_ui/properties_data_armature/__init__.pyi +1615 -753
- bl_ui/properties_data_bone/__init__.pyi +1284 -608
- bl_ui/properties_data_camera/__init__.pyi +1854 -927
- bl_ui/properties_data_curve/__init__.pyi +1927 -937
- bl_ui/properties_data_curves/__init__.pyi +806 -375
- bl_ui/properties_data_empty/__init__.pyi +257 -125
- bl_ui/properties_data_gpencil/__init__.pyi +2376 -1130
- bl_ui/properties_data_grease_pencil/__init__.pyi +1898 -894
- bl_ui/properties_data_lattice/__init__.pyi +388 -188
- bl_ui/properties_data_light/__init__.pyi +1540 -756
- bl_ui/properties_data_lightprobe/__init__.pyi +1666 -810
- bl_ui/properties_data_mesh/__init__.pyi +2707 -1235
- bl_ui/properties_data_metaball/__init__.pyi +644 -308
- bl_ui/properties_data_modifier/__init__.pyi +1353 -671
- bl_ui/properties_data_pointcloud/__init__.pyi +679 -316
- bl_ui/properties_data_shaderfx/__init__.pyi +129 -67
- bl_ui/properties_data_speaker/__init__.pyi +644 -316
- bl_ui/properties_data_volume/__init__.pyi +1028 -484
- bl_ui/properties_freestyle/__init__.pyi +3112 -1619
- bl_ui/properties_grease_pencil_common/__init__.pyi +2454 -1123
- bl_ui/properties_mask_common/__init__.pyi +1102 -523
- bl_ui/properties_material/__init__.pyi +2089 -1009
- bl_ui/properties_material_gpencil/__init__.pyi +1348 -635
- bl_ui/properties_object/__init__.pyi +1832 -873
- bl_ui/properties_output/__init__.pyi +2405 -1173
- bl_ui/properties_paint_common/__init__.pyi +416 -386
- bl_ui/properties_particle/__init__.pyi +6740 -3346
- bl_ui/properties_physics_cloth/__init__.pyi +1822 -907
- bl_ui/properties_physics_common/__init__.pyi +135 -98
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2817 -1391
- bl_ui/properties_physics_field/__init__.pyi +1282 -627
- bl_ui/properties_physics_fluid/__init__.pyi +3614 -1794
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -60
- bl_ui/properties_physics_rigidbody/__init__.pyi +1026 -515
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1665 -811
- bl_ui/properties_physics_softbody/__init__.pyi +1922 -967
- bl_ui/properties_render/__init__.pyi +6843 -3367
- bl_ui/properties_scene/__init__.pyi +1924 -913
- bl_ui/properties_texture/__init__.pyi +3371 -1667
- bl_ui/properties_view_layer/__init__.pyi +2344 -1107
- bl_ui/properties_workspace/__init__.pyi +516 -244
- bl_ui/properties_world/__init__.pyi +1284 -630
- bl_ui/space_clip/__init__.pyi +10172 -4695
- bl_ui/space_console/__init__.pyi +940 -423
- bl_ui/space_dopesheet/__init__.pyi +4325 -2013
- bl_ui/space_filebrowser/__init__.pyi +4172 -1903
- bl_ui/space_graph/__init__.pyi +3107 -1394
- bl_ui/space_image/__init__.pyi +9764 -4614
- bl_ui/space_info/__init__.pyi +939 -421
- bl_ui/space_nla/__init__.pyi +2623 -1183
- bl_ui/space_node/__init__.pyi +3995 -1840
- bl_ui/space_outliner/__init__.pyi +2203 -991
- bl_ui/space_properties/__init__.pyi +386 -165
- bl_ui/space_sequencer/__init__.pyi +10809 -4978
- bl_ui/space_spreadsheet/__init__.pyi +130 -53
- bl_ui/space_statusbar/__init__.pyi +129 -52
- bl_ui/space_text/__init__.pyi +2457 -1100
- bl_ui/space_time/__init__.pyi +1034 -481
- bl_ui/space_toolsystem_common/__init__.pyi +56 -211
- bl_ui/space_toolsystem_toolbar/__init__.pyi +153 -882
- bl_ui/space_topbar/__init__.pyi +3982 -1805
- bl_ui/space_userpref/__init__.pyi +11383 -5290
- bl_ui/space_view3d/__init__.pyi +40873 -18532
- bl_ui/space_view3d_toolbar/__init__.pyi +12570 -6502
- bl_ui/temp_anim_layers/__init__.pyi +130 -62
- bl_ui/utils/__init__.pyi +28 -27
- bl_ui_utils/bug_report_url/__init__.pyi +1 -4
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +3 -10
- blf/__init__.pyi +4 -4
- bmesh/geometry/__init__.pyi +2 -3
- bmesh/ops/__init__.pyi +372 -419
- bmesh/types/__init__.pyi +39 -56
- bmesh/utils/__init__.pyi +10 -13
- bpy/app/__init__.pyi +4 -4
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -8
- bpy/app/timers/__init__.pyi +10 -10
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +2 -4
- bpy/ops/action/__init__.pyi +316 -394
- bpy/ops/anim/__init__.pyi +442 -548
- bpy/ops/armature/__init__.pyi +374 -470
- bpy/ops/asset/__init__.pyi +152 -184
- bpy/ops/bl_pkg/__init__.pyi +221 -272
- bpy/ops/boid/__init__.pyi +50 -66
- bpy/ops/brush/__init__.pyi +72 -90
- bpy/ops/buttons/__init__.pyi +132 -144
- bpy/ops/cachefile/__init__.pyi +128 -138
- bpy/ops/camera/__init__.pyi +26 -30
- bpy/ops/clip/__init__.pyi +777 -964
- bpy/ops/cloth/__init__.pyi +12 -14
- bpy/ops/collection/__init__.pyi +68 -86
- bpy/ops/console/__init__.pyi +158 -200
- bpy/ops/constraint/__init__.pyi +178 -214
- bpy/ops/curve/__init__.pyi +473 -576
- bpy/ops/curves/__init__.pyi +247 -302
- bpy/ops/cycles/__init__.pyi +28 -34
- bpy/ops/dpaint/__init__.pyi +34 -44
- bpy/ops/ed/__init__.pyi +126 -150
- bpy/ops/export_anim/__init__.pyi +22 -24
- bpy/ops/export_scene/__init__.pyi +302 -336
- bpy/ops/file/__init__.pyi +352 -432
- bpy/ops/fluid/__init__.pyi +90 -118
- bpy/ops/font/__init__.pyi +258 -304
- bpy/ops/geometry/__init__.pyi +100 -120
- bpy/ops/gizmogroup/__init__.pyi +22 -26
- bpy/ops/gpencil/__init__.pyi +1469 -1778
- bpy/ops/graph/__init__.pyi +644 -776
- bpy/ops/grease_pencil/__init__.pyi +597 -748
- bpy/ops/image/__init__.pyi +648 -744
- bpy/ops/import_anim/__init__.pyi +30 -32
- bpy/ops/import_curve/__init__.pyi +10 -12
- bpy/ops/import_scene/__init__.pyi +88 -96
- bpy/ops/info/__init__.pyi +60 -74
- bpy/ops/lattice/__init__.pyi +64 -80
- bpy/ops/marker/__init__.pyi +108 -130
- bpy/ops/mask/__init__.pyi +322 -402
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -86
- bpy/ops/mesh/__init__.pyi +1986 -2322
- bpy/ops/nla/__init__.pyi +333 -411
- bpy/ops/node/__init__.pyi +886 -1100
- bpy/ops/object/__init__.pyi +2585 -3078
- bpy/ops/outliner/__init__.pyi +498 -636
- bpy/ops/paint/__init__.pyi +565 -680
- bpy/ops/paintcurve/__init__.pyi +64 -80
- bpy/ops/palette/__init__.pyi +50 -64
- bpy/ops/particle/__init__.pyi +267 -340
- bpy/ops/pose/__init__.pyi +336 -414
- bpy/ops/poselib/__init__.pyi +72 -90
- bpy/ops/preferences/__init__.pyi +386 -463
- bpy/ops/ptcache/__init__.pyi +46 -60
- bpy/ops/render/__init__.pyi +130 -154
- bpy/ops/rigidbody/__init__.pyi +102 -128
- bpy/ops/scene/__init__.pyi +280 -358
- bpy/ops/screen/__init__.pyi +382 -460
- bpy/ops/script/__init__.pyi +24 -30
- bpy/ops/sculpt/__init__.pyi +458 -532
- bpy/ops/sculpt_curves/__init__.pyi +41 -50
- bpy/ops/sequencer/__init__.pyi +1066 -1244
- bpy/ops/sound/__init__.pyi +216 -230
- bpy/ops/spreadsheet/__init__.pyi +30 -38
- bpy/ops/surface/__init__.pyi +108 -120
- bpy/ops/text/__init__.pyi +390 -476
- bpy/ops/text_editor/__init__.pyi +12 -14
- bpy/ops/texture/__init__.pyi +26 -34
- bpy/ops/transform/__init__.pyi +792 -878
- bpy/ops/ui/__init__.pyi +228 -294
- bpy/ops/uilist/__init__.pyi +32 -38
- bpy/ops/uv/__init__.pyi +602 -704
- bpy/ops/view2d/__init__.pyi +156 -184
- bpy/ops/view3d/__init__.pyi +582 -718
- bpy/ops/wm/__init__.pyi +2683 -2928
- bpy/ops/workspace/__init__.pyi +46 -60
- bpy/ops/world/__init__.pyi +12 -16
- bpy/path/__init__.pyi +179 -75
- bpy/props/__init__.pyi +261 -263
- bpy/types/__init__.pyi +17058 -26311
- bpy/utils/__init__.pyi +247 -179
- bpy/utils/previews/__init__.pyi +58 -28
- bpy/utils/units/__init__.pyi +20 -20
- bpy_extras/anim_utils/__init__.pyi +68 -29
- bpy_extras/asset_utils/__init__.pyi +0 -10
- bpy_extras/bmesh_utils/__init__.pyi +9 -6
- bpy_extras/extensions/junction_module/__init__.pyi +6 -8
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/image_utils/__init__.pyi +44 -11
- bpy_extras/io_utils/__init__.pyi +116 -41
- bpy_extras/keyconfig_utils/__init__.pyi +4 -11
- bpy_extras/mesh_utils/__init__.pyi +71 -19
- bpy_extras/node_shader_utils/__init__.pyi +52 -288
- bpy_extras/node_utils/__init__.pyi +10 -10
- bpy_extras/object_utils/__init__.pyi +71 -14
- bpy_extras/view3d_utils/__init__.pyi +80 -10
- bpy_extras/wm_utils/progress_report/__init__.pyi +15 -38
- bpy_restrict_state/__init__.pyi +1 -14
- bpy_types/__init__.pyi +4203 -1605
- console_python/__init__.pyi +12 -37
- console_shell/__init__.pyi +5 -24
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/METADATA +1 -1
- fake_bpy_module-20240518.dist-info/RECORD +353 -0
- freestyle/chainingiterators/__init__.pyi +14 -44
- freestyle/functions/__init__.pyi +7 -33
- freestyle/predicates/__init__.pyi +44 -217
- freestyle/shaders/__init__.pyi +2 -12
- freestyle/types/__init__.pyi +84 -96
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +6 -18
- gpu/matrix/__init__.pyi +6 -8
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +12 -12
- gpu_extras/presets/__init__.pyi +2 -5
- graphviz_export/__init__.pyi +4 -9
- idprop/types/__init__.pyi +8 -35
- imbuf/__init__.pyi +4 -4
- imbuf/types/__init__.pyi +0 -2
- keyingsets_builtins/__init__.pyi +2692 -997
- keyingsets_utils/__init__.pyi +14 -69
- mathutils/__init__.pyi +194 -238
- mathutils/bvhtree/__init__.pyi +4 -6
- mathutils/geometry/__init__.pyi +153 -155
- mathutils/kdtree/__init__.pyi +8 -12
- mathutils/noise/__init__.pyi +26 -26
- nodeitems_builtins/__init__.pyi +5 -30
- nodeitems_utils/__init__.pyi +8 -45
- rna_info/__init__.pyi +39 -215
- rna_keymap_ui/__init__.pyi +6 -29
- rna_prop_ui/__init__.pyi +24 -62
- rna_xml/__init__.pyi +16 -39
- sys_info/__init__.pyi +1 -4
- _bpy_internal/freedesktop/py.typed +0 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_console_utils/autocomplete/py.typed +0 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/bmesh/py.typed +0 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/py.typed +0 -0
- bl_operators/world/py.typed +0 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/anim/py.typed +0 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/temp_anim_layers/py.typed +0 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/py.typed +0 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/py.typed +0 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/py.typed +0 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/bl_pkg/py.typed +0 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/py.typed +0 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/py.typed +0 -0
- bpy/props/py.typed +0 -0
- bpy/types/py.typed +0 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/py.typed +0 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/extensions/py.typed +0 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_extras/wm_utils/py.typed +0 -0
- fake_bpy_module-20240516.dist-info/RECORD +0 -618
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/py.typed +0 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/py.typed +0 -0
- gpu/select/py.typed +0 -0
- gpu/shader/py.typed +0 -0
- gpu/state/py.typed +0 -0
- gpu/texture/py.typed +0 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/py.typed +0 -0
- idprop/types/py.typed +0 -0
- imbuf/types/py.typed +0 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/py.typed +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/top_level.txt +0 -0
mathutils/bvhtree/__init__.pyi
CHANGED
|
@@ -11,8 +11,6 @@ import mathutils
|
|
|
11
11
|
GenericType = typing.TypeVar("GenericType")
|
|
12
12
|
|
|
13
13
|
class BVHTree:
|
|
14
|
-
""" """
|
|
15
|
-
|
|
16
14
|
@classmethod
|
|
17
15
|
def FromBMesh(cls, bmesh: bmesh.types.BMesh, epsilon: float = 0.0):
|
|
18
16
|
"""BVH tree based on `BMesh` data.
|
|
@@ -102,16 +100,16 @@ class BVHTree:
|
|
|
102
100
|
|
|
103
101
|
def ray_cast(
|
|
104
102
|
self,
|
|
105
|
-
origin: typing.
|
|
106
|
-
direction: typing.
|
|
103
|
+
origin: typing.Sequence[float] | mathutils.Vector,
|
|
104
|
+
direction: typing.Sequence[float] | mathutils.Vector,
|
|
107
105
|
distance: float = None,
|
|
108
106
|
) -> tuple:
|
|
109
107
|
"""Cast a ray onto the mesh.
|
|
110
108
|
|
|
111
109
|
:param origin: Start location of the ray in object space.
|
|
112
|
-
:type origin: typing.
|
|
110
|
+
:type origin: typing.Sequence[float] | mathutils.Vector
|
|
113
111
|
:param direction: Direction of the ray in object space.
|
|
114
|
-
:type direction: typing.
|
|
112
|
+
:type direction: typing.Sequence[float] | mathutils.Vector
|
|
115
113
|
:param distance: Maximum distance threshold.
|
|
116
114
|
:type distance: float
|
|
117
115
|
:return: Returns a tuple
|
mathutils/geometry/__init__.pyi
CHANGED
|
@@ -9,48 +9,48 @@ import mathutils
|
|
|
9
9
|
GenericType = typing.TypeVar("GenericType")
|
|
10
10
|
|
|
11
11
|
def area_tri(
|
|
12
|
-
v1: typing.
|
|
13
|
-
v2: typing.
|
|
14
|
-
v3: typing.
|
|
12
|
+
v1: typing.Sequence[float] | mathutils.Vector,
|
|
13
|
+
v2: typing.Sequence[float] | mathutils.Vector,
|
|
14
|
+
v3: typing.Sequence[float] | mathutils.Vector,
|
|
15
15
|
) -> float:
|
|
16
16
|
"""Returns the area size of the 2D or 3D triangle defined.
|
|
17
17
|
|
|
18
18
|
:param v1: Point1
|
|
19
|
-
:type v1: typing.
|
|
19
|
+
:type v1: typing.Sequence[float] | mathutils.Vector
|
|
20
20
|
:param v2: Point2
|
|
21
|
-
:type v2: typing.
|
|
21
|
+
:type v2: typing.Sequence[float] | mathutils.Vector
|
|
22
22
|
:param v3: Point3
|
|
23
|
-
:type v3: typing.
|
|
23
|
+
:type v3: typing.Sequence[float] | mathutils.Vector
|
|
24
24
|
:rtype: float
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
...
|
|
28
28
|
|
|
29
29
|
def barycentric_transform(
|
|
30
|
-
point: typing.
|
|
31
|
-
tri_a1: typing.
|
|
32
|
-
tri_a2: typing.
|
|
33
|
-
tri_a3: typing.
|
|
34
|
-
tri_b1: typing.
|
|
35
|
-
tri_b2: typing.
|
|
36
|
-
tri_b3: typing.
|
|
30
|
+
point: typing.Sequence[float] | mathutils.Vector,
|
|
31
|
+
tri_a1: typing.Sequence[float] | mathutils.Vector,
|
|
32
|
+
tri_a2: typing.Sequence[float] | mathutils.Vector,
|
|
33
|
+
tri_a3: typing.Sequence[float] | mathutils.Vector,
|
|
34
|
+
tri_b1: typing.Sequence[float] | mathutils.Vector,
|
|
35
|
+
tri_b2: typing.Sequence[float] | mathutils.Vector,
|
|
36
|
+
tri_b3: typing.Sequence[float] | mathutils.Vector,
|
|
37
37
|
):
|
|
38
38
|
"""Return a transformed point, the transformation is defined by 2 triangles.
|
|
39
39
|
|
|
40
40
|
:param point: The point to transform.
|
|
41
|
-
:type point: typing.
|
|
41
|
+
:type point: typing.Sequence[float] | mathutils.Vector
|
|
42
42
|
:param tri_a1: source triangle vertex.
|
|
43
|
-
:type tri_a1: typing.
|
|
43
|
+
:type tri_a1: typing.Sequence[float] | mathutils.Vector
|
|
44
44
|
:param tri_a2: source triangle vertex.
|
|
45
|
-
:type tri_a2: typing.
|
|
45
|
+
:type tri_a2: typing.Sequence[float] | mathutils.Vector
|
|
46
46
|
:param tri_a3: source triangle vertex.
|
|
47
|
-
:type tri_a3: typing.
|
|
47
|
+
:type tri_a3: typing.Sequence[float] | mathutils.Vector
|
|
48
48
|
:param tri_b1: target triangle vertex.
|
|
49
|
-
:type tri_b1: typing.
|
|
49
|
+
:type tri_b1: typing.Sequence[float] | mathutils.Vector
|
|
50
50
|
:param tri_b2: target triangle vertex.
|
|
51
|
-
:type tri_b2: typing.
|
|
51
|
+
:type tri_b2: typing.Sequence[float] | mathutils.Vector
|
|
52
52
|
:param tri_b3: target triangle vertex.
|
|
53
|
-
:type tri_b3: typing.
|
|
53
|
+
:type tri_b3: typing.Sequence[float] | mathutils.Vector
|
|
54
54
|
:return: The transformed point
|
|
55
55
|
"""
|
|
56
56
|
|
|
@@ -67,46 +67,46 @@ def box_fit_2d(points: list) -> float:
|
|
|
67
67
|
|
|
68
68
|
...
|
|
69
69
|
|
|
70
|
-
def box_pack_2d(boxes: list) ->
|
|
70
|
+
def box_pack_2d(boxes: list) -> tuple:
|
|
71
71
|
"""Returns a tuple with the width and height of the packed bounding box.
|
|
72
72
|
|
|
73
73
|
:param boxes: list of boxes, each box is a list where the first 4 items are [x, y, width, height, ...] other items are ignored.
|
|
74
74
|
:type boxes: list
|
|
75
75
|
:return: the width and height of the packed bounding box
|
|
76
|
-
:rtype:
|
|
76
|
+
:rtype: tuple
|
|
77
77
|
"""
|
|
78
78
|
|
|
79
79
|
...
|
|
80
80
|
|
|
81
81
|
def closest_point_on_tri(
|
|
82
|
-
pt: typing.
|
|
83
|
-
tri_p1: typing.
|
|
84
|
-
tri_p2: typing.
|
|
85
|
-
tri_p3: typing.
|
|
82
|
+
pt: typing.Sequence[float] | mathutils.Vector,
|
|
83
|
+
tri_p1: typing.Sequence[float] | mathutils.Vector,
|
|
84
|
+
tri_p2: typing.Sequence[float] | mathutils.Vector,
|
|
85
|
+
tri_p3: typing.Sequence[float] | mathutils.Vector,
|
|
86
86
|
) -> mathutils.Vector:
|
|
87
87
|
"""Takes 4 vectors: one is the point and the next 3 define the triangle.
|
|
88
88
|
|
|
89
89
|
:param pt: Point
|
|
90
|
-
:type pt: typing.
|
|
90
|
+
:type pt: typing.Sequence[float] | mathutils.Vector
|
|
91
91
|
:param tri_p1: First point of the triangle
|
|
92
|
-
:type tri_p1: typing.
|
|
92
|
+
:type tri_p1: typing.Sequence[float] | mathutils.Vector
|
|
93
93
|
:param tri_p2: Second point of the triangle
|
|
94
|
-
:type tri_p2: typing.
|
|
94
|
+
:type tri_p2: typing.Sequence[float] | mathutils.Vector
|
|
95
95
|
:param tri_p3: Third point of the triangle
|
|
96
|
-
:type tri_p3: typing.
|
|
96
|
+
:type tri_p3: typing.Sequence[float] | mathutils.Vector
|
|
97
97
|
:return: The closest point of the triangle.
|
|
98
98
|
:rtype: mathutils.Vector
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
101
|
...
|
|
102
102
|
|
|
103
|
-
def convex_hull_2d(points: list) ->
|
|
103
|
+
def convex_hull_2d(points: list) -> list[int]:
|
|
104
104
|
"""Returns a list of indices into the list given
|
|
105
105
|
|
|
106
106
|
:param points: list of 2d points.
|
|
107
107
|
:type points: list
|
|
108
108
|
:return: a list of indices
|
|
109
|
-
:rtype:
|
|
109
|
+
:rtype: list[int]
|
|
110
110
|
"""
|
|
111
111
|
|
|
112
112
|
...
|
|
@@ -143,40 +143,40 @@ def delaunay_2d_cdt(vert_coords, edges, faces, output_type, epsilon, need_ids=Tr
|
|
|
143
143
|
...
|
|
144
144
|
|
|
145
145
|
def distance_point_to_plane(
|
|
146
|
-
pt: typing.
|
|
147
|
-
plane_co: typing.
|
|
148
|
-
plane_no: typing.
|
|
146
|
+
pt: typing.Sequence[float] | mathutils.Vector,
|
|
147
|
+
plane_co: typing.Sequence[float] | mathutils.Vector,
|
|
148
|
+
plane_no: typing.Sequence[float] | mathutils.Vector,
|
|
149
149
|
) -> float:
|
|
150
150
|
"""Returns the signed distance between a point and a plane (negative when below the normal).
|
|
151
151
|
|
|
152
152
|
:param pt: Point
|
|
153
|
-
:type pt: typing.
|
|
153
|
+
:type pt: typing.Sequence[float] | mathutils.Vector
|
|
154
154
|
:param plane_co: A point on the plane
|
|
155
|
-
:type plane_co: typing.
|
|
155
|
+
:type plane_co: typing.Sequence[float] | mathutils.Vector
|
|
156
156
|
:param plane_no: The direction the plane is facing
|
|
157
|
-
:type plane_no: typing.
|
|
157
|
+
:type plane_no: typing.Sequence[float] | mathutils.Vector
|
|
158
158
|
:rtype: float
|
|
159
159
|
"""
|
|
160
160
|
|
|
161
161
|
...
|
|
162
162
|
|
|
163
163
|
def interpolate_bezier(
|
|
164
|
-
knot1: typing.
|
|
165
|
-
handle1: typing.
|
|
166
|
-
handle2: typing.
|
|
167
|
-
knot2: typing.
|
|
164
|
+
knot1: typing.Sequence[float] | mathutils.Vector,
|
|
165
|
+
handle1: typing.Sequence[float] | mathutils.Vector,
|
|
166
|
+
handle2: typing.Sequence[float] | mathutils.Vector,
|
|
167
|
+
knot2: typing.Sequence[float] | mathutils.Vector,
|
|
168
168
|
resolution: int,
|
|
169
169
|
):
|
|
170
170
|
"""Interpolate a bezier spline segment.
|
|
171
171
|
|
|
172
172
|
:param knot1: First bezier spline point.
|
|
173
|
-
:type knot1: typing.
|
|
173
|
+
:type knot1: typing.Sequence[float] | mathutils.Vector
|
|
174
174
|
:param handle1: First bezier spline handle.
|
|
175
|
-
:type handle1: typing.
|
|
175
|
+
:type handle1: typing.Sequence[float] | mathutils.Vector
|
|
176
176
|
:param handle2: Second bezier spline handle.
|
|
177
|
-
:type handle2: typing.
|
|
177
|
+
:type handle2: typing.Sequence[float] | mathutils.Vector
|
|
178
178
|
:param knot2: Second bezier spline point.
|
|
179
|
-
:type knot2: typing.
|
|
179
|
+
:type knot2: typing.Sequence[float] | mathutils.Vector
|
|
180
180
|
:param resolution: Number of points to return.
|
|
181
181
|
:type resolution: int
|
|
182
182
|
:return: The interpolated points
|
|
@@ -185,42 +185,42 @@ def interpolate_bezier(
|
|
|
185
185
|
...
|
|
186
186
|
|
|
187
187
|
def intersect_line_line(
|
|
188
|
-
v1: typing.
|
|
189
|
-
v2: typing.
|
|
190
|
-
v3: typing.
|
|
191
|
-
v4: typing.
|
|
192
|
-
) ->
|
|
188
|
+
v1: typing.Sequence[float] | mathutils.Vector,
|
|
189
|
+
v2: typing.Sequence[float] | mathutils.Vector,
|
|
190
|
+
v3: typing.Sequence[float] | mathutils.Vector,
|
|
191
|
+
v4: typing.Sequence[float] | mathutils.Vector,
|
|
192
|
+
) -> tuple[mathutils.Vector, ...]:
|
|
193
193
|
"""Returns a tuple with the points on each line respectively closest to the other.
|
|
194
194
|
|
|
195
195
|
:param v1: First point of the first line
|
|
196
|
-
:type v1: typing.
|
|
196
|
+
:type v1: typing.Sequence[float] | mathutils.Vector
|
|
197
197
|
:param v2: Second point of the first line
|
|
198
|
-
:type v2: typing.
|
|
198
|
+
:type v2: typing.Sequence[float] | mathutils.Vector
|
|
199
199
|
:param v3: First point of the second line
|
|
200
|
-
:type v3: typing.
|
|
200
|
+
:type v3: typing.Sequence[float] | mathutils.Vector
|
|
201
201
|
:param v4: Second point of the second line
|
|
202
|
-
:type v4: typing.
|
|
203
|
-
:rtype:
|
|
202
|
+
:type v4: typing.Sequence[float] | mathutils.Vector
|
|
203
|
+
:rtype: tuple[mathutils.Vector, ...]
|
|
204
204
|
"""
|
|
205
205
|
|
|
206
206
|
...
|
|
207
207
|
|
|
208
208
|
def intersect_line_line_2d(
|
|
209
|
-
lineA_p1: typing.
|
|
210
|
-
lineA_p2: typing.
|
|
211
|
-
lineB_p1: typing.
|
|
212
|
-
lineB_p2: typing.
|
|
209
|
+
lineA_p1: typing.Sequence[float] | mathutils.Vector,
|
|
210
|
+
lineA_p2: typing.Sequence[float] | mathutils.Vector,
|
|
211
|
+
lineB_p1: typing.Sequence[float] | mathutils.Vector,
|
|
212
|
+
lineB_p2: typing.Sequence[float] | mathutils.Vector,
|
|
213
213
|
) -> mathutils.Vector:
|
|
214
214
|
"""Takes 2 segments (defined by 4 vectors) and returns a vector for their point of intersection or None.
|
|
215
215
|
|
|
216
216
|
:param lineA_p1: First point of the first line
|
|
217
|
-
:type lineA_p1: typing.
|
|
217
|
+
:type lineA_p1: typing.Sequence[float] | mathutils.Vector
|
|
218
218
|
:param lineA_p2: Second point of the first line
|
|
219
|
-
:type lineA_p2: typing.
|
|
219
|
+
:type lineA_p2: typing.Sequence[float] | mathutils.Vector
|
|
220
220
|
:param lineB_p1: First point of the second line
|
|
221
|
-
:type lineB_p1: typing.
|
|
221
|
+
:type lineB_p1: typing.Sequence[float] | mathutils.Vector
|
|
222
222
|
:param lineB_p2: Second point of the second line
|
|
223
|
-
:type lineB_p2: typing.
|
|
223
|
+
:type lineB_p2: typing.Sequence[float] | mathutils.Vector
|
|
224
224
|
:return: The point of intersection or None when not found
|
|
225
225
|
:rtype: mathutils.Vector
|
|
226
226
|
"""
|
|
@@ -228,23 +228,23 @@ def intersect_line_line_2d(
|
|
|
228
228
|
...
|
|
229
229
|
|
|
230
230
|
def intersect_line_plane(
|
|
231
|
-
line_a: typing.
|
|
232
|
-
line_b: typing.
|
|
233
|
-
plane_co: typing.
|
|
234
|
-
plane_no: typing.
|
|
231
|
+
line_a: typing.Sequence[float] | mathutils.Vector,
|
|
232
|
+
line_b: typing.Sequence[float] | mathutils.Vector,
|
|
233
|
+
plane_co: typing.Sequence[float] | mathutils.Vector,
|
|
234
|
+
plane_no: typing.Sequence[float] | mathutils.Vector,
|
|
235
235
|
no_flip=False,
|
|
236
236
|
) -> mathutils.Vector:
|
|
237
237
|
"""Calculate the intersection between a line (as 2 vectors) and a plane.
|
|
238
238
|
Returns a vector for the intersection or None.
|
|
239
239
|
|
|
240
240
|
:param line_a: First point of the first line
|
|
241
|
-
:type line_a: typing.
|
|
241
|
+
:type line_a: typing.Sequence[float] | mathutils.Vector
|
|
242
242
|
:param line_b: Second point of the first line
|
|
243
|
-
:type line_b: typing.
|
|
243
|
+
:type line_b: typing.Sequence[float] | mathutils.Vector
|
|
244
244
|
:param plane_co: A point on the plane
|
|
245
|
-
:type plane_co: typing.
|
|
245
|
+
:type plane_co: typing.Sequence[float] | mathutils.Vector
|
|
246
246
|
:param plane_no: The direction the plane is facing
|
|
247
|
-
:type plane_no: typing.
|
|
247
|
+
:type plane_no: typing.Sequence[float] | mathutils.Vector
|
|
248
248
|
:return: The point of intersection or None when not found
|
|
249
249
|
:rtype: mathutils.Vector
|
|
250
250
|
"""
|
|
@@ -252,9 +252,9 @@ def intersect_line_plane(
|
|
|
252
252
|
...
|
|
253
253
|
|
|
254
254
|
def intersect_line_sphere(
|
|
255
|
-
line_a: typing.
|
|
256
|
-
line_b: typing.
|
|
257
|
-
sphere_co: typing.
|
|
255
|
+
line_a: typing.Sequence[float] | mathutils.Vector,
|
|
256
|
+
line_b: typing.Sequence[float] | mathutils.Vector,
|
|
257
|
+
sphere_co: typing.Sequence[float] | mathutils.Vector,
|
|
258
258
|
sphere_radius,
|
|
259
259
|
clip=True,
|
|
260
260
|
):
|
|
@@ -262,11 +262,11 @@ def intersect_line_sphere(
|
|
|
262
262
|
returns the intersection
|
|
263
263
|
|
|
264
264
|
:param line_a: First point of the line
|
|
265
|
-
:type line_a: typing.
|
|
265
|
+
:type line_a: typing.Sequence[float] | mathutils.Vector
|
|
266
266
|
:param line_b: Second point of the line
|
|
267
|
-
:type line_b: typing.
|
|
267
|
+
:type line_b: typing.Sequence[float] | mathutils.Vector
|
|
268
268
|
:param sphere_co: The center of the sphere
|
|
269
|
-
:type sphere_co: typing.
|
|
269
|
+
:type sphere_co: typing.Sequence[float] | mathutils.Vector
|
|
270
270
|
:param sphere_radius: Radius of the sphere
|
|
271
271
|
:return: The intersection points as a pair of vectors or None when there is no intersection
|
|
272
272
|
"""
|
|
@@ -274,9 +274,9 @@ def intersect_line_sphere(
|
|
|
274
274
|
...
|
|
275
275
|
|
|
276
276
|
def intersect_line_sphere_2d(
|
|
277
|
-
line_a: typing.
|
|
278
|
-
line_b: typing.
|
|
279
|
-
sphere_co: typing.
|
|
277
|
+
line_a: typing.Sequence[float] | mathutils.Vector,
|
|
278
|
+
line_b: typing.Sequence[float] | mathutils.Vector,
|
|
279
|
+
sphere_co: typing.Sequence[float] | mathutils.Vector,
|
|
280
280
|
sphere_radius,
|
|
281
281
|
clip=True,
|
|
282
282
|
):
|
|
@@ -284,11 +284,11 @@ def intersect_line_sphere_2d(
|
|
|
284
284
|
returns the intersection
|
|
285
285
|
|
|
286
286
|
:param line_a: First point of the line
|
|
287
|
-
:type line_a: typing.
|
|
287
|
+
:type line_a: typing.Sequence[float] | mathutils.Vector
|
|
288
288
|
:param line_b: Second point of the line
|
|
289
|
-
:type line_b: typing.
|
|
289
|
+
:type line_b: typing.Sequence[float] | mathutils.Vector
|
|
290
290
|
:param sphere_co: The center of the sphere
|
|
291
|
-
:type sphere_co: typing.
|
|
291
|
+
:type sphere_co: typing.Sequence[float] | mathutils.Vector
|
|
292
292
|
:param sphere_radius: Radius of the sphere
|
|
293
293
|
:return: The intersection points as a pair of vectors or None when there is no intersection
|
|
294
294
|
"""
|
|
@@ -296,89 +296,87 @@ def intersect_line_sphere_2d(
|
|
|
296
296
|
...
|
|
297
297
|
|
|
298
298
|
def intersect_plane_plane(
|
|
299
|
-
plane_a_co: typing.
|
|
300
|
-
plane_a_no: typing.
|
|
301
|
-
plane_b_co: typing.
|
|
302
|
-
plane_b_no: typing.
|
|
299
|
+
plane_a_co: typing.Sequence[float] | mathutils.Vector,
|
|
300
|
+
plane_a_no: typing.Sequence[float] | mathutils.Vector,
|
|
301
|
+
plane_b_co: typing.Sequence[float] | mathutils.Vector,
|
|
302
|
+
plane_b_no: typing.Sequence[float] | mathutils.Vector,
|
|
303
303
|
):
|
|
304
304
|
"""Return the intersection between two planes
|
|
305
305
|
|
|
306
306
|
:param plane_a_co: Point on the first plane
|
|
307
|
-
:type plane_a_co: typing.
|
|
307
|
+
:type plane_a_co: typing.Sequence[float] | mathutils.Vector
|
|
308
308
|
:param plane_a_no: Normal of the first plane
|
|
309
|
-
:type plane_a_no: typing.
|
|
309
|
+
:type plane_a_no: typing.Sequence[float] | mathutils.Vector
|
|
310
310
|
:param plane_b_co: Point on the second plane
|
|
311
|
-
:type plane_b_co: typing.
|
|
311
|
+
:type plane_b_co: typing.Sequence[float] | mathutils.Vector
|
|
312
312
|
:param plane_b_no: Normal of the second plane
|
|
313
|
-
:type plane_b_no: typing.
|
|
313
|
+
:type plane_b_no: typing.Sequence[float] | mathutils.Vector
|
|
314
314
|
:return: The line of the intersection represented as a point and a vector
|
|
315
315
|
"""
|
|
316
316
|
|
|
317
317
|
...
|
|
318
318
|
|
|
319
319
|
def intersect_point_line(
|
|
320
|
-
pt: typing.
|
|
321
|
-
line_p1: typing.
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
mathutils.Vector,
|
|
326
|
-
],
|
|
320
|
+
pt: typing.Sequence[float] | mathutils.Vector,
|
|
321
|
+
line_p1: typing.Sequence[float]
|
|
322
|
+
| mathutils.Vector
|
|
323
|
+
| typing.Sequence[float]
|
|
324
|
+
| mathutils.Vector,
|
|
327
325
|
line_p2,
|
|
328
|
-
) ->
|
|
326
|
+
) -> tuple[mathutils.Vector]:
|
|
329
327
|
"""Takes a point and a line and returns a tuple with the closest point on the line and its distance from the first point of the line as a percentage of the length of the line.
|
|
330
328
|
|
|
331
329
|
:param pt: Point
|
|
332
|
-
:type pt: typing.
|
|
330
|
+
:type pt: typing.Sequence[float] | mathutils.Vector
|
|
333
331
|
:param line_p1: First point of the lineSecond point of the line
|
|
334
|
-
:type line_p1: typing.
|
|
335
|
-
:rtype:
|
|
332
|
+
:type line_p1: typing.Sequence[float] | mathutils.Vector | typing.Sequence[float] | mathutils.Vector
|
|
333
|
+
:rtype: tuple[mathutils.Vector]
|
|
336
334
|
"""
|
|
337
335
|
|
|
338
336
|
...
|
|
339
337
|
|
|
340
338
|
def intersect_point_quad_2d(
|
|
341
|
-
pt: typing.
|
|
342
|
-
quad_p1: typing.
|
|
343
|
-
quad_p2: typing.
|
|
344
|
-
quad_p3: typing.
|
|
345
|
-
quad_p4: typing.
|
|
339
|
+
pt: typing.Sequence[float] | mathutils.Vector,
|
|
340
|
+
quad_p1: typing.Sequence[float] | mathutils.Vector,
|
|
341
|
+
quad_p2: typing.Sequence[float] | mathutils.Vector,
|
|
342
|
+
quad_p3: typing.Sequence[float] | mathutils.Vector,
|
|
343
|
+
quad_p4: typing.Sequence[float] | mathutils.Vector,
|
|
346
344
|
) -> int:
|
|
347
345
|
"""Takes 5 vectors (using only the x and y coordinates): one is the point and the next 4 define the quad,
|
|
348
346
|
only the x and y are used from the vectors. Returns 1 if the point is within the quad, otherwise 0.
|
|
349
347
|
Works only with convex quads without singular edges.
|
|
350
348
|
|
|
351
349
|
:param pt: Point
|
|
352
|
-
:type pt: typing.
|
|
350
|
+
:type pt: typing.Sequence[float] | mathutils.Vector
|
|
353
351
|
:param quad_p1: First point of the quad
|
|
354
|
-
:type quad_p1: typing.
|
|
352
|
+
:type quad_p1: typing.Sequence[float] | mathutils.Vector
|
|
355
353
|
:param quad_p2: Second point of the quad
|
|
356
|
-
:type quad_p2: typing.
|
|
354
|
+
:type quad_p2: typing.Sequence[float] | mathutils.Vector
|
|
357
355
|
:param quad_p3: Third point of the quad
|
|
358
|
-
:type quad_p3: typing.
|
|
356
|
+
:type quad_p3: typing.Sequence[float] | mathutils.Vector
|
|
359
357
|
:param quad_p4: Fourth point of the quad
|
|
360
|
-
:type quad_p4: typing.
|
|
358
|
+
:type quad_p4: typing.Sequence[float] | mathutils.Vector
|
|
361
359
|
:rtype: int
|
|
362
360
|
"""
|
|
363
361
|
|
|
364
362
|
...
|
|
365
363
|
|
|
366
364
|
def intersect_point_tri(
|
|
367
|
-
pt: typing.
|
|
368
|
-
tri_p1: typing.
|
|
369
|
-
tri_p2: typing.
|
|
370
|
-
tri_p3: typing.
|
|
365
|
+
pt: typing.Sequence[float] | mathutils.Vector,
|
|
366
|
+
tri_p1: typing.Sequence[float] | mathutils.Vector,
|
|
367
|
+
tri_p2: typing.Sequence[float] | mathutils.Vector,
|
|
368
|
+
tri_p3: typing.Sequence[float] | mathutils.Vector,
|
|
371
369
|
) -> mathutils.Vector:
|
|
372
370
|
"""Takes 4 vectors: one is the point and the next 3 define the triangle. Projects the point onto the triangle plane and checks if it is within the triangle.
|
|
373
371
|
|
|
374
372
|
:param pt: Point
|
|
375
|
-
:type pt: typing.
|
|
373
|
+
:type pt: typing.Sequence[float] | mathutils.Vector
|
|
376
374
|
:param tri_p1: First point of the triangle
|
|
377
|
-
:type tri_p1: typing.
|
|
375
|
+
:type tri_p1: typing.Sequence[float] | mathutils.Vector
|
|
378
376
|
:param tri_p2: Second point of the triangle
|
|
379
|
-
:type tri_p2: typing.
|
|
377
|
+
:type tri_p2: typing.Sequence[float] | mathutils.Vector
|
|
380
378
|
:param tri_p3: Third point of the triangle
|
|
381
|
-
:type tri_p3: typing.
|
|
379
|
+
:type tri_p3: typing.Sequence[float] | mathutils.Vector
|
|
382
380
|
:return: Point on the triangles plane or None if its outside the triangle
|
|
383
381
|
:rtype: mathutils.Vector
|
|
384
382
|
"""
|
|
@@ -386,46 +384,46 @@ def intersect_point_tri(
|
|
|
386
384
|
...
|
|
387
385
|
|
|
388
386
|
def intersect_point_tri_2d(
|
|
389
|
-
pt: typing.
|
|
390
|
-
tri_p1: typing.
|
|
391
|
-
tri_p2: typing.
|
|
392
|
-
tri_p3: typing.
|
|
387
|
+
pt: typing.Sequence[float] | mathutils.Vector,
|
|
388
|
+
tri_p1: typing.Sequence[float] | mathutils.Vector,
|
|
389
|
+
tri_p2: typing.Sequence[float] | mathutils.Vector,
|
|
390
|
+
tri_p3: typing.Sequence[float] | mathutils.Vector,
|
|
393
391
|
) -> int:
|
|
394
392
|
"""Takes 4 vectors (using only the x and y coordinates): one is the point and the next 3 define the triangle. Returns 1 if the point is within the triangle, otherwise 0.
|
|
395
393
|
|
|
396
394
|
:param pt: Point
|
|
397
|
-
:type pt: typing.
|
|
395
|
+
:type pt: typing.Sequence[float] | mathutils.Vector
|
|
398
396
|
:param tri_p1: First point of the triangle
|
|
399
|
-
:type tri_p1: typing.
|
|
397
|
+
:type tri_p1: typing.Sequence[float] | mathutils.Vector
|
|
400
398
|
:param tri_p2: Second point of the triangle
|
|
401
|
-
:type tri_p2: typing.
|
|
399
|
+
:type tri_p2: typing.Sequence[float] | mathutils.Vector
|
|
402
400
|
:param tri_p3: Third point of the triangle
|
|
403
|
-
:type tri_p3: typing.
|
|
401
|
+
:type tri_p3: typing.Sequence[float] | mathutils.Vector
|
|
404
402
|
:rtype: int
|
|
405
403
|
"""
|
|
406
404
|
|
|
407
405
|
...
|
|
408
406
|
|
|
409
407
|
def intersect_ray_tri(
|
|
410
|
-
v1: typing.
|
|
411
|
-
v2: typing.
|
|
412
|
-
v3: typing.
|
|
413
|
-
ray: typing.
|
|
414
|
-
orig: typing.
|
|
408
|
+
v1: typing.Sequence[float] | mathutils.Vector,
|
|
409
|
+
v2: typing.Sequence[float] | mathutils.Vector,
|
|
410
|
+
v3: typing.Sequence[float] | mathutils.Vector,
|
|
411
|
+
ray: typing.Sequence[float] | mathutils.Vector,
|
|
412
|
+
orig: typing.Sequence[float] | mathutils.Vector,
|
|
415
413
|
clip: bool = True,
|
|
416
414
|
) -> mathutils.Vector:
|
|
417
415
|
"""Returns the intersection between a ray and a triangle, if possible, returns None otherwise.
|
|
418
416
|
|
|
419
417
|
:param v1: Point1
|
|
420
|
-
:type v1: typing.
|
|
418
|
+
:type v1: typing.Sequence[float] | mathutils.Vector
|
|
421
419
|
:param v2: Point2
|
|
422
|
-
:type v2: typing.
|
|
420
|
+
:type v2: typing.Sequence[float] | mathutils.Vector
|
|
423
421
|
:param v3: Point3
|
|
424
|
-
:type v3: typing.
|
|
422
|
+
:type v3: typing.Sequence[float] | mathutils.Vector
|
|
425
423
|
:param ray: Direction of the projection
|
|
426
|
-
:type ray: typing.
|
|
424
|
+
:type ray: typing.Sequence[float] | mathutils.Vector
|
|
427
425
|
:param orig: Origin
|
|
428
|
-
:type orig: typing.
|
|
426
|
+
:type orig: typing.Sequence[float] | mathutils.Vector
|
|
429
427
|
:param clip: When False, don't restrict the intersection to the area of the triangle, use the infinite plane defined by the triangle.
|
|
430
428
|
:type clip: bool
|
|
431
429
|
:return: The point of intersection or None if no intersection is found
|
|
@@ -435,22 +433,22 @@ def intersect_ray_tri(
|
|
|
435
433
|
...
|
|
436
434
|
|
|
437
435
|
def intersect_sphere_sphere_2d(
|
|
438
|
-
p_a: typing.
|
|
436
|
+
p_a: typing.Sequence[float] | mathutils.Vector,
|
|
439
437
|
radius_a: float,
|
|
440
|
-
p_b: typing.
|
|
438
|
+
p_b: typing.Sequence[float] | mathutils.Vector,
|
|
441
439
|
radius_b: float,
|
|
442
|
-
) ->
|
|
440
|
+
) -> tuple[mathutils.Vector, ...]:
|
|
443
441
|
"""Returns 2 points on between intersecting circles.
|
|
444
442
|
|
|
445
443
|
:param p_a: Center of the first circle
|
|
446
|
-
:type p_a: typing.
|
|
444
|
+
:type p_a: typing.Sequence[float] | mathutils.Vector
|
|
447
445
|
:param radius_a: Radius of the first circle
|
|
448
446
|
:type radius_a: float
|
|
449
447
|
:param p_b: Center of the second circle
|
|
450
|
-
:type p_b: typing.
|
|
448
|
+
:type p_b: typing.Sequence[float] | mathutils.Vector
|
|
451
449
|
:param radius_b: Radius of the second circle
|
|
452
450
|
:type radius_b: float
|
|
453
|
-
:rtype:
|
|
451
|
+
:rtype: tuple[mathutils.Vector, ...]
|
|
454
452
|
"""
|
|
455
453
|
|
|
456
454
|
...
|
|
@@ -473,14 +471,14 @@ def normal(vectors) -> mathutils.Vector:
|
|
|
473
471
|
...
|
|
474
472
|
|
|
475
473
|
def points_in_planes(
|
|
476
|
-
planes:
|
|
474
|
+
planes: list[mathutils.Vector],
|
|
477
475
|
epsilon_coplanar: float = 0.0001,
|
|
478
476
|
epsilon_isect: float = 1e-06,
|
|
479
477
|
):
|
|
480
478
|
"""Returns a list of points inside all planes given and a list of index values for the planes used.
|
|
481
479
|
|
|
482
480
|
:param planes: List of planes (4D vectors).
|
|
483
|
-
:type planes:
|
|
481
|
+
:type planes: list[mathutils.Vector]
|
|
484
482
|
:param epsilon_coplanar: Epsilon value for interpreting plane pairs as co-plannar.
|
|
485
483
|
:type epsilon_coplanar: float
|
|
486
484
|
:param epsilon_isect: Epsilon value for intersection.
|
|
@@ -500,21 +498,21 @@ def tessellate_polygon(veclist_list) -> list:
|
|
|
500
498
|
...
|
|
501
499
|
|
|
502
500
|
def volume_tetrahedron(
|
|
503
|
-
v1: typing.
|
|
504
|
-
v2: typing.
|
|
505
|
-
v3: typing.
|
|
506
|
-
v4: typing.
|
|
501
|
+
v1: typing.Sequence[float] | mathutils.Vector,
|
|
502
|
+
v2: typing.Sequence[float] | mathutils.Vector,
|
|
503
|
+
v3: typing.Sequence[float] | mathutils.Vector,
|
|
504
|
+
v4: typing.Sequence[float] | mathutils.Vector,
|
|
507
505
|
) -> float:
|
|
508
506
|
"""Return the volume formed by a tetrahedron (points can be in any order).
|
|
509
507
|
|
|
510
508
|
:param v1: Point1
|
|
511
|
-
:type v1: typing.
|
|
509
|
+
:type v1: typing.Sequence[float] | mathutils.Vector
|
|
512
510
|
:param v2: Point2
|
|
513
|
-
:type v2: typing.
|
|
511
|
+
:type v2: typing.Sequence[float] | mathutils.Vector
|
|
514
512
|
:param v3: Point3
|
|
515
|
-
:type v3: typing.
|
|
513
|
+
:type v3: typing.Sequence[float] | mathutils.Vector
|
|
516
514
|
:param v4: Point4
|
|
517
|
-
:type v4: typing.
|
|
515
|
+
:type v4: typing.Sequence[float] | mathutils.Vector
|
|
518
516
|
:rtype: float
|
|
519
517
|
"""
|
|
520
518
|
|