fake-bpy-module 20251001__py3-none-any.whl → 20251002__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- bl_ui/generic_ui_list/__init__.pyi +2 -2
- bl_ui/properties_paint_common/__init__.pyi +0 -2
- bmesh/types/__init__.pyi +98 -225
- bpy/ops/node/__init__.pyi +48 -0
- bpy/ops/sequencer/__init__.pyi +2 -10
- bpy/ops/wm/__init__.pyi +107 -12
- bpy/stub_internal/rna_enums/__init__.pyi +3 -1
- bpy/types/__init__.pyi +1386 -897
- bpy_extras/anim_utils/__init__.pyi +1 -1
- {fake_bpy_module-20251001.dist-info → fake_bpy_module-20251002.dist-info}/METADATA +1 -1
- {fake_bpy_module-20251001.dist-info → fake_bpy_module-20251002.dist-info}/RECORD +17 -17
- freestyle/utils/__init__.pyi +1 -1
- gpu/types/__init__.pyi +95 -95
- mathutils/bvhtree/__init__.pyi +2 -3
- mathutils/geometry/__init__.pyi +22 -3
- {fake_bpy_module-20251001.dist-info → fake_bpy_module-20251002.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20251001.dist-info → fake_bpy_module-20251002.dist-info}/top_level.txt +0 -0
|
@@ -65,7 +65,7 @@ class KeyframesCo:
|
|
|
65
65
|
"""
|
|
66
66
|
|
|
67
67
|
def action_ensure_channelbag_for_slot(action, slot) -> None:
|
|
68
|
-
"""Ensure a layer and a keyframe strip exists, then ensure that
|
|
68
|
+
"""Ensure a layer and a keyframe strip exists, then ensure that strip has a channelbag for the slot."""
|
|
69
69
|
|
|
70
70
|
def action_get_channelbag_for_slot(action, slot) -> None:
|
|
71
71
|
"""Returns the first channelbag found for the slot.
|
|
@@ -111,7 +111,7 @@ bl_ui/__init__.pyi,sha256=bzjd8FHTafNzS5V6jK2sf7aIflWXIIAAOj2u3CG5Q8s,7004
|
|
|
111
111
|
bl_ui/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
112
112
|
bl_ui/anim/__init__.pyi,sha256=aUUQB5sqG7wizgoB77tVmFLfhOWMyuHcEUY06w1FW5k,938
|
|
113
113
|
bl_ui/asset_shelf/__init__.pyi,sha256=zy0z1qh-gQXQufHFrEggbXWlihKF9l2OihuhN-iS4NE,825
|
|
114
|
-
bl_ui/generic_ui_list/__init__.pyi,sha256=
|
|
114
|
+
bl_ui/generic_ui_list/__init__.pyi,sha256=S-2mXV_eFY1UGkO3gL3V1PIoCuNrSCgH572PiLDF8Bg,4301
|
|
115
115
|
bl_ui/node_add_menu/__init__.pyi,sha256=heYX5ZcwyvyzHbTVr2yTSd4isQvJm7adnHov7nH_mlg,8118
|
|
116
116
|
bl_ui/node_add_menu_compositor/__init__.pyi,sha256=vNqJhWuyye9R5rIsIOEekuaanSf0d7yVdGFjw_GYMDM,11430
|
|
117
117
|
bl_ui/node_add_menu_geometry/__init__.pyi,sha256=SWFbeRIkfB79FHLiL44XaLS6QQ3p_SOXagconqR6WLQ,37294
|
|
@@ -144,7 +144,7 @@ bl_ui/properties_material/__init__.pyi,sha256=umksBehoHZj_Jkn6xWX0WQH1sCwyqSpCA9
|
|
|
144
144
|
bl_ui/properties_material_gpencil/__init__.pyi,sha256=MPq6SsAQKqz8jJbpcmGK6zF0cbAUKB2rcsG2TIoGDMo,8744
|
|
145
145
|
bl_ui/properties_object/__init__.pyi,sha256=CzGxZhQxo1rcRb58UdawZd9xAXZ8OcoD_L9xb-jhPF8,15771
|
|
146
146
|
bl_ui/properties_output/__init__.pyi,sha256=5GXVxRcb0hPK_VmFnkZy_PqohxLlPPBwwDYzhI6UUUk,15439
|
|
147
|
-
bl_ui/properties_paint_common/__init__.pyi,sha256=
|
|
147
|
+
bl_ui/properties_paint_common/__init__.pyi,sha256=vrLWdXm58SM2Domx1YfBat8nE9OfzojlqvffS6fOmnI,8460
|
|
148
148
|
bl_ui/properties_particle/__init__.pyi,sha256=PP0aeNih2eDjO-j5UgyyCmuySLPKPAyKb6wERtdUJUM,44322
|
|
149
149
|
bl_ui/properties_physics_cloth/__init__.pyi,sha256=1d62dy9gKmAnfiSUO-4EfBYoSMAmmoT3G6dI-WMd0ww,10866
|
|
150
150
|
bl_ui/properties_physics_common/__init__.pyi,sha256=nwBOYs0jv2XSayR_PYRyDUxO2Lf-4BQh0jCluVBpm6A,1448
|
|
@@ -195,7 +195,7 @@ bmesh/__init__.pyi,sha256=nhi3aUMSLycSJTzr1Txhjt_NU0y_82NN0NBe8pZYTkE,1541
|
|
|
195
195
|
bmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
196
196
|
bmesh/geometry/__init__.pyi,sha256=MZzpN0T12x1QweeZUui1LVTrnWyqyBgWsF6tPs1Pe9g,682
|
|
197
197
|
bmesh/ops/__init__.pyi,sha256=p-7LAeeK1gD00D6TxnOz_JbD5b-_jW0rUQrwZrAfFsw,76498
|
|
198
|
-
bmesh/types/__init__.pyi,sha256=
|
|
198
|
+
bmesh/types/__init__.pyi,sha256=JBZwuzFtHu8bOyUuaYY08RlsXtmki0b0ZngHUF0IQks,41956
|
|
199
199
|
bmesh/utils/__init__.pyi,sha256=N2mRD0u1ipJkw2nokIb-FCL858ikNQrOM_mqJPiCEXY,6285
|
|
200
200
|
bpy/__init__.pyi,sha256=2c24IZe013Q0UbFSvpU9JKRYusCUwGYTXbNDx17dK5g,490
|
|
201
201
|
bpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -248,7 +248,7 @@ bpy/ops/material/__init__.pyi,sha256=7yA8XRBaeLm-2IGqQqXcDGNctp3amhdmBMTPoWHw5G8
|
|
|
248
248
|
bpy/ops/mball/__init__.pyi,sha256=3avjhyGC4WLxkWeTp16xJjaN3dp05ecbIXJnc2EtXVs,4258
|
|
249
249
|
bpy/ops/mesh/__init__.pyi,sha256=ORj5lR7JCJdr3ZQrWVfe5p40LGnbAI8cxegrPOfmV8I,132167
|
|
250
250
|
bpy/ops/nla/__init__.pyi,sha256=F0RGCo7T4Y6FAIZ9Jv-TtkDlV1PnWhWjZ2G3EACL0PM,19052
|
|
251
|
-
bpy/ops/node/__init__.pyi,sha256=
|
|
251
|
+
bpy/ops/node/__init__.pyi,sha256=8v3qxwZpe9rXce3-w_YCtZUSig6zMaSXIEGZ1pS7gt4,84184
|
|
252
252
|
bpy/ops/object/__init__.pyi,sha256=CdW1k_qlZI0fFdNO0xv1nZpdvrx6NiTLd1u0SCLPIJ4,175903
|
|
253
253
|
bpy/ops/outliner/__init__.pyi,sha256=ynP3AYcSIvRaROgjkuUMwL2F5P085Q_VVOZjhVC4VeY,29325
|
|
254
254
|
bpy/ops/paint/__init__.pyi,sha256=14ik0wFRdTfSOMWb-ZQBc5FLHtq8xFeGiLMqrmtj374,38326
|
|
@@ -267,7 +267,7 @@ bpy/ops/screen/__init__.pyi,sha256=JVe5VWQxsb64V0cJ5DATt1h7wlBwW16qhjlQdzoux3s,2
|
|
|
267
267
|
bpy/ops/script/__init__.pyi,sha256=xMWzlcdSykwWgk_ck_Mnv6pbex532LfNek21C_cWAjU,1047
|
|
268
268
|
bpy/ops/sculpt/__init__.pyi,sha256=7bpCfzikCt-_OCb-4SVg022NttPW760VWCgcoOvhcMc,51571
|
|
269
269
|
bpy/ops/sculpt_curves/__init__.pyi,sha256=Pp-SNyuO82Y1Ksm2ygzZK14X5Nil2cZUOE798KYG5EE,2919
|
|
270
|
-
bpy/ops/sequencer/__init__.pyi,sha256=
|
|
270
|
+
bpy/ops/sequencer/__init__.pyi,sha256=yBwBMcOCJqhdwVVsOo4XC-7oRGASoWEB2wmupOkQ_Co,90742
|
|
271
271
|
bpy/ops/sound/__init__.pyi,sha256=x0KuxcCFRcLVHsSLxqfNcPi0CyqYVMIUGkBvznDroNk,16665
|
|
272
272
|
bpy/ops/spreadsheet/__init__.pyi,sha256=vJX-uQpmdhiHh6dB9yhaqOKkyQKPpRH1Ay2PSwLTEoQ,2175
|
|
273
273
|
bpy/ops/surface/__init__.pyi,sha256=2zsyLcEMeA71sYw44yeIY6l1dRzf77ITk17JWlz2JTk,10390
|
|
@@ -280,20 +280,20 @@ bpy/ops/uilist/__init__.pyi,sha256=CSwrFuqez9Ia24-_yFa5gAudByRrRqmaQVKrfExyRYc,1
|
|
|
280
280
|
bpy/ops/uv/__init__.pyi,sha256=AfM3c8aTkjexYVvmRWS5ZZu0uEY8DdO63Gmz_dT-bz4,50521
|
|
281
281
|
bpy/ops/view2d/__init__.pyi,sha256=bXpaqKJa4WVVOib1-e_jWpSirho63ignV5z0LPxfLCs,7173
|
|
282
282
|
bpy/ops/view3d/__init__.pyi,sha256=JET9fsqbX7Yqaf1IYsV2tvT4FwhYMklB_rOnEbG2OK8,31946
|
|
283
|
-
bpy/ops/wm/__init__.pyi,sha256=
|
|
283
|
+
bpy/ops/wm/__init__.pyi,sha256=hqc2YwoYGlDGSOC52z44uIbLtF6XhZiSSRwXWBJzDUw,213472
|
|
284
284
|
bpy/ops/workspace/__init__.pyi,sha256=Yfe-bzDigcZkkMulfyDa0wbwqzHBrfp5mn0u_sCN7wo,2418
|
|
285
285
|
bpy/ops/world/__init__.pyi,sha256=VTCqEUTLL6yJroZCNcMYQgEKVmjwkIwIy70vB78rdOM,673
|
|
286
286
|
bpy/path/__init__.pyi,sha256=Phd8a6fB3496L7_LUhdwPNwkh3qy_4O-MS5br9RMfO0,5536
|
|
287
287
|
bpy/props/__init__.pyi,sha256=_gmJ54eKwSmNZHQyDK1CiQn9fSy_L9K3jfSeX9nhCK4,51038
|
|
288
288
|
bpy/stub_internal/__init__.pyi,sha256=h3K2LGZ8lcLY-Oo9ym-HEopjGScc4iTfpT1MU_6smTI,126
|
|
289
|
-
bpy/stub_internal/rna_enums/__init__.pyi,sha256=
|
|
290
|
-
bpy/types/__init__.pyi,sha256=
|
|
289
|
+
bpy/stub_internal/rna_enums/__init__.pyi,sha256=Px-FjjiRZZIy9oPDV9gDUHOSuVseni-P7AjFebuc81w,142878
|
|
290
|
+
bpy/types/__init__.pyi,sha256=S6Gt9FT1AKnqTq-bJy9QbbADa6xszl3pA3FFeh2V9ck,5911685
|
|
291
291
|
bpy/utils/__init__.pyi,sha256=GGYp2g381aOdE7tWXvRGVbmhijbfgt4wGAtJGgbvyJg,15526
|
|
292
292
|
bpy/utils/previews/__init__.pyi,sha256=iSZemSCPu1S2BjAQO83Z-FqEo1nGHRCEIEduXB6hQhc,2357
|
|
293
293
|
bpy/utils/units/__init__.pyi,sha256=cpE9IZPkYPBexru7R9HQ_c0931d7R7Dvib2Uf7V0JJs,2645
|
|
294
294
|
bpy_extras/__init__.pyi,sha256=Vish0mn6IfEYsdv9gWh6VDSpzvOwYavpgAC_PleMtFE,995
|
|
295
295
|
bpy_extras/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
296
|
-
bpy_extras/anim_utils/__init__.pyi,sha256=
|
|
296
|
+
bpy_extras/anim_utils/__init__.pyi,sha256=MOu2T6tgn_JnuKLNgCKcIvJt12pqaVextk4-Dj0T4WQ,4746
|
|
297
297
|
bpy_extras/asset_utils/__init__.pyi,sha256=aM9iiUUy5PcxHY5lz-UxfvLzAc9bH5Y-z3kRRB9IzvY,221
|
|
298
298
|
bpy_extras/bmesh_utils/__init__.pyi,sha256=KrJhW9Esut9jZKqcogqgPnrC9LbJOOe3szRluEd5j-E,513
|
|
299
299
|
bpy_extras/id_map_utils/__init__.pyi,sha256=IXrJ93ipXCEEwjJ09T_NNbc0S2RZRvckkjqTNeYk9dY,503
|
|
@@ -320,7 +320,7 @@ freestyle/functions/__init__.pyi,sha256=dGcOMrCayIE_OXrHIm36aQUAsCyNwvX63DjLjJw6
|
|
|
320
320
|
freestyle/predicates/__init__.pyi,sha256=3Y8x157YP6udskhuFb_UZYvGyZjjEhGIJWQoj0BMLsw,13550
|
|
321
321
|
freestyle/shaders/__init__.pyi,sha256=SUbnzfs9aX629SUz1vacJUkTQS2F8-E4TS1SetN0yFs,24630
|
|
322
322
|
freestyle/types/__init__.pyi,sha256=LkVRkopB5Ntk0LeBeq4vnaVE-4CVtDcMVCKy75_sM9Y,101295
|
|
323
|
-
freestyle/utils/__init__.pyi,sha256=
|
|
323
|
+
freestyle/utils/__init__.pyi,sha256=vrxmLboZoETh1_GfhS4xYZ7vzW6Oh3vElX7y16Ftw0c,5328
|
|
324
324
|
freestyle/utils/ContextFunctions/__init__.pyi,sha256=IKNZD__52vYS5eT32F_WZwW1dco_6G2kZC_1IVCAwLs,3486
|
|
325
325
|
gpu/__init__.pyi,sha256=TLoatdrTMM6vfjnbuQA6cW38ARW5nuLa4Y-eicnJU5Q,8900
|
|
326
326
|
gpu/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -331,7 +331,7 @@ gpu/select/__init__.pyi,sha256=u7L8-mg3F6PD60rvGcJ1CUehZTDaPSGtmXzs1LNKK7g,242
|
|
|
331
331
|
gpu/shader/__init__.pyi,sha256=vTyHoiXVvNiPyXwCNy1EEN4TGlzqFjQKfD3ySHBaM7A,2443
|
|
332
332
|
gpu/state/__init__.pyi,sha256=XC4KxVmSTDPNQP57tfsP5gqDwuhlwjLiVGTedL_KN7U,4487
|
|
333
333
|
gpu/texture/__init__.pyi,sha256=TzwOXJ7KCVQrBiujMTZ0AWx_IF4yNe2vWmhkkvnHuKg,674
|
|
334
|
-
gpu/types/__init__.pyi,sha256=
|
|
334
|
+
gpu/types/__init__.pyi,sha256=XJvDX4l4Pekl_gG5OzGECBR1yyZam8d_4xFjZFIJwLs,29302
|
|
335
335
|
gpu_extras/__init__.pyi,sha256=XscwC-5DTPC0yc2HB_XMgvX61rT5Qs5RaImqNwR6c40,240
|
|
336
336
|
gpu_extras/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
337
337
|
gpu_extras/batch/__init__.pyi,sha256=inV4OR_YJrG76oiq-8PZW2dDyx8pzf4jp818hX9alqw,1298
|
|
@@ -350,8 +350,8 @@ keyingsets_utils/__init__.pyi,sha256=LYwQPxGFL9s9daviMo2DyVIUmjyNRFT1S9cvMGBZ6to
|
|
|
350
350
|
keyingsets_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
351
351
|
mathutils/__init__.pyi,sha256=QBvmsVe5brYs9KpGoF1DdHKze2iRn5i3pGapskxYzRU,91364
|
|
352
352
|
mathutils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
353
|
-
mathutils/bvhtree/__init__.pyi,sha256=
|
|
354
|
-
mathutils/geometry/__init__.pyi,sha256=
|
|
353
|
+
mathutils/bvhtree/__init__.pyi,sha256=dwPbU667m_oVBEu4aEcWns2sWl8oSNEII-O0GXxwsDA,5118
|
|
354
|
+
mathutils/geometry/__init__.pyi,sha256=znfthz0P_KR3n8C6RHqm9K-rTFKR0dGlnlKOb2htmkM,24696
|
|
355
355
|
mathutils/interpolate/__init__.pyi,sha256=ndZoeTg3JKLj5Uskd-TU2BmCEAe8k_-MY-jGzzNj0O4,575
|
|
356
356
|
mathutils/kdtree/__init__.pyi,sha256=99pXd0pG1J4JBPexQBa87d-DAg-3KZ1lmDL3ZLiVA-Q,2309
|
|
357
357
|
mathutils/noise/__init__.pyi,sha256=Zg1rSqWCinxZ9dzzKreAatID67q05SeBQJr1hOy6Gdk,10879
|
|
@@ -367,7 +367,7 @@ rna_prop_ui/__init__.pyi,sha256=Gn7kc9WhI3qPObIz8QiFbjeVIP7GCeF6liywBzIEcnE,1402
|
|
|
367
367
|
rna_prop_ui/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
368
368
|
rna_xml/__init__.pyi,sha256=E0_ajcifhpiiQJVaNKnAa2ju-w5Tg9-lk7IqhsPjrw4,652
|
|
369
369
|
rna_xml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
370
|
-
fake_bpy_module-
|
|
371
|
-
fake_bpy_module-
|
|
372
|
-
fake_bpy_module-
|
|
373
|
-
fake_bpy_module-
|
|
370
|
+
fake_bpy_module-20251002.dist-info/METADATA,sha256=p6UMZnBNsmIag-auSxehw_Y4ZOja5djs4RDJSNeJC3I,7429
|
|
371
|
+
fake_bpy_module-20251002.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
372
|
+
fake_bpy_module-20251002.dist-info/top_level.txt,sha256=xwHlW-cY033y5uA7GsGZDdOwWdNIzrHETvaZ_rWuR4I,539
|
|
373
|
+
fake_bpy_module-20251002.dist-info/RECORD,,
|
freestyle/utils/__init__.pyi
CHANGED
|
@@ -125,7 +125,7 @@ def material_from_fedge(fe) -> None:
|
|
|
125
125
|
"""get the diffuse RGBA color from an FEdge"""
|
|
126
126
|
|
|
127
127
|
def normal_at_I0D(it) -> None: ...
|
|
128
|
-
def pairwise(iterable, types={
|
|
128
|
+
def pairwise(iterable, types={Stroke, StrokeVertexIterator}) -> None:
|
|
129
129
|
"""Yields a tuple containing the previous and current object"""
|
|
130
130
|
|
|
131
131
|
def rgb_to_bw(r, g, b) -> None:
|
gpu/types/__init__.pyi
CHANGED
|
@@ -76,6 +76,101 @@ class GPUBatch:
|
|
|
76
76
|
:type buf: GPUVertBuf
|
|
77
77
|
"""
|
|
78
78
|
|
|
79
|
+
class GPUFrameBuffer:
|
|
80
|
+
"""This object gives access to framebuffer functionalities.
|
|
81
|
+
When a layer is specified in a argument, a single layer of a 3D or array texture is attached to the frame-buffer.
|
|
82
|
+
For cube map textures, layer is translated into a cube map face.
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
is_bound: typing.Any
|
|
86
|
+
""" Checks if this is the active frame-buffer in the context."""
|
|
87
|
+
|
|
88
|
+
def bind(self) -> None:
|
|
89
|
+
"""Context manager to ensure balanced bind calls, even in the case of an error."""
|
|
90
|
+
|
|
91
|
+
def clear(
|
|
92
|
+
self,
|
|
93
|
+
*,
|
|
94
|
+
color: collections.abc.Sequence[float] | None = None,
|
|
95
|
+
depth: float | None = None,
|
|
96
|
+
stencil: int | None = None,
|
|
97
|
+
) -> None:
|
|
98
|
+
"""Fill color, depth and stencil textures with specific value.
|
|
99
|
+
Common values: color=(0.0, 0.0, 0.0, 1.0), depth=1.0, stencil=0.
|
|
100
|
+
|
|
101
|
+
:param color: Sequence of 3 or 4 floats representing (r, g, b, a).
|
|
102
|
+
:type color: collections.abc.Sequence[float] | None
|
|
103
|
+
:param depth: depth value.
|
|
104
|
+
:type depth: float | None
|
|
105
|
+
:param stencil: stencil value.
|
|
106
|
+
:type stencil: int | None
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
def read_color(
|
|
110
|
+
self,
|
|
111
|
+
x: int,
|
|
112
|
+
y,
|
|
113
|
+
xsize,
|
|
114
|
+
ysize,
|
|
115
|
+
channels: int,
|
|
116
|
+
slot: int,
|
|
117
|
+
format: str,
|
|
118
|
+
*,
|
|
119
|
+
data: Buffer = data,
|
|
120
|
+
) -> Buffer:
|
|
121
|
+
"""Read a block of pixels from the frame buffer.
|
|
122
|
+
|
|
123
|
+
:param x: Lower left corner of a rectangular block of pixels.
|
|
124
|
+
:type x: int
|
|
125
|
+
:param y:
|
|
126
|
+
:param xsize: Dimensions of the pixel rectangle.
|
|
127
|
+
:param ysize:
|
|
128
|
+
:param channels: Number of components to read.
|
|
129
|
+
:type channels: int
|
|
130
|
+
:param slot: The framebuffer slot to read data from.
|
|
131
|
+
:type slot: int
|
|
132
|
+
:param format: The format that describes the content of a single channel.
|
|
133
|
+
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 & 10_11_11_REV.
|
|
134
|
+
UINT_24_8 is deprecated, use FLOAT instead.
|
|
135
|
+
:type format: str
|
|
136
|
+
:param data: Optional Buffer object to fill with the pixels values.
|
|
137
|
+
:type data: Buffer
|
|
138
|
+
:return: The Buffer with the read pixels.
|
|
139
|
+
:rtype: Buffer
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
def read_depth(
|
|
143
|
+
self, x: int, y, xsize: int, ysize, *, data: Buffer = data
|
|
144
|
+
) -> Buffer:
|
|
145
|
+
"""Read a pixel depth block from the frame buffer.
|
|
146
|
+
|
|
147
|
+
:param x: Lower left corner of a rectangular block of pixels.
|
|
148
|
+
:type x: int
|
|
149
|
+
:param y:
|
|
150
|
+
:param xsize: Dimensions of the pixel rectangle.
|
|
151
|
+
:type xsize: int
|
|
152
|
+
:param ysize:
|
|
153
|
+
:param data: Optional Buffer object to fill with the pixels values.
|
|
154
|
+
:type data: Buffer
|
|
155
|
+
:return: The Buffer with the read pixels.
|
|
156
|
+
:rtype: Buffer
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
def viewport_get(self) -> None:
|
|
160
|
+
"""Returns position and dimension to current viewport."""
|
|
161
|
+
|
|
162
|
+
def viewport_set(self, x: int, y, xsize: int, ysize) -> None:
|
|
163
|
+
"""Set the viewport for this framebuffer object.
|
|
164
|
+
Note: The viewport state is not saved upon framebuffer rebind.
|
|
165
|
+
|
|
166
|
+
:param x: lower left corner of the viewport_set rectangle, in pixels.
|
|
167
|
+
:type x: int
|
|
168
|
+
:param y:
|
|
169
|
+
:param xsize: width and height of the viewport_set.
|
|
170
|
+
:type xsize: int
|
|
171
|
+
:param ysize:
|
|
172
|
+
"""
|
|
173
|
+
|
|
79
174
|
class GPUIndexBuf:
|
|
80
175
|
"""Contains an index buffer."""
|
|
81
176
|
|
|
@@ -984,98 +1079,3 @@ class GPUVertFormat:
|
|
|
984
1079
|
Possible values are FLOAT, INT or INT_TO_FLOAT_UNIT.
|
|
985
1080
|
:type fetch_mode: str
|
|
986
1081
|
"""
|
|
987
|
-
|
|
988
|
-
class gpu:
|
|
989
|
-
"""This object gives access to framebuffer functionalities.
|
|
990
|
-
When a layer is specified in a argument, a single layer of a 3D or array texture is attached to the frame-buffer.
|
|
991
|
-
For cube map textures, layer is translated into a cube map face.
|
|
992
|
-
"""
|
|
993
|
-
|
|
994
|
-
is_bound: typing.Any
|
|
995
|
-
""" Checks if this is the active frame-buffer in the context."""
|
|
996
|
-
|
|
997
|
-
def bind(self) -> None:
|
|
998
|
-
"""Context manager to ensure balanced bind calls, even in the case of an error."""
|
|
999
|
-
|
|
1000
|
-
def clear(
|
|
1001
|
-
self,
|
|
1002
|
-
*,
|
|
1003
|
-
color: collections.abc.Sequence[float] | None = None,
|
|
1004
|
-
depth: float | None = None,
|
|
1005
|
-
stencil: int | None = None,
|
|
1006
|
-
) -> None:
|
|
1007
|
-
"""Fill color, depth and stencil textures with specific value.
|
|
1008
|
-
Common values: color=(0.0, 0.0, 0.0, 1.0), depth=1.0, stencil=0.
|
|
1009
|
-
|
|
1010
|
-
:param color: Sequence of 3 or 4 floats representing (r, g, b, a).
|
|
1011
|
-
:type color: collections.abc.Sequence[float] | None
|
|
1012
|
-
:param depth: depth value.
|
|
1013
|
-
:type depth: float | None
|
|
1014
|
-
:param stencil: stencil value.
|
|
1015
|
-
:type stencil: int | None
|
|
1016
|
-
"""
|
|
1017
|
-
|
|
1018
|
-
def read_color(
|
|
1019
|
-
self,
|
|
1020
|
-
x: int,
|
|
1021
|
-
y,
|
|
1022
|
-
xsize,
|
|
1023
|
-
ysize,
|
|
1024
|
-
channels: int,
|
|
1025
|
-
slot: int,
|
|
1026
|
-
format: str,
|
|
1027
|
-
*,
|
|
1028
|
-
data: Buffer = data,
|
|
1029
|
-
) -> Buffer:
|
|
1030
|
-
"""Read a block of pixels from the frame buffer.
|
|
1031
|
-
|
|
1032
|
-
:param x: Lower left corner of a rectangular block of pixels.
|
|
1033
|
-
:type x: int
|
|
1034
|
-
:param y:
|
|
1035
|
-
:param xsize: Dimensions of the pixel rectangle.
|
|
1036
|
-
:param ysize:
|
|
1037
|
-
:param channels: Number of components to read.
|
|
1038
|
-
:type channels: int
|
|
1039
|
-
:param slot: The framebuffer slot to read data from.
|
|
1040
|
-
:type slot: int
|
|
1041
|
-
:param format: The format that describes the content of a single channel.
|
|
1042
|
-
Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 & 10_11_11_REV.
|
|
1043
|
-
UINT_24_8 is deprecated, use FLOAT instead.
|
|
1044
|
-
:type format: str
|
|
1045
|
-
:param data: Optional Buffer object to fill with the pixels values.
|
|
1046
|
-
:type data: Buffer
|
|
1047
|
-
:return: The Buffer with the read pixels.
|
|
1048
|
-
:rtype: Buffer
|
|
1049
|
-
"""
|
|
1050
|
-
|
|
1051
|
-
def read_depth(
|
|
1052
|
-
self, x: int, y, xsize: int, ysize, *, data: Buffer = data
|
|
1053
|
-
) -> Buffer:
|
|
1054
|
-
"""Read a pixel depth block from the frame buffer.
|
|
1055
|
-
|
|
1056
|
-
:param x: Lower left corner of a rectangular block of pixels.
|
|
1057
|
-
:type x: int
|
|
1058
|
-
:param y:
|
|
1059
|
-
:param xsize: Dimensions of the pixel rectangle.
|
|
1060
|
-
:type xsize: int
|
|
1061
|
-
:param ysize:
|
|
1062
|
-
:param data: Optional Buffer object to fill with the pixels values.
|
|
1063
|
-
:type data: Buffer
|
|
1064
|
-
:return: The Buffer with the read pixels.
|
|
1065
|
-
:rtype: Buffer
|
|
1066
|
-
"""
|
|
1067
|
-
|
|
1068
|
-
def viewport_get(self) -> None:
|
|
1069
|
-
"""Returns position and dimension to current viewport."""
|
|
1070
|
-
|
|
1071
|
-
def viewport_set(self, x: int, y, xsize: int, ysize) -> None:
|
|
1072
|
-
"""Set the viewport for this framebuffer object.
|
|
1073
|
-
Note: The viewport state is not saved upon framebuffer rebind.
|
|
1074
|
-
|
|
1075
|
-
:param x: lower left corner of the viewport_set rectangle, in pixels.
|
|
1076
|
-
:type x: int
|
|
1077
|
-
:param y:
|
|
1078
|
-
:param xsize: width and height of the viewport_set.
|
|
1079
|
-
:type xsize: int
|
|
1080
|
-
:param ysize:
|
|
1081
|
-
"""
|
mathutils/bvhtree/__init__.pyi
CHANGED
|
@@ -7,7 +7,6 @@ import typing
|
|
|
7
7
|
import collections.abc
|
|
8
8
|
import typing_extensions
|
|
9
9
|
import numpy.typing as npt
|
|
10
|
-
import _bpy_types
|
|
11
10
|
import bmesh.types
|
|
12
11
|
import bpy.types
|
|
13
12
|
import mathutils
|
|
@@ -26,7 +25,7 @@ class BVHTree:
|
|
|
26
25
|
@classmethod
|
|
27
26
|
def FromObject(
|
|
28
27
|
cls,
|
|
29
|
-
object:
|
|
28
|
+
object: bpy.types.Object,
|
|
30
29
|
depsgraph: bpy.types.Depsgraph,
|
|
31
30
|
*,
|
|
32
31
|
deform: bool = True,
|
|
@@ -37,7 +36,7 @@ class BVHTree:
|
|
|
37
36
|
"""BVH tree based on `Object` data.
|
|
38
37
|
|
|
39
38
|
:param object: Object data.
|
|
40
|
-
:type object:
|
|
39
|
+
:type object: bpy.types.Object
|
|
41
40
|
:param depsgraph: Depsgraph to use for evaluating the mesh.
|
|
42
41
|
:type depsgraph: bpy.types.Depsgraph
|
|
43
42
|
:param deform: Use mesh with deformations.
|
mathutils/geometry/__init__.pyi
CHANGED
|
@@ -341,15 +341,34 @@ def intersect_plane_plane(
|
|
|
341
341
|
def intersect_point_line(
|
|
342
342
|
pt: collections.abc.Sequence[float] | mathutils.Vector,
|
|
343
343
|
line_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
344
|
-
line_p2,
|
|
344
|
+
line_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
345
345
|
/,
|
|
346
346
|
) -> tuple[mathutils.Vector, float]:
|
|
347
|
-
"""Takes a point and a line and returns
|
|
347
|
+
"""Takes a point and a line and returns 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.
|
|
348
348
|
|
|
349
349
|
:param pt: Point
|
|
350
350
|
:type pt: collections.abc.Sequence[float] | mathutils.Vector
|
|
351
|
-
:param line_p1: First point of the
|
|
351
|
+
:param line_p1: First point of the line
|
|
352
352
|
:type line_p1: collections.abc.Sequence[float] | mathutils.Vector
|
|
353
|
+
:param line_p2: Second point of the line
|
|
354
|
+
:type line_p2: collections.abc.Sequence[float] | mathutils.Vector
|
|
355
|
+
:rtype: tuple[mathutils.Vector, float]
|
|
356
|
+
"""
|
|
357
|
+
|
|
358
|
+
def intersect_point_line_segment(
|
|
359
|
+
pt: collections.abc.Sequence[float] | mathutils.Vector,
|
|
360
|
+
seg_p1: collections.abc.Sequence[float] | mathutils.Vector,
|
|
361
|
+
seg_p2: collections.abc.Sequence[float] | mathutils.Vector,
|
|
362
|
+
/,
|
|
363
|
+
) -> tuple[mathutils.Vector, float]:
|
|
364
|
+
"""Takes a point and a segment and returns the closest point on the segment and the distance to the segment.
|
|
365
|
+
|
|
366
|
+
:param pt: Point
|
|
367
|
+
:type pt: collections.abc.Sequence[float] | mathutils.Vector
|
|
368
|
+
:param seg_p1: First point of the segment
|
|
369
|
+
:type seg_p1: collections.abc.Sequence[float] | mathutils.Vector
|
|
370
|
+
:param seg_p2: Second point of the segment
|
|
371
|
+
:type seg_p2: collections.abc.Sequence[float] | mathutils.Vector
|
|
353
372
|
:rtype: tuple[mathutils.Vector, float]
|
|
354
373
|
"""
|
|
355
374
|
|
|
File without changes
|
|
File without changes
|