fake-bpy-module 20240321__py3-none-any.whl → 20240322__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.
- addon_utils/__init__.pyi +54 -10
- animsys_refactor/__init__.pyi +27 -11
- aud/__init__.pyi +130 -123
- bgl/__init__.pyi +1831 -216
- bl_app_override/__init__.pyi +14 -3
- bl_app_override/helpers/__init__.pyi +19 -10
- bl_app_template_utils/__init__.pyi +19 -4
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -5
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -3
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -5
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -15
- bl_i18n_utils/merge_po/__init__.pyi +4 -1
- bl_i18n_utils/settings/__init__.pyi +19 -23
- bl_i18n_utils/utils/__init__.pyi +81 -143
- bl_i18n_utils/utils_cli/__init__.pyi +29 -6
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -1
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -2
- bl_keymap_utils/io/__init__.pyi +44 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -2
- bl_keymap_utils/versioning/__init__.pyi +4 -1
- bl_math/__init__.pyi +3 -3
- bl_operators/__init__.pyi +9 -2
- bl_operators/add_mesh_torus/__init__.pyi +120 -49
- bl_operators/anim/__init__.pyi +903 -297
- bl_operators/assets/__init__.pyi +348 -123
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -9
- bl_operators/clip/__init__.pyi +1262 -470
- bl_operators/console/__init__.pyi +542 -160
- bl_operators/constraint/__init__.pyi +452 -140
- bl_operators/file/__init__.pyi +339 -114
- bl_operators/freestyle/__init__.pyi +440 -132
- bl_operators/geometry_nodes/__init__.pyi +2131 -842
- bl_operators/image/__init__.pyi +330 -97
- bl_operators/mesh/__init__.pyi +339 -109
- bl_operators/node/__init__.pyi +1506 -621
- bl_operators/object/__init__.pyi +1828 -668
- bl_operators/object_align/__init__.pyi +124 -35
- bl_operators/object_quick_effects/__init__.pyi +470 -149
- bl_operators/object_randomize_transform/__init__.pyi +114 -35
- bl_operators/presets/__init__.pyi +3056 -1374
- bl_operators/rigidbody/__init__.pyi +336 -106
- bl_operators/screen_play_rendered_anim/__init__.pyi +115 -33
- bl_operators/sequencer/__init__.pyi +579 -204
- bl_operators/spreadsheet/__init__.pyi +110 -38
- bl_operators/userpref/__init__.pyi +3201 -1236
- bl_operators/uvcalc_follow_active/__init__.pyi +119 -38
- bl_operators/uvcalc_lightmap/__init__.pyi +137 -54
- bl_operators/uvcalc_transform/__init__.pyi +295 -83
- bl_operators/vertexpaint_dirt/__init__.pyi +119 -34
- bl_operators/view3d/__init__.pyi +542 -184
- bl_operators/wm/__init__.pyi +5554 -2159
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -7
- bl_rna_utils/data_path/__init__.pyi +12 -2
- bl_text_utils/external_editor/__init__.pyi +4 -1
- bl_ui/__init__.pyi +346 -146
- bl_ui/anim/__init__.pyi +107 -47
- bl_ui/asset_shelf/__init__.pyi +111 -33
- bl_ui/generic_ui_list/__init__.pyi +349 -146
- bl_ui/node_add_menu/__init__.pyi +138 -53
- bl_ui/node_add_menu_compositor/__init__.pyi +2134 -1016
- bl_ui/node_add_menu_geometry/__init__.pyi +5833 -2855
- bl_ui/node_add_menu_shader/__init__.pyi +1162 -511
- bl_ui/node_add_menu_texture/__init__.pyi +1008 -450
- bl_ui/properties_animviz/__init__.pyi +14 -12
- bl_ui/properties_collection/__init__.pyi +601 -218
- bl_ui/properties_constraint/__init__.pyi +10115 -10647
- bl_ui/properties_data_armature/__init__.pyi +1550 -648
- bl_ui/properties_data_bone/__init__.pyi +1317 -511
- bl_ui/properties_data_camera/__init__.pyi +1852 -719
- bl_ui/properties_data_curve/__init__.pyi +2015 -781
- bl_ui/properties_data_curves/__init__.pyi +713 -262
- bl_ui/properties_data_empty/__init__.pyi +252 -84
- bl_ui/properties_data_gpencil/__init__.pyi +2505 -1105
- bl_ui/properties_data_grease_pencil/__init__.pyi +1350 -594
- bl_ui/properties_data_lattice/__init__.pyi +374 -123
- bl_ui/properties_data_light/__init__.pyi +1319 -489
- bl_ui/properties_data_lightprobe/__init__.pyi +734 -241
- bl_ui/properties_data_mesh/__init__.pyi +2652 -1189
- bl_ui/properties_data_metaball/__init__.pyi +610 -197
- bl_ui/properties_data_modifier/__init__.pyi +1143 -506
- bl_ui/properties_data_pointcloud/__init__.pyi +670 -303
- bl_ui/properties_data_shaderfx/__init__.pyi +126 -36
- bl_ui/properties_data_speaker/__init__.pyi +618 -195
- bl_ui/properties_data_volume/__init__.pyi +1052 -408
- bl_ui/properties_freestyle/__init__.pyi +3366 -1450
- bl_ui/properties_grease_pencil_common/__init__.pyi +1634 -776
- bl_ui/properties_mask_common/__init__.pyi +803 -371
- bl_ui/properties_material/__init__.pyi +2038 -831
- bl_ui/properties_material_gpencil/__init__.pyi +1272 -523
- bl_ui/properties_object/__init__.pyi +1863 -745
- bl_ui/properties_output/__init__.pyi +2482 -1071
- bl_ui/properties_paint_common/__init__.pyi +317 -424
- bl_ui/properties_particle/__init__.pyi +7235 -2942
- bl_ui/properties_physics_cloth/__init__.pyi +1903 -758
- bl_ui/properties_physics_common/__init__.pyi +164 -51
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2787 -1114
- bl_ui/properties_physics_field/__init__.pyi +1294 -486
- bl_ui/properties_physics_fluid/__init__.pyi +3631 -1545
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +115 -34
- bl_ui/properties_physics_rigidbody/__init__.pyi +983 -312
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1718 -656
- bl_ui/properties_physics_softbody/__init__.pyi +2091 -836
- bl_ui/properties_render/__init__.pyi +7177 -2939
- bl_ui/properties_scene/__init__.pyi +1881 -760
- bl_ui/properties_texture/__init__.pyi +3539 -1399
- bl_ui/properties_view_layer/__init__.pyi +2368 -940
- bl_ui/properties_workspace/__init__.pyi +517 -202
- bl_ui/properties_world/__init__.pyi +862 -269
- bl_ui/space_clip/__init__.pyi +9127 -4137
- bl_ui/space_console/__init__.pyi +666 -286
- bl_ui/space_dopesheet/__init__.pyi +3287 -1504
- bl_ui/space_filebrowser/__init__.pyi +3958 -1935
- bl_ui/space_graph/__init__.pyi +2406 -1142
- bl_ui/space_image/__init__.pyi +9242 -4526
- bl_ui/space_info/__init__.pyi +664 -285
- bl_ui/space_nla/__init__.pyi +2014 -932
- bl_ui/space_node/__init__.pyi +4549 -1949
- bl_ui/space_outliner/__init__.pyi +1619 -745
- bl_ui/space_properties/__init__.pyi +340 -105
- bl_ui/space_sequencer/__init__.pyi +9396 -4264
- bl_ui/space_spreadsheet/__init__.pyi +110 -60
- bl_ui/space_statusbar/__init__.pyi +107 -32
- bl_ui/space_text/__init__.pyi +1907 -872
- bl_ui/space_time/__init__.pyi +812 -327
- bl_ui/space_toolsystem_common/__init__.pyi +203 -99
- bl_ui/space_toolsystem_toolbar/__init__.pyi +845 -289
- bl_ui/space_topbar/__init__.pyi +3131 -1437
- bl_ui/space_userpref/__init__.pyi +11510 -4926
- bl_ui/space_view3d/__init__.pyi +31358 -14417
- bl_ui/space_view3d_toolbar/__init__.pyi +12401 -6163
- bl_ui/utils/__init__.pyi +7 -16
- bl_ui_utils/bug_report_url/__init__.pyi +4 -1
- bl_ui_utils/layout/__init__.pyi +4 -1
- blend_render_info/__init__.pyi +13 -3
- blf/__init__.pyi +5 -7
- bmesh/__init__.pyi +7 -7
- bmesh/geometry/__init__.pyi +5 -5
- bmesh/ops/__init__.pyi +490 -504
- bmesh/types/__init__.pyi +253 -247
- bmesh/utils/__init__.pyi +54 -54
- bpy/__init__.pyi +2 -2
- bpy/app/__init__.pyi +4 -5
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -10
- bpy/app/timers/__init__.pyi +9 -11
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +3 -12
- bpy/ops/action/__init__.pyi +316 -415
- bpy/ops/anim/__init__.pyi +428 -566
- bpy/ops/armature/__init__.pyi +360 -488
- bpy/ops/asset/__init__.pyi +146 -183
- bpy/ops/boid/__init__.pyi +50 -67
- bpy/ops/brush/__init__.pyi +72 -96
- bpy/ops/buttons/__init__.pyi +128 -142
- bpy/ops/cachefile/__init__.pyi +124 -137
- bpy/ops/camera/__init__.pyi +22 -28
- bpy/ops/clip/__init__.pyi +768 -1005
- bpy/ops/cloth/__init__.pyi +10 -13
- bpy/ops/collection/__init__.pyi +36 -50
- bpy/ops/console/__init__.pyi +150 -203
- bpy/ops/constraint/__init__.pyi +150 -201
- bpy/ops/curve/__init__.pyi +474 -607
- bpy/ops/curves/__init__.pyi +170 -221
- bpy/ops/cycles/__init__.pyi +18 -26
- bpy/ops/dpaint/__init__.pyi +34 -46
- bpy/ops/ed/__init__.pyi +122 -149
- bpy/ops/export_anim/__init__.pyi +18 -21
- bpy/ops/export_mesh/__init__.pyi +26 -29
- bpy/ops/export_scene/__init__.pyi +307 -342
- bpy/ops/file/__init__.pyi +342 -436
- bpy/ops/fluid/__init__.pyi +88 -117
- bpy/ops/font/__init__.pyi +252 -311
- bpy/ops/geometry/__init__.pyi +86 -113
- bpy/ops/gizmogroup/__init__.pyi +22 -27
- bpy/ops/gpencil/__init__.pyi +1444 -1864
- bpy/ops/graph/__init__.pyi +642 -822
- bpy/ops/grease_pencil/__init__.pyi +426 -576
- bpy/ops/image/__init__.pyi +612 -733
- bpy/ops/import_anim/__init__.pyi +26 -29
- bpy/ops/import_curve/__init__.pyi +6 -9
- bpy/ops/import_mesh/__init__.pyi +18 -23
- bpy/ops/import_scene/__init__.pyi +86 -101
- bpy/ops/info/__init__.pyi +60 -77
- bpy/ops/lattice/__init__.pyi +64 -85
- bpy/ops/marker/__init__.pyi +106 -137
- bpy/ops/mask/__init__.pyi +318 -420
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -93
- bpy/ops/mesh/__init__.pyi +1988 -2460
- bpy/ops/nla/__init__.pyi +330 -428
- bpy/ops/node/__init__.pyi +852 -1115
- bpy/ops/object/__init__.pyi +2420 -3081
- bpy/ops/outliner/__init__.pyi +498 -661
- bpy/ops/paint/__init__.pyi +518 -667
- bpy/ops/paintcurve/__init__.pyi +64 -84
- bpy/ops/palette/__init__.pyi +48 -66
- bpy/ops/particle/__init__.pyi +264 -355
- bpy/ops/pose/__init__.pyi +336 -438
- bpy/ops/poselib/__init__.pyi +70 -92
- bpy/ops/preferences/__init__.pyi +336 -440
- bpy/ops/ptcache/__init__.pyi +46 -62
- bpy/ops/render/__init__.pyi +114 -147
- bpy/ops/rigidbody/__init__.pyi +102 -135
- bpy/ops/scene/__init__.pyi +270 -364
- bpy/ops/screen/__init__.pyi +378 -477
- bpy/ops/script/__init__.pyi +18 -26
- bpy/ops/sculpt/__init__.pyi +400 -488
- bpy/ops/sculpt_curves/__init__.pyi +40 -53
- bpy/ops/sequencer/__init__.pyi +1040 -1279
- bpy/ops/sound/__init__.pyi +208 -226
- bpy/ops/spreadsheet/__init__.pyi +30 -40
- bpy/ops/surface/__init__.pyi +108 -126
- bpy/ops/text/__init__.pyi +382 -486
- bpy/ops/text_editor/__init__.pyi +10 -13
- bpy/ops/texture/__init__.pyi +26 -35
- bpy/ops/transform/__init__.pyi +790 -905
- bpy/ops/ui/__init__.pyi +216 -291
- bpy/ops/uilist/__init__.pyi +20 -29
- bpy/ops/uv/__init__.pyi +600 -742
- bpy/ops/view2d/__init__.pyi +156 -195
- bpy/ops/view3d/__init__.pyi +576 -742
- bpy/ops/wm/__init__.pyi +2360 -2702
- bpy/ops/workspace/__init__.pyi +42 -57
- bpy/ops/world/__init__.pyi +6 -8
- bpy/path/__init__.pyi +110 -81
- bpy/props/__init__.pyi +263 -267
- bpy/types/__init__.pyi +86353 -87337
- bpy/utils/__init__.pyi +242 -154
- bpy/utils/previews/__init__.pyi +57 -57
- bpy/utils/units/__init__.pyi +19 -22
- bpy_extras/anim_utils/__init__.pyi +11 -31
- bpy_extras/asset_utils/__init__.pyi +4 -1
- bpy_extras/image_utils/__init__.pyi +2 -2
- bpy_extras/io_utils/__init__.pyi +30 -27
- bpy_extras/keyconfig_utils/__init__.pyi +4 -1
- bpy_extras/mesh_utils/__init__.pyi +18 -18
- bpy_extras/node_utils/__init__.pyi +4 -1
- bpy_extras/object_utils/__init__.pyi +25 -26
- bpy_extras/view3d_utils/__init__.pyi +33 -38
- bpy_restrict_state/__init__.pyi +14 -1
- bpy_types/__init__.pyi +3748 -1248
- console_python/__init__.pyi +41 -7
- console_shell/__init__.pyi +24 -5
- {fake_bpy_module-20240321.dist-info → fake_bpy_module-20240322.dist-info}/METADATA +1 -1
- fake_bpy_module-20240322.dist-info/RECORD +343 -0
- freestyle/chainingiterators/__init__.pyi +50 -52
- freestyle/functions/__init__.pyi +303 -207
- freestyle/predicates/__init__.pyi +299 -115
- freestyle/shaders/__init__.pyi +49 -80
- freestyle/types/__init__.pyi +463 -470
- freestyle/utils/ContextFunctions/__init__.pyi +9 -9
- freestyle/utils/__init__.pyi +27 -17
- gpu/capabilities/__init__.pyi +19 -20
- gpu/matrix/__init__.pyi +14 -16
- gpu/platform/__init__.pyi +5 -5
- gpu/shader/__init__.pyi +2 -5
- gpu/state/__init__.pyi +1 -1
- gpu/texture/__init__.pyi +3 -3
- gpu/types/__init__.pyi +54 -85
- gpu_extras/batch/__init__.pyi +26 -6
- gpu_extras/presets/__init__.pyi +51 -16
- graphviz_export/__init__.pyi +9 -2
- idprop/types/__init__.pyi +36 -12
- imbuf/__init__.pyi +8 -9
- imbuf/types/__init__.pyi +8 -15
- keyingsets_builtins/__init__.pyi +2520 -1085
- keyingsets_utils/__init__.pyi +69 -14
- mathutils/__init__.pyi +491 -423
- mathutils/bvhtree/__init__.pyi +26 -31
- mathutils/geometry/__init__.pyi +176 -185
- mathutils/kdtree/__init__.pyi +14 -17
- mathutils/noise/__init__.pyi +47 -48
- nodeitems_builtins/__init__.pyi +37 -15
- nodeitems_utils/__init__.pyi +45 -13
- rna_info/__init__.pyi +177 -76
- rna_keymap_ui/__init__.pyi +29 -6
- rna_prop_ui/__init__.pyi +56 -14
- rna_xml/__init__.pyi +29 -6
- sys_info/__init__.pyi +4 -1
- fake_bpy_module-20240321.dist-info/RECORD +0 -343
- {fake_bpy_module-20240321.dist-info → fake_bpy_module-20240322.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240321.dist-info → fake_bpy_module-20240322.dist-info}/top_level.txt +0 -0
freestyle/shaders/__init__.pyi
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import typing
|
|
2
|
-
import bpy.types
|
|
3
2
|
import freestyle.types
|
|
4
3
|
import mathutils
|
|
5
4
|
|
|
@@ -16,12 +15,12 @@ class BackboneStretcherShader:
|
|
|
16
15
|
"""
|
|
17
16
|
...
|
|
18
17
|
|
|
19
|
-
def shade(self, stroke:
|
|
18
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
20
19
|
"""Stretches the stroke at its two extremities and following the
|
|
21
20
|
respective directions: v(1)v(0) and v(n-1)v(n).
|
|
22
21
|
|
|
23
22
|
:param stroke: A Stroke object.
|
|
24
|
-
:type stroke:
|
|
23
|
+
:type stroke: freestyle.types.Stroke
|
|
25
24
|
"""
|
|
26
25
|
...
|
|
27
26
|
|
|
@@ -38,33 +37,32 @@ class BezierCurveShader:
|
|
|
38
37
|
"""
|
|
39
38
|
...
|
|
40
39
|
|
|
41
|
-
def shade(self, stroke:
|
|
40
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
42
41
|
"""Transforms the stroke backbone geometry so that it corresponds to a
|
|
43
42
|
Bezier Curve approximation of the original backbone geometry.
|
|
44
43
|
|
|
45
44
|
:param stroke: A Stroke object.
|
|
46
|
-
:type stroke:
|
|
45
|
+
:type stroke: freestyle.types.Stroke
|
|
47
46
|
"""
|
|
48
47
|
...
|
|
49
48
|
|
|
50
49
|
class BlenderTextureShader:
|
|
51
50
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `BlenderTextureShader`[Texture shader]"""
|
|
52
51
|
|
|
53
|
-
def __init__(self, texture
|
|
52
|
+
def __init__(self, texture):
|
|
54
53
|
"""Builds a BlenderTextureShader object.
|
|
55
54
|
|
|
56
55
|
:param texture: A line style texture slot or a shader node tree to define
|
|
57
56
|
a set of textures.
|
|
58
|
-
:type texture: 'bpy.types.LineStyleTextureSlot'
|
|
59
57
|
"""
|
|
60
58
|
...
|
|
61
59
|
|
|
62
|
-
def shade(self, stroke:
|
|
60
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
63
61
|
"""Assigns a blender texture slot to the stroke shading in order to
|
|
64
62
|
simulate marks.
|
|
65
63
|
|
|
66
64
|
:param stroke: A Stroke object.
|
|
67
|
-
:type stroke:
|
|
65
|
+
:type stroke: freestyle.types.Stroke
|
|
68
66
|
"""
|
|
69
67
|
...
|
|
70
68
|
|
|
@@ -75,7 +73,7 @@ class CalligraphicShader:
|
|
|
75
73
|
self,
|
|
76
74
|
thickness_min: float,
|
|
77
75
|
thickness_max: float,
|
|
78
|
-
orientation: typing.Union[
|
|
76
|
+
orientation: typing.Union[typing.Sequence[float], mathutils.Vector],
|
|
79
77
|
clamp: bool,
|
|
80
78
|
):
|
|
81
79
|
"""Builds a CalligraphicShader object.
|
|
@@ -86,7 +84,7 @@ class CalligraphicShader:
|
|
|
86
84
|
:param thickness_max: The maximum thickness in the main direction.
|
|
87
85
|
:type thickness_max: float
|
|
88
86
|
:param orientation: The 2D vector giving the main direction.
|
|
89
|
-
:type orientation: typing.Union[
|
|
87
|
+
:type orientation: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
90
88
|
:param clamp: If true, the strokes are drawn in black when the stroke
|
|
91
89
|
direction is between -90 and 90 degrees with respect to the main
|
|
92
90
|
direction and drawn in white otherwise. If false, the strokes
|
|
@@ -95,14 +93,14 @@ class CalligraphicShader:
|
|
|
95
93
|
"""
|
|
96
94
|
...
|
|
97
95
|
|
|
98
|
-
def shade(self, stroke:
|
|
96
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
99
97
|
"""Assigns thicknesses to the stroke vertices so that the stroke looks
|
|
100
98
|
like made with a calligraphic tool, i.e. the stroke will be the
|
|
101
99
|
thickest in a main direction, and the thinnest in the direction
|
|
102
100
|
perpendicular to this one, and an interpolation in between.
|
|
103
101
|
|
|
104
102
|
:param stroke: A Stroke object.
|
|
105
|
-
:type stroke:
|
|
103
|
+
:type stroke: freestyle.types.Stroke
|
|
106
104
|
"""
|
|
107
105
|
...
|
|
108
106
|
|
|
@@ -119,11 +117,11 @@ class ColorNoiseShader:
|
|
|
119
117
|
"""
|
|
120
118
|
...
|
|
121
119
|
|
|
122
|
-
def shade(self, stroke:
|
|
120
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
123
121
|
"""Shader to add noise to the stroke colors.
|
|
124
122
|
|
|
125
123
|
:param stroke: A Stroke object.
|
|
126
|
-
:type stroke:
|
|
124
|
+
:type stroke: freestyle.types.Stroke
|
|
127
125
|
"""
|
|
128
126
|
...
|
|
129
127
|
|
|
@@ -144,11 +142,11 @@ class ConstantColorShader:
|
|
|
144
142
|
"""
|
|
145
143
|
...
|
|
146
144
|
|
|
147
|
-
def shade(self, stroke:
|
|
145
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
148
146
|
"""Assigns a constant color to every vertex of the Stroke.
|
|
149
147
|
|
|
150
148
|
:param stroke: A Stroke object.
|
|
151
|
-
:type stroke:
|
|
149
|
+
:type stroke: freestyle.types.Stroke
|
|
152
150
|
"""
|
|
153
151
|
...
|
|
154
152
|
|
|
@@ -163,11 +161,11 @@ class ConstantThicknessShader:
|
|
|
163
161
|
"""
|
|
164
162
|
...
|
|
165
163
|
|
|
166
|
-
def shade(self, stroke:
|
|
164
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
167
165
|
"""Assigns an absolute constant thickness to every vertex of the Stroke.
|
|
168
166
|
|
|
169
167
|
:param stroke: A Stroke object.
|
|
170
|
-
:type stroke:
|
|
168
|
+
:type stroke: freestyle.types.Stroke
|
|
171
169
|
"""
|
|
172
170
|
...
|
|
173
171
|
|
|
@@ -186,13 +184,13 @@ class ConstrainedIncreasingThicknessShader:
|
|
|
186
184
|
"""
|
|
187
185
|
...
|
|
188
186
|
|
|
189
|
-
def shade(self, stroke:
|
|
187
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
190
188
|
"""Same as the `IncreasingThicknessShader`, but here we allow
|
|
191
189
|
the user to control the thickness/length ratio so that we don't get
|
|
192
190
|
fat short lines.
|
|
193
191
|
|
|
194
192
|
:param stroke: A Stroke object.
|
|
195
|
-
:type stroke:
|
|
193
|
+
:type stroke: freestyle.types.Stroke
|
|
196
194
|
"""
|
|
197
195
|
...
|
|
198
196
|
|
|
@@ -210,7 +208,7 @@ class GuidingLinesShader:
|
|
|
210
208
|
"""
|
|
211
209
|
...
|
|
212
210
|
|
|
213
|
-
def shade(self, stroke:
|
|
211
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
214
212
|
"""Shader to modify the Stroke geometry so that it corresponds to its
|
|
215
213
|
main direction line. This shader must be used together with the
|
|
216
214
|
splitting operator using the curvature criterion. Indeed, the
|
|
@@ -219,7 +217,7 @@ class GuidingLinesShader:
|
|
|
219
217
|
approximation is.
|
|
220
218
|
|
|
221
219
|
:param stroke: A Stroke object.
|
|
222
|
-
:type stroke:
|
|
220
|
+
:type stroke: freestyle.types.Stroke
|
|
223
221
|
"""
|
|
224
222
|
...
|
|
225
223
|
|
|
@@ -258,13 +256,13 @@ class IncreasingColorShader:
|
|
|
258
256
|
"""
|
|
259
257
|
...
|
|
260
258
|
|
|
261
|
-
def shade(self, stroke:
|
|
259
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
262
260
|
"""Assigns a varying color to the stroke. The user specifies two
|
|
263
261
|
colors A and B. The stroke color will change linearly from A to B
|
|
264
262
|
between the first and the last vertex.
|
|
265
263
|
|
|
266
264
|
:param stroke: A Stroke object.
|
|
267
|
-
:type stroke:
|
|
265
|
+
:type stroke: freestyle.types.Stroke
|
|
268
266
|
"""
|
|
269
267
|
...
|
|
270
268
|
|
|
@@ -281,7 +279,7 @@ class IncreasingThicknessShader:
|
|
|
281
279
|
"""
|
|
282
280
|
...
|
|
283
281
|
|
|
284
|
-
def shade(self, stroke:
|
|
282
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
285
283
|
"""Assigns thicknesses values such as the thickness increases from a
|
|
286
284
|
thickness value A to a thickness value B between the first vertex
|
|
287
285
|
to the midpoint vertex and then decreases from B to a A between
|
|
@@ -289,7 +287,7 @@ class IncreasingThicknessShader:
|
|
|
289
287
|
linearly interpolated from A to B.
|
|
290
288
|
|
|
291
289
|
:param stroke: A Stroke object.
|
|
292
|
-
:type stroke:
|
|
290
|
+
:type stroke: freestyle.types.Stroke
|
|
293
291
|
"""
|
|
294
292
|
...
|
|
295
293
|
|
|
@@ -307,7 +305,7 @@ class PolygonalizationShader:
|
|
|
307
305
|
"""
|
|
308
306
|
...
|
|
309
307
|
|
|
310
|
-
def shade(self, stroke:
|
|
308
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
311
309
|
"""Modifies the Stroke geometry so that it looks more "polygonal".
|
|
312
310
|
The basic idea is to start from the minimal stroke approximation
|
|
313
311
|
consisting in a line joining the first vertex to the last one and
|
|
@@ -315,16 +313,17 @@ class PolygonalizationShader:
|
|
|
315
313
|
error is reached.
|
|
316
314
|
|
|
317
315
|
:param stroke: A Stroke object.
|
|
318
|
-
:type stroke:
|
|
316
|
+
:type stroke: freestyle.types.Stroke
|
|
319
317
|
"""
|
|
320
318
|
...
|
|
321
319
|
|
|
322
320
|
class RoundCapShader:
|
|
321
|
+
""" """
|
|
322
|
+
|
|
323
323
|
def round_cap_thickness(self, x):
|
|
324
324
|
"""
|
|
325
325
|
|
|
326
326
|
:param x:
|
|
327
|
-
:type x:
|
|
328
327
|
"""
|
|
329
328
|
...
|
|
330
329
|
|
|
@@ -332,7 +331,6 @@ class RoundCapShader:
|
|
|
332
331
|
"""
|
|
333
332
|
|
|
334
333
|
:param stroke:
|
|
335
|
-
:type stroke:
|
|
336
334
|
"""
|
|
337
335
|
...
|
|
338
336
|
|
|
@@ -347,11 +345,11 @@ class SamplingShader:
|
|
|
347
345
|
"""
|
|
348
346
|
...
|
|
349
347
|
|
|
350
|
-
def shade(self, stroke:
|
|
348
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
351
349
|
"""Resamples the stroke.
|
|
352
350
|
|
|
353
351
|
:param stroke: A Stroke object.
|
|
354
|
-
:type stroke:
|
|
352
|
+
:type stroke: freestyle.types.Stroke
|
|
355
353
|
"""
|
|
356
354
|
...
|
|
357
355
|
|
|
@@ -390,14 +388,14 @@ class SmoothingShader:
|
|
|
390
388
|
"""
|
|
391
389
|
...
|
|
392
390
|
|
|
393
|
-
def shade(self, stroke:
|
|
391
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
394
392
|
"""Smooths the stroke by moving the vertices to make the stroke
|
|
395
393
|
smoother. Uses curvature flow to converge towards a curve of
|
|
396
394
|
constant curvature. The diffusion method we use is anisotropic to
|
|
397
395
|
prevent the diffusion across corners.
|
|
398
396
|
|
|
399
397
|
:param stroke: A Stroke object.
|
|
400
|
-
:type stroke:
|
|
398
|
+
:type stroke: freestyle.types.Stroke
|
|
401
399
|
"""
|
|
402
400
|
...
|
|
403
401
|
|
|
@@ -427,21 +425,22 @@ class SpatialNoiseShader:
|
|
|
427
425
|
"""
|
|
428
426
|
...
|
|
429
427
|
|
|
430
|
-
def shade(self, stroke:
|
|
428
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
431
429
|
"""Spatial Noise stroke shader. Moves the vertices to make the stroke
|
|
432
430
|
more noisy.
|
|
433
431
|
|
|
434
432
|
:param stroke: A Stroke object.
|
|
435
|
-
:type stroke:
|
|
433
|
+
:type stroke: freestyle.types.Stroke
|
|
436
434
|
"""
|
|
437
435
|
...
|
|
438
436
|
|
|
439
437
|
class SquareCapShader:
|
|
438
|
+
""" """
|
|
439
|
+
|
|
440
440
|
def shade(self, stroke):
|
|
441
441
|
"""
|
|
442
442
|
|
|
443
443
|
:param stroke:
|
|
444
|
-
:type stroke:
|
|
445
444
|
"""
|
|
446
445
|
...
|
|
447
446
|
|
|
@@ -456,11 +455,11 @@ class StrokeTextureStepShader:
|
|
|
456
455
|
"""
|
|
457
456
|
...
|
|
458
457
|
|
|
459
|
-
def shade(self, stroke:
|
|
458
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
460
459
|
"""Assigns a spacing factor to the texture coordinates of the Stroke.
|
|
461
460
|
|
|
462
461
|
:param stroke: A Stroke object.
|
|
463
|
-
:type stroke:
|
|
462
|
+
:type stroke: freestyle.types.Stroke
|
|
464
463
|
"""
|
|
465
464
|
...
|
|
466
465
|
|
|
@@ -477,11 +476,11 @@ class ThicknessNoiseShader:
|
|
|
477
476
|
"""
|
|
478
477
|
...
|
|
479
478
|
|
|
480
|
-
def shade(self, stroke:
|
|
479
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
481
480
|
"""Adds some noise to the stroke thickness.
|
|
482
481
|
|
|
483
482
|
:param stroke: A Stroke object.
|
|
484
|
-
:type stroke:
|
|
483
|
+
:type stroke: freestyle.types.Stroke
|
|
485
484
|
"""
|
|
486
485
|
...
|
|
487
486
|
|
|
@@ -497,11 +496,11 @@ class TipRemoverShader:
|
|
|
497
496
|
"""
|
|
498
497
|
...
|
|
499
498
|
|
|
500
|
-
def shade(self, stroke:
|
|
499
|
+
def shade(self, stroke: freestyle.types.Stroke):
|
|
501
500
|
"""Removes the stroke's extremities.
|
|
502
501
|
|
|
503
502
|
:param stroke: A Stroke object.
|
|
504
|
-
:type stroke:
|
|
503
|
+
:type stroke: freestyle.types.Stroke
|
|
505
504
|
"""
|
|
506
505
|
...
|
|
507
506
|
|
|
@@ -514,7 +513,6 @@ class py2DCurvatureColorShader:
|
|
|
514
513
|
"""
|
|
515
514
|
|
|
516
515
|
:param stroke:
|
|
517
|
-
:type stroke:
|
|
518
516
|
"""
|
|
519
517
|
...
|
|
520
518
|
|
|
@@ -525,7 +523,6 @@ class pyBackboneStretcherNoCuspShader:
|
|
|
525
523
|
"""
|
|
526
524
|
|
|
527
525
|
:param stroke:
|
|
528
|
-
:type stroke:
|
|
529
526
|
"""
|
|
530
527
|
...
|
|
531
528
|
|
|
@@ -536,7 +533,6 @@ class pyBackboneStretcherShader:
|
|
|
536
533
|
"""
|
|
537
534
|
|
|
538
535
|
:param stroke:
|
|
539
|
-
:type stroke:
|
|
540
536
|
"""
|
|
541
537
|
...
|
|
542
538
|
|
|
@@ -547,7 +543,6 @@ class pyBluePrintCirclesShader:
|
|
|
547
543
|
"""
|
|
548
544
|
|
|
549
545
|
:param stroke:
|
|
550
|
-
:type stroke:
|
|
551
546
|
"""
|
|
552
547
|
...
|
|
553
548
|
|
|
@@ -558,25 +553,26 @@ class pyBluePrintDirectedSquaresShader:
|
|
|
558
553
|
"""
|
|
559
554
|
|
|
560
555
|
:param stroke:
|
|
561
|
-
:type stroke:
|
|
562
556
|
"""
|
|
563
557
|
...
|
|
564
558
|
|
|
565
559
|
class pyBluePrintEllipsesShader:
|
|
560
|
+
""" """
|
|
561
|
+
|
|
566
562
|
def shade(self, stroke):
|
|
567
563
|
"""
|
|
568
564
|
|
|
569
565
|
:param stroke:
|
|
570
|
-
:type stroke:
|
|
571
566
|
"""
|
|
572
567
|
...
|
|
573
568
|
|
|
574
569
|
class pyBluePrintSquaresShader:
|
|
570
|
+
""" """
|
|
571
|
+
|
|
575
572
|
def shade(self, stroke):
|
|
576
573
|
"""
|
|
577
574
|
|
|
578
575
|
:param stroke:
|
|
579
|
-
:type stroke:
|
|
580
576
|
"""
|
|
581
577
|
...
|
|
582
578
|
|
|
@@ -587,7 +583,6 @@ class pyConstantColorShader:
|
|
|
587
583
|
"""
|
|
588
584
|
|
|
589
585
|
:param stroke:
|
|
590
|
-
:type stroke:
|
|
591
586
|
"""
|
|
592
587
|
...
|
|
593
588
|
|
|
@@ -598,7 +593,6 @@ class pyConstantThicknessShader:
|
|
|
598
593
|
"""
|
|
599
594
|
|
|
600
595
|
:param stroke:
|
|
601
|
-
:type stroke:
|
|
602
596
|
"""
|
|
603
597
|
...
|
|
604
598
|
|
|
@@ -611,7 +605,6 @@ class pyConstrainedIncreasingThicknessShader:
|
|
|
611
605
|
"""
|
|
612
606
|
|
|
613
607
|
:param stroke:
|
|
614
|
-
:type stroke:
|
|
615
608
|
"""
|
|
616
609
|
...
|
|
617
610
|
|
|
@@ -622,7 +615,6 @@ class pyDecreasingThicknessShader:
|
|
|
622
615
|
"""
|
|
623
616
|
|
|
624
617
|
:param stroke:
|
|
625
|
-
:type stroke:
|
|
626
618
|
"""
|
|
627
619
|
...
|
|
628
620
|
|
|
@@ -635,7 +627,6 @@ class pyDepthDiscontinuityThicknessShader:
|
|
|
635
627
|
"""
|
|
636
628
|
|
|
637
629
|
:param stroke:
|
|
638
|
-
:type stroke:
|
|
639
630
|
"""
|
|
640
631
|
...
|
|
641
632
|
|
|
@@ -650,7 +641,6 @@ class pyDiffusion2Shader:
|
|
|
650
641
|
"""
|
|
651
642
|
|
|
652
643
|
:param stroke:
|
|
653
|
-
:type stroke:
|
|
654
644
|
"""
|
|
655
645
|
...
|
|
656
646
|
|
|
@@ -661,16 +651,16 @@ class pyFXSVaryingThicknessWithDensityShader:
|
|
|
661
651
|
"""
|
|
662
652
|
|
|
663
653
|
:param stroke:
|
|
664
|
-
:type stroke:
|
|
665
654
|
"""
|
|
666
655
|
...
|
|
667
656
|
|
|
668
657
|
class pyGuidingLineShader:
|
|
658
|
+
""" """
|
|
659
|
+
|
|
669
660
|
def shade(self, stroke):
|
|
670
661
|
"""
|
|
671
662
|
|
|
672
663
|
:param stroke:
|
|
673
|
-
:type stroke:
|
|
674
664
|
"""
|
|
675
665
|
...
|
|
676
666
|
|
|
@@ -683,7 +673,6 @@ class pyHLRShader:
|
|
|
683
673
|
"""
|
|
684
674
|
|
|
685
675
|
:param stroke:
|
|
686
|
-
:type stroke:
|
|
687
676
|
"""
|
|
688
677
|
...
|
|
689
678
|
|
|
@@ -697,7 +686,6 @@ class pyImportance2DThicknessShader:
|
|
|
697
686
|
"""
|
|
698
687
|
|
|
699
688
|
:param stroke:
|
|
700
|
-
:type stroke:
|
|
701
689
|
"""
|
|
702
690
|
...
|
|
703
691
|
|
|
@@ -708,7 +696,6 @@ class pyImportance3DThicknessShader:
|
|
|
708
696
|
"""
|
|
709
697
|
|
|
710
698
|
:param stroke:
|
|
711
|
-
:type stroke:
|
|
712
699
|
"""
|
|
713
700
|
...
|
|
714
701
|
|
|
@@ -719,7 +706,6 @@ class pyIncreasingColorShader:
|
|
|
719
706
|
"""
|
|
720
707
|
|
|
721
708
|
:param stroke:
|
|
722
|
-
:type stroke:
|
|
723
709
|
"""
|
|
724
710
|
...
|
|
725
711
|
|
|
@@ -730,7 +716,6 @@ class pyIncreasingThicknessShader:
|
|
|
730
716
|
"""
|
|
731
717
|
|
|
732
718
|
:param stroke:
|
|
733
|
-
:type stroke:
|
|
734
719
|
"""
|
|
735
720
|
...
|
|
736
721
|
|
|
@@ -741,7 +726,6 @@ class pyInterpolateColorShader:
|
|
|
741
726
|
"""
|
|
742
727
|
|
|
743
728
|
:param stroke:
|
|
744
|
-
:type stroke:
|
|
745
729
|
"""
|
|
746
730
|
...
|
|
747
731
|
|
|
@@ -755,7 +739,6 @@ class pyLengthDependingBackboneStretcherShader:
|
|
|
755
739
|
"""
|
|
756
740
|
|
|
757
741
|
:param stroke:
|
|
758
|
-
:type stroke:
|
|
759
742
|
"""
|
|
760
743
|
...
|
|
761
744
|
|
|
@@ -766,7 +749,6 @@ class pyMaterialColorShader:
|
|
|
766
749
|
"""
|
|
767
750
|
|
|
768
751
|
:param stroke:
|
|
769
|
-
:type stroke:
|
|
770
752
|
"""
|
|
771
753
|
...
|
|
772
754
|
|
|
@@ -777,7 +759,6 @@ class pyModulateAlphaShader:
|
|
|
777
759
|
"""
|
|
778
760
|
|
|
779
761
|
:param stroke:
|
|
780
|
-
:type stroke:
|
|
781
762
|
"""
|
|
782
763
|
...
|
|
783
764
|
|
|
@@ -788,7 +769,6 @@ class pyNonLinearVaryingThicknessShader:
|
|
|
788
769
|
"""
|
|
789
770
|
|
|
790
771
|
:param stroke:
|
|
791
|
-
:type stroke:
|
|
792
772
|
"""
|
|
793
773
|
...
|
|
794
774
|
|
|
@@ -802,7 +782,6 @@ class pyPerlinNoise1DShader:
|
|
|
802
782
|
"""
|
|
803
783
|
|
|
804
784
|
:param stroke:
|
|
805
|
-
:type stroke:
|
|
806
785
|
"""
|
|
807
786
|
...
|
|
808
787
|
|
|
@@ -816,7 +795,6 @@ class pyPerlinNoise2DShader:
|
|
|
816
795
|
"""
|
|
817
796
|
|
|
818
797
|
:param stroke:
|
|
819
|
-
:type stroke:
|
|
820
798
|
"""
|
|
821
799
|
...
|
|
822
800
|
|
|
@@ -827,7 +805,6 @@ class pyRandomColorShader:
|
|
|
827
805
|
"""
|
|
828
806
|
|
|
829
807
|
:param stroke:
|
|
830
|
-
:type stroke:
|
|
831
808
|
"""
|
|
832
809
|
...
|
|
833
810
|
|
|
@@ -838,7 +815,6 @@ class pySLERPThicknessShader:
|
|
|
838
815
|
"""
|
|
839
816
|
|
|
840
817
|
:param stroke:
|
|
841
|
-
:type stroke:
|
|
842
818
|
"""
|
|
843
819
|
...
|
|
844
820
|
|
|
@@ -851,7 +827,6 @@ class pySamplingShader:
|
|
|
851
827
|
"""
|
|
852
828
|
|
|
853
829
|
:param stroke:
|
|
854
|
-
:type stroke:
|
|
855
830
|
"""
|
|
856
831
|
...
|
|
857
832
|
|
|
@@ -862,7 +837,6 @@ class pySinusDisplacementShader:
|
|
|
862
837
|
"""
|
|
863
838
|
|
|
864
839
|
:param stroke:
|
|
865
|
-
:type stroke:
|
|
866
840
|
"""
|
|
867
841
|
...
|
|
868
842
|
|
|
@@ -873,7 +847,6 @@ class pyTVertexRemoverShader:
|
|
|
873
847
|
"""
|
|
874
848
|
|
|
875
849
|
:param stroke:
|
|
876
|
-
:type stroke:
|
|
877
850
|
"""
|
|
878
851
|
...
|
|
879
852
|
|
|
@@ -884,7 +857,6 @@ class pyTVertexThickenerShader:
|
|
|
884
857
|
"""
|
|
885
858
|
|
|
886
859
|
:param stroke:
|
|
887
|
-
:type stroke:
|
|
888
860
|
"""
|
|
889
861
|
...
|
|
890
862
|
|
|
@@ -897,7 +869,6 @@ class pyTimeColorShader:
|
|
|
897
869
|
"""
|
|
898
870
|
|
|
899
871
|
:param stroke:
|
|
900
|
-
:type stroke:
|
|
901
872
|
"""
|
|
902
873
|
...
|
|
903
874
|
|
|
@@ -908,7 +879,6 @@ class pyTipRemoverShader:
|
|
|
908
879
|
"""
|
|
909
880
|
|
|
910
881
|
:param stroke:
|
|
911
|
-
:type stroke:
|
|
912
882
|
"""
|
|
913
883
|
...
|
|
914
884
|
|
|
@@ -921,6 +891,5 @@ class pyZDependingThicknessShader:
|
|
|
921
891
|
"""
|
|
922
892
|
|
|
923
893
|
:param stroke:
|
|
924
|
-
:type stroke:
|
|
925
894
|
"""
|
|
926
895
|
...
|