fake-bpy-module 20250612__py3-none-any.whl → 20260118__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.
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -5
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -11
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -10
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +3 -1
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +4 -4
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- _blendfile_header/__init__.pyi +48 -0
- _bpy_internal/__init__.pyi +4 -1
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
- _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
- _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
- _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
- _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
- _bpy_internal/filesystem/__init__.pyi +5 -0
- _bpy_internal/filesystem/locking/__init__.pyi +28 -0
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
- _bpy_internal/platform/__init__.pyi +5 -0
- _bpy_types/__init__.pyi +1592 -0
- {keyingsets_utils → _keyingsets_utils}/__init__.pyi +2 -0
- {rna_info → _rna_info}/__init__.pyi +4 -2
- addon_utils/__init__.pyi +0 -13
- aud/__init__.pyi +122 -145
- bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
- bl_app_templates_system/__init__.pyi +5 -0
- bl_app_templates_system/py.typed +0 -0
- bl_math/__init__.pyi +3 -13
- bl_operators/__init__.pyi +1 -0
- bl_operators/add_mesh_torus/__init__.pyi +2 -3
- bl_operators/anim/__init__.pyi +62 -38
- bl_operators/assets/__init__.pyi +4 -9
- bl_operators/bone_selection_sets/__init__.pyi +15 -42
- bl_operators/clip/__init__.pyi +12 -31
- bl_operators/connect_to_output/__init__.pyi +2 -3
- bl_operators/console/__init__.pyi +6 -15
- bl_operators/constraint/__init__.pyi +6 -13
- bl_operators/copy_global_transform/__init__.pyi +261 -0
- bl_operators/file/__init__.pyi +6 -11
- bl_operators/freestyle/__init__.pyi +5 -12
- bl_operators/geometry_nodes/__init__.pyi +5 -12
- bl_operators/grease_pencil/__init__.pyi +2 -3
- bl_operators/image/__init__.pyi +6 -15
- bl_operators/image_as_planes/__init__.pyi +3 -10
- bl_operators/mesh/__init__.pyi +3 -49
- bl_operators/node/__init__.pyi +294 -73
- bl_operators/object/__init__.pyi +17 -53
- bl_operators/object_align/__init__.pyi +2 -3
- bl_operators/object_quick_effects/__init__.pyi +5 -12
- bl_operators/object_randomize_transform/__init__.pyi +2 -3
- bl_operators/presets/__init__.pyi +27 -76
- bl_operators/rigidbody/__init__.pyi +4 -9
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -3
- bl_operators/sequencer/__init__.pyi +12 -27
- bl_operators/spreadsheet/__init__.pyi +2 -3
- bl_operators/userpref/__init__.pyi +26 -75
- bl_operators/uvcalc_follow_active/__init__.pyi +3 -4
- bl_operators/uvcalc_lightmap/__init__.pyi +3 -4
- bl_operators/uvcalc_transform/__init__.pyi +26 -16
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -3
- bl_operators/view3d/__init__.pyi +9 -24
- bl_operators/wm/__init__.pyi +48 -139
- bl_operators/world/__init__.pyi +3 -4
- bl_ui/__init__.pyi +7 -7
- bl_ui/anim/__init__.pyi +2 -3
- bl_ui/asset_shelf/__init__.pyi +2 -3
- bl_ui/generic_ui_list/__init__.pyi +4 -19
- bl_ui/node_add_menu/__init__.pyi +263 -7
- bl_ui/node_add_menu_compositor/__init__.pyi +96 -79
- bl_ui/node_add_menu_geometry/__init__.pyi +309 -270
- bl_ui/node_add_menu_shader/__init__.pyi +49 -49
- bl_ui/node_add_menu_texture/__init__.pyi +17 -62
- bl_ui/properties_collection/__init__.pyi +9 -22
- bl_ui/properties_constraint/__init__.pyi +129 -282
- bl_ui/properties_data_armature/__init__.pyi +22 -57
- bl_ui/properties_data_bone/__init__.pyi +12 -31
- bl_ui/properties_data_camera/__init__.pyi +18 -47
- bl_ui/properties_data_curve/__init__.pyi +18 -47
- bl_ui/properties_data_curves/__init__.pyi +11 -26
- bl_ui/properties_data_empty/__init__.pyi +3 -6
- bl_ui/properties_data_grease_pencil/__init__.pyi +23 -62
- bl_ui/properties_data_lattice/__init__.pyi +7 -14
- bl_ui/properties_data_light/__init__.pyi +13 -32
- bl_ui/properties_data_lightprobe/__init__.pyi +16 -43
- bl_ui/properties_data_mesh/__init__.pyi +47 -62
- bl_ui/properties_data_metaball/__init__.pyi +9 -20
- bl_ui/properties_data_modifier/__init__.pyi +22 -28
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -19
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -3
- bl_ui/properties_data_speaker/__init__.pyi +9 -20
- bl_ui/properties_data_volume/__init__.pyi +12 -29
- bl_ui/properties_freestyle/__init__.pyi +27 -76
- bl_ui/properties_grease_pencil_common/__init__.pyi +10 -168
- bl_ui/properties_mask_common/__init__.pyi +8 -21
- bl_ui/properties_material/__init__.pyi +26 -86
- bl_ui/properties_material_gpencil/__init__.pyi +36 -57
- bl_ui/properties_object/__init__.pyi +59 -65
- bl_ui/properties_output/__init__.pyi +21 -60
- bl_ui/properties_paint_common/__init__.pyi +30 -22
- bl_ui/properties_particle/__init__.pyi +58 -161
- bl_ui/properties_physics_cloth/__init__.pyi +15 -42
- bl_ui/properties_physics_common/__init__.pyi +2 -3
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -66
- bl_ui/properties_physics_field/__init__.pyi +11 -30
- bl_ui/properties_physics_fluid/__init__.pyi +29 -84
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -3
- bl_ui/properties_physics_rigidbody/__init__.pyi +9 -24
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -39
- bl_ui/properties_physics_softbody/__init__.pyi +16 -45
- bl_ui/properties_render/__init__.pyi +139 -197
- bl_ui/properties_scene/__init__.pyi +46 -50
- bl_ui/properties_strip/__init__.pyi +744 -0
- bl_ui/properties_strip_modifier/__init__.pyi +45 -0
- bl_ui/properties_texture/__init__.pyi +30 -83
- bl_ui/properties_view_layer/__init__.pyi +84 -39
- bl_ui/properties_workspace/__init__.pyi +6 -13
- bl_ui/properties_world/__init__.pyi +14 -35
- bl_ui/space_clip/__init__.pyi +150 -231
- bl_ui/space_console/__init__.pyi +7 -18
- bl_ui/space_dopesheet/__init__.pyi +143 -100
- bl_ui/space_filebrowser/__init__.pyi +33 -90
- bl_ui/space_graph/__init__.pyi +48 -85
- bl_ui/space_image/__init__.pyi +111 -229
- bl_ui/space_info/__init__.pyi +7 -18
- bl_ui/space_nla/__init__.pyi +44 -73
- bl_ui/space_node/__init__.pyi +161 -123
- bl_ui/space_outliner/__init__.pyi +16 -45
- bl_ui/space_properties/__init__.pyi +34 -10
- bl_ui/space_sequencer/__init__.pyi +164 -901
- bl_ui/space_spreadsheet/__init__.pyi +4 -9
- bl_ui/space_statusbar/__init__.pyi +2 -3
- bl_ui/space_text/__init__.pyi +17 -48
- bl_ui/space_time/__init__.pyi +25 -71
- bl_ui/space_toolsystem_common/__init__.pyi +2 -2
- bl_ui/space_toolsystem_toolbar/__init__.pyi +30 -7
- bl_ui/space_topbar/__init__.pyi +35 -79
- bl_ui/space_userpref/__init__.pyi +185 -321
- bl_ui/space_view3d/__init__.pyi +337 -817
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +110 -880
- bl_ui/utils/__init__.pyi +0 -17
- blend_render_info/__init__.pyi +1 -0
- blf/__init__.pyi +8 -54
- bmesh/__init__.pyi +2 -9
- bmesh/geometry/__init__.pyi +1 -4
- bmesh/ops/__init__.pyi +125 -508
- bmesh/types/__init__.pyi +318 -664
- bmesh/utils/__init__.pyi +17 -43
- bpy/__init__.pyi +1 -1
- bpy/app/__init__.pyi +93 -88
- bpy/app/handlers/__init__.pyi +19 -19
- bpy/app/icons/__init__.pyi +0 -6
- bpy/app/timers/__init__.pyi +2 -7
- bpy/app/translations/__init__.pyi +8 -23
- bpy/msgbus/__init__.pyi +4 -6
- bpy/ops/action/__init__.pyi +68 -199
- bpy/ops/anim/__init__.pyi +142 -299
- bpy/ops/armature/__init__.pyi +78 -209
- bpy/ops/asset/__init__.pyi +46 -108
- bpy/ops/boid/__init__.pyi +28 -45
- bpy/ops/brush/__init__.pyi +13 -108
- bpy/ops/buttons/__init__.pyi +16 -75
- bpy/ops/cachefile/__init__.pyi +8 -65
- bpy/ops/camera/__init__.pyi +0 -11
- bpy/ops/clip/__init__.pyi +173 -471
- bpy/ops/cloth/__init__.pyi +0 -5
- bpy/ops/collection/__init__.pyi +23 -36
- bpy/ops/console/__init__.pyi +40 -98
- bpy/ops/constraint/__init__.pyi +14 -85
- bpy/ops/curve/__init__.pyi +94 -277
- bpy/ops/curves/__init__.pyi +119 -166
- bpy/ops/cycles/__init__.pyi +4 -15
- bpy/ops/dpaint/__init__.pyi +14 -24
- bpy/ops/ed/__init__.pyi +44 -92
- bpy/ops/export_anim/__init__.pyi +2 -10
- bpy/ops/export_scene/__init__.pyi +16 -170
- bpy/ops/extensions/__init__.pyi +60 -165
- bpy/ops/file/__init__.pyi +110 -246
- bpy/ops/fluid/__init__.pyi +52 -83
- bpy/ops/font/__init__.pyi +40 -144
- bpy/ops/geometry/__init__.pyi +12 -127
- bpy/ops/gizmogroup/__init__.pyi +4 -13
- bpy/ops/gpencil/__init__.pyi +22 -54
- bpy/ops/graph/__init__.pyi +92 -343
- bpy/ops/grease_pencil/__init__.pyi +218 -550
- bpy/ops/image/__init__.pyi +85 -435
- bpy/ops/import_anim/__init__.pyi +3 -17
- bpy/ops/import_curve/__init__.pyi +2 -5
- bpy/ops/import_scene/__init__.pyi +15 -49
- bpy/ops/info/__init__.pyi +16 -39
- bpy/ops/lattice/__init__.pyi +12 -36
- bpy/ops/marker/__init__.pyi +12 -51
- bpy/ops/mask/__init__.pyi +68 -193
- bpy/ops/material/__init__.pyi +18 -18
- bpy/ops/mball/__init__.pyi +4 -31
- bpy/ops/mesh/__init__.pyi +140 -967
- bpy/ops/nla/__init__.pyi +87 -206
- bpy/ops/node/__init__.pyi +714 -744
- bpy/ops/object/__init__.pyi +461 -1341
- bpy/ops/outliner/__init__.pyi +192 -376
- bpy/ops/paint/__init__.pyi +94 -319
- bpy/ops/paintcurve/__init__.pyi +20 -40
- bpy/ops/palette/__init__.pyi +14 -30
- bpy/ops/particle/__init__.pyi +86 -184
- bpy/ops/pointcloud/__init__.pyi +12 -38
- bpy/ops/pose/__init__.pyi +108 -261
- bpy/ops/poselib/__init__.pyi +32 -67
- bpy/ops/preferences/__init__.pyi +37 -187
- bpy/ops/ptcache/__init__.pyi +22 -36
- bpy/ops/render/__init__.pyi +20 -72
- bpy/ops/rigidbody/__init__.pyi +25 -63
- bpy/ops/scene/__init__.pyi +122 -181
- bpy/ops/screen/__init__.pyi +93 -221
- bpy/ops/script/__init__.pyi +4 -13
- bpy/ops/sculpt/__init__.pyi +69 -324
- bpy/ops/sculpt_curves/__init__.pyi +10 -23
- bpy/ops/sequencer/__init__.pyi +410 -730
- bpy/ops/sound/__init__.pyi +16 -114
- bpy/ops/spreadsheet/__init__.pyi +20 -37
- bpy/ops/surface/__init__.pyi +0 -48
- bpy/ops/text/__init__.pyi +112 -250
- bpy/ops/text_editor/__init__.pyi +0 -5
- bpy/ops/texture/__init__.pyi +14 -21
- bpy/ops/transform/__init__.pyi +18 -386
- bpy/ops/ui/__init__.pyi +117 -188
- bpy/ops/uilist/__init__.pyi +0 -13
- bpy/ops/uv/__init__.pyi +238 -305
- bpy/ops/view2d/__init__.pyi +16 -76
- bpy/ops/view3d/__init__.pyi +153 -377
- bpy/ops/wm/__init__.pyi +277 -1397
- bpy/ops/workspace/__init__.pyi +32 -39
- bpy/ops/world/__init__.pyi +10 -12
- bpy/path/__init__.pyi +1 -35
- bpy/props/__init__.pyi +347 -218
- bpy/stub_internal/rna_enums/__init__.pyi +142 -108
- bpy/types/__init__.pyi +77367 -101305
- bpy/utils/__init__.pyi +11 -82
- bpy/utils/previews/__init__.pyi +2 -11
- bpy/utils/units/__init__.pyi +5 -15
- bpy_extras/anim_utils/__init__.pyi +24 -16
- bpy_extras/bmesh_utils/__init__.pyi +0 -1
- bpy_extras/id_map_utils/__init__.pyi +14 -6
- bpy_extras/image_utils/__init__.pyi +2 -11
- bpy_extras/io_utils/__init__.pyi +8 -27
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/mesh_utils/__init__.pyi +0 -12
- bpy_extras/node_shader_utils/__init__.pyi +1 -9
- bpy_extras/object_utils/__init__.pyi +1 -15
- bpy_extras/view3d_utils/__init__.pyi +0 -18
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/METADATA +4 -1
- fake_bpy_module-20260118.dist-info/RECORD +385 -0
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/top_level.txt +17 -16
- freestyle/chainingiterators/__init__.pyi +5 -27
- freestyle/functions/__init__.pyi +0 -139
- freestyle/predicates/__init__.pyi +2 -53
- freestyle/shaders/__init__.pyi +15 -81
- freestyle/types/__init__.pyi +159 -799
- freestyle/utils/ContextFunctions/__init__.pyi +0 -23
- freestyle/utils/__init__.pyi +5 -11
- gpu/capabilities/__init__.pyi +0 -21
- gpu/matrix/__init__.pyi +1 -10
- gpu/platform/__init__.pyi +2 -7
- gpu/shader/__init__.pyi +26 -9
- gpu/state/__init__.pyi +60 -39
- gpu/texture/__init__.pyi +3 -5
- gpu/types/__init__.pyi +116 -184
- gpu_extras/batch/__init__.pyi +1 -5
- gpu_extras/presets/__init__.pyi +6 -8
- idprop/types/__init__.pyi +6 -6
- imbuf/__init__.pyi +3 -10
- imbuf/types/__init__.pyi +7 -21
- keyingsets_builtins/__init__.pyi +24 -67
- mathutils/__init__.pyi +241 -2207
- mathutils/bvhtree/__init__.pyi +18 -26
- mathutils/geometry/__init__.pyi +82 -132
- mathutils/interpolate/__init__.pyi +6 -5
- mathutils/kdtree/__init__.pyi +1 -11
- mathutils/noise/__init__.pyi +61 -106
- rna_prop_ui/__init__.pyi +1 -1
- bgl/__init__.pyi +0 -4256
- bpy_types/__init__.pyi +0 -30
- fake_bpy_module-20250612.dist-info/RECORD +0 -367
- {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
- {bgl → _bl_console_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
- {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
- {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
- {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
- {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
- {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
- {bl_ui_utils → _blendfile_header}/py.typed +0 -0
- /_bpy_internal/{freedesktop → platform/freedesktop}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {bpy_types → _bpy_types}/py.typed +0 -0
- {console_python → _console_python}/__init__.pyi +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/__init__.pyi +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/__init__.pyi +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/WHEEL +0 -0
|
@@ -31,9 +31,7 @@ class ContourUP1D:
|
|
|
31
31
|
contour if it is bordered by a different shape on each of its sides.
|
|
32
32
|
|
|
33
33
|
:param inter: An Interface1D object.
|
|
34
|
-
:type inter: freestyle.types.Interface1D
|
|
35
34
|
:return: True if the Interface1D is a contour, false otherwise.
|
|
36
|
-
:rtype: bool
|
|
37
35
|
"""
|
|
38
36
|
|
|
39
37
|
class DensityLowerThanUP1D:
|
|
@@ -44,10 +42,8 @@ class DensityLowerThanUP1D:
|
|
|
44
42
|
|
|
45
43
|
:param threshold: The value of the threshold density. Any Interface1D
|
|
46
44
|
having a density lower than this threshold will match.
|
|
47
|
-
:type threshold: float
|
|
48
45
|
:param sigma: The sigma value defining the density evaluation window
|
|
49
46
|
size used in the `freestyle.functions.DensityF0D` functor.
|
|
50
|
-
:type sigma: float
|
|
51
47
|
"""
|
|
52
48
|
|
|
53
49
|
def __call__(self, inter: freestyle.types.Interface1D) -> bool:
|
|
@@ -55,9 +51,7 @@ class DensityLowerThanUP1D:
|
|
|
55
51
|
than a user-defined density value.
|
|
56
52
|
|
|
57
53
|
:param inter: An Interface1D object.
|
|
58
|
-
:type inter: freestyle.types.Interface1D
|
|
59
54
|
:return: True if the density is lower than a threshold.
|
|
60
|
-
:rtype: bool
|
|
61
55
|
"""
|
|
62
56
|
|
|
63
57
|
class EqualToChainingTimeStampUP1D:
|
|
@@ -67,17 +61,14 @@ class EqualToChainingTimeStampUP1D:
|
|
|
67
61
|
"""Builds a EqualToChainingTimeStampUP1D object.
|
|
68
62
|
|
|
69
63
|
:param ts: A time stamp value.
|
|
70
|
-
:type ts: int
|
|
71
64
|
"""
|
|
72
65
|
|
|
73
66
|
def __call__(self, inter: freestyle.types.Interface1D) -> bool:
|
|
74
|
-
"""Returns true if the
|
|
67
|
+
"""Returns true if the Interface1Ds time stamp is equal to a certain
|
|
75
68
|
user-defined value.
|
|
76
69
|
|
|
77
70
|
:param inter: An Interface1D object.
|
|
78
|
-
:type inter: freestyle.types.Interface1D
|
|
79
71
|
:return: True if the time stamp is equal to a user-defined value.
|
|
80
|
-
:rtype: bool
|
|
81
72
|
"""
|
|
82
73
|
|
|
83
74
|
class EqualToTimeStampUP1D:
|
|
@@ -87,17 +78,14 @@ class EqualToTimeStampUP1D:
|
|
|
87
78
|
"""Builds a EqualToTimeStampUP1D object.
|
|
88
79
|
|
|
89
80
|
:param ts: A time stamp value.
|
|
90
|
-
:type ts: int
|
|
91
81
|
"""
|
|
92
82
|
|
|
93
83
|
def __call__(self, inter: freestyle.types.Interface1D) -> bool:
|
|
94
|
-
"""Returns true if the
|
|
84
|
+
"""Returns true if the Interface1Ds time stamp is equal to a certain
|
|
95
85
|
user-defined value.
|
|
96
86
|
|
|
97
87
|
:param inter: An Interface1D object.
|
|
98
|
-
:type inter: freestyle.types.Interface1D
|
|
99
88
|
:return: True if the time stamp is equal to a user-defined value.
|
|
100
|
-
:rtype: bool
|
|
101
89
|
"""
|
|
102
90
|
|
|
103
91
|
class ExternalContourUP1D:
|
|
@@ -109,10 +97,8 @@ class ExternalContourUP1D:
|
|
|
109
97
|
one of its sides.
|
|
110
98
|
|
|
111
99
|
:param inter: An Interface1D object.
|
|
112
|
-
:type inter: freestyle.types.Interface1D
|
|
113
100
|
:return: True if the Interface1D is an external contour, false
|
|
114
101
|
otherwise.
|
|
115
|
-
:rtype: bool
|
|
116
102
|
"""
|
|
117
103
|
|
|
118
104
|
class FalseBP1D:
|
|
@@ -124,11 +110,8 @@ class FalseBP1D:
|
|
|
124
110
|
"""Always returns false.
|
|
125
111
|
|
|
126
112
|
:param inter1: The first Interface1D object.
|
|
127
|
-
:type inter1: freestyle.types.Interface1D
|
|
128
113
|
:param inter2: The second Interface1D object.
|
|
129
|
-
:type inter2: freestyle.types.Interface1D
|
|
130
114
|
:return: False.
|
|
131
|
-
:rtype: bool
|
|
132
115
|
"""
|
|
133
116
|
|
|
134
117
|
class FalseUP0D:
|
|
@@ -138,9 +121,7 @@ class FalseUP0D:
|
|
|
138
121
|
"""Always returns false.
|
|
139
122
|
|
|
140
123
|
:param it: An Interface0DIterator object.
|
|
141
|
-
:type it: freestyle.types.Interface0DIterator
|
|
142
124
|
:return: False.
|
|
143
|
-
:rtype: bool
|
|
144
125
|
"""
|
|
145
126
|
|
|
146
127
|
class FalseUP1D:
|
|
@@ -150,9 +131,7 @@ class FalseUP1D:
|
|
|
150
131
|
"""Always returns false.
|
|
151
132
|
|
|
152
133
|
:param inter: An Interface1D object.
|
|
153
|
-
:type inter: freestyle.types.Interface1D
|
|
154
134
|
:return: False.
|
|
155
|
-
:rtype: bool
|
|
156
135
|
"""
|
|
157
136
|
|
|
158
137
|
class Length2DBP1D:
|
|
@@ -165,11 +144,8 @@ class Length2DBP1D:
|
|
|
165
144
|
of inter2.
|
|
166
145
|
|
|
167
146
|
:param inter1: The first Interface1D object.
|
|
168
|
-
:type inter1: freestyle.types.Interface1D
|
|
169
147
|
:param inter2: The second Interface1D object.
|
|
170
|
-
:type inter2: freestyle.types.Interface1D
|
|
171
148
|
:return: True or false.
|
|
172
|
-
:rtype: bool
|
|
173
149
|
"""
|
|
174
150
|
|
|
175
151
|
class MaterialBP1D:
|
|
@@ -190,7 +166,6 @@ class QuantitativeInvisibilityUP1D:
|
|
|
190
166
|
|
|
191
167
|
:param qi: The Quantitative Invisibility you want the Interface1D to
|
|
192
168
|
have.
|
|
193
|
-
:type qi: int
|
|
194
169
|
"""
|
|
195
170
|
|
|
196
171
|
def __call__(self, inter: freestyle.types.Interface1D) -> bool:
|
|
@@ -200,10 +175,8 @@ class QuantitativeInvisibilityUP1D:
|
|
|
200
175
|
equals a certain user-defined value.
|
|
201
176
|
|
|
202
177
|
:param inter: An Interface1D object.
|
|
203
|
-
:type inter: freestyle.types.Interface1D
|
|
204
178
|
:return: True if Quantitative Invisibility equals a user-defined
|
|
205
179
|
value.
|
|
206
|
-
:rtype: bool
|
|
207
180
|
"""
|
|
208
181
|
|
|
209
182
|
class SameShapeIdBP1D:
|
|
@@ -215,11 +188,8 @@ class SameShapeIdBP1D:
|
|
|
215
188
|
"""Returns true if inter1 and inter2 belong to the same shape.
|
|
216
189
|
|
|
217
190
|
:param inter1: The first Interface1D object.
|
|
218
|
-
:type inter1: freestyle.types.Interface1D
|
|
219
191
|
:param inter2: The second Interface1D object.
|
|
220
|
-
:type inter2: freestyle.types.Interface1D
|
|
221
192
|
:return: True or false.
|
|
222
|
-
:rtype: bool
|
|
223
193
|
"""
|
|
224
194
|
|
|
225
195
|
class ShapeUP1D:
|
|
@@ -229,9 +199,7 @@ class ShapeUP1D:
|
|
|
229
199
|
"""Builds a ShapeUP1D object.
|
|
230
200
|
|
|
231
201
|
:param first: The first Id component.
|
|
232
|
-
:type first: int
|
|
233
202
|
:param second: The second Id component.
|
|
234
|
-
:type second: int
|
|
235
203
|
"""
|
|
236
204
|
|
|
237
205
|
def __call__(self, inter: freestyle.types.Interface1D) -> bool:
|
|
@@ -239,10 +207,8 @@ class ShapeUP1D:
|
|
|
239
207
|
same `freestyle.types.Id` as the one specified by the user.
|
|
240
208
|
|
|
241
209
|
:param inter: An Interface1D object.
|
|
242
|
-
:type inter: freestyle.types.Interface1D
|
|
243
210
|
:return: True if Interface1D belongs to the shape of the
|
|
244
211
|
user-specified Id.
|
|
245
|
-
:rtype: bool
|
|
246
212
|
"""
|
|
247
213
|
|
|
248
214
|
class TrueBP1D:
|
|
@@ -254,11 +220,8 @@ class TrueBP1D:
|
|
|
254
220
|
"""Always returns true.
|
|
255
221
|
|
|
256
222
|
:param inter1: The first Interface1D object.
|
|
257
|
-
:type inter1: freestyle.types.Interface1D
|
|
258
223
|
:param inter2: The second Interface1D object.
|
|
259
|
-
:type inter2: freestyle.types.Interface1D
|
|
260
224
|
:return: True.
|
|
261
|
-
:rtype: bool
|
|
262
225
|
"""
|
|
263
226
|
|
|
264
227
|
class TrueUP0D:
|
|
@@ -268,9 +231,7 @@ class TrueUP0D:
|
|
|
268
231
|
"""Always returns true.
|
|
269
232
|
|
|
270
233
|
:param it: An Interface0DIterator object.
|
|
271
|
-
:type it: freestyle.types.Interface0DIterator
|
|
272
234
|
:return: True.
|
|
273
|
-
:rtype: bool
|
|
274
235
|
"""
|
|
275
236
|
|
|
276
237
|
class TrueUP1D:
|
|
@@ -280,9 +241,7 @@ class TrueUP1D:
|
|
|
280
241
|
"""Always returns true.
|
|
281
242
|
|
|
282
243
|
:param inter: An Interface1D object.
|
|
283
|
-
:type inter: freestyle.types.Interface1D
|
|
284
244
|
:return: True.
|
|
285
|
-
:rtype: bool
|
|
286
245
|
"""
|
|
287
246
|
|
|
288
247
|
class ViewMapGradientNormBP1D:
|
|
@@ -298,15 +257,12 @@ class ViewMapGradientNormBP1D:
|
|
|
298
257
|
|
|
299
258
|
:param level: The level of the pyramid from which the pixel must be
|
|
300
259
|
read.
|
|
301
|
-
:type level: int
|
|
302
260
|
:param integration_type: The integration method used to compute a single value
|
|
303
261
|
from a set of values.
|
|
304
|
-
:type integration_type: freestyle.types.IntegrationType
|
|
305
262
|
:param sampling: The resolution used to sample the chain:
|
|
306
263
|
GetViewMapGradientNormF0D is evaluated at each sample point and
|
|
307
264
|
the result is obtained by combining the resulting values into a
|
|
308
265
|
single one, following the method specified by integration_type.
|
|
309
|
-
:type sampling: float
|
|
310
266
|
"""
|
|
311
267
|
|
|
312
268
|
def __call__(
|
|
@@ -316,11 +272,8 @@ class ViewMapGradientNormBP1D:
|
|
|
316
272
|
higher for inter1 than for inter2.
|
|
317
273
|
|
|
318
274
|
:param inter1: The first Interface1D object.
|
|
319
|
-
:type inter1: freestyle.types.Interface1D
|
|
320
275
|
:param inter2: The second Interface1D object.
|
|
321
|
-
:type inter2: freestyle.types.Interface1D
|
|
322
276
|
:return: True or false.
|
|
323
|
-
:rtype: bool
|
|
324
277
|
"""
|
|
325
278
|
|
|
326
279
|
class WithinImageBoundaryUP1D:
|
|
@@ -330,13 +283,9 @@ class WithinImageBoundaryUP1D:
|
|
|
330
283
|
"""Builds an WithinImageBoundaryUP1D object.
|
|
331
284
|
|
|
332
285
|
:param xmin: X lower bound of the image boundary.
|
|
333
|
-
:type xmin: float
|
|
334
286
|
:param ymin: Y lower bound of the image boundary.
|
|
335
|
-
:type ymin: float
|
|
336
287
|
:param xmax: X upper bound of the image boundary.
|
|
337
|
-
:type xmax: float
|
|
338
288
|
:param ymax: Y upper bound of the image boundary.
|
|
339
|
-
:type ymax: float
|
|
340
289
|
"""
|
|
341
290
|
|
|
342
291
|
def __call__(self, inter) -> None:
|
freestyle/shaders/__init__.pyi
CHANGED
|
@@ -23,7 +23,6 @@ class BackboneStretcherShader:
|
|
|
23
23
|
"""Builds a BackboneStretcherShader object.
|
|
24
24
|
|
|
25
25
|
:param amount: The stretching amount value.
|
|
26
|
-
:type amount: float
|
|
27
26
|
"""
|
|
28
27
|
|
|
29
28
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -31,7 +30,6 @@ class BackboneStretcherShader:
|
|
|
31
30
|
respective directions: v(1)v(0) and v(n-1)v(n).
|
|
32
31
|
|
|
33
32
|
:param stroke: A Stroke object.
|
|
34
|
-
:type stroke: freestyle.types.Stroke
|
|
35
33
|
"""
|
|
36
34
|
|
|
37
35
|
class BezierCurveShader:
|
|
@@ -40,10 +38,9 @@ class BezierCurveShader:
|
|
|
40
38
|
def __init__(self, error: float = 4.0) -> None:
|
|
41
39
|
"""Builds a BezierCurveShader object.
|
|
42
40
|
|
|
43
|
-
:param error: The error
|
|
41
|
+
:param error: The error were allowing for the approximation. This
|
|
44
42
|
error is the max distance allowed between the new curve and the
|
|
45
43
|
original geometry.
|
|
46
|
-
:type error: float
|
|
47
44
|
"""
|
|
48
45
|
|
|
49
46
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -51,7 +48,6 @@ class BezierCurveShader:
|
|
|
51
48
|
Bezier Curve approximation of the original backbone geometry.
|
|
52
49
|
|
|
53
50
|
:param stroke: A Stroke object.
|
|
54
|
-
:type stroke: freestyle.types.Stroke
|
|
55
51
|
"""
|
|
56
52
|
|
|
57
53
|
class BlenderTextureShader:
|
|
@@ -62,9 +58,7 @@ class BlenderTextureShader:
|
|
|
62
58
|
) -> None:
|
|
63
59
|
"""Builds a BlenderTextureShader object.
|
|
64
60
|
|
|
65
|
-
|
|
66
|
-
a set of textures.
|
|
67
|
-
:type texture: bpy.types.LineStyleTextureSlot | bpy.types.ShaderNodeTree
|
|
61
|
+
:param texture: A line style texture slot or a shader node tree to define a set of textures.
|
|
68
62
|
"""
|
|
69
63
|
|
|
70
64
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -72,7 +66,6 @@ class BlenderTextureShader:
|
|
|
72
66
|
simulate marks.
|
|
73
67
|
|
|
74
68
|
:param stroke: A Stroke object.
|
|
75
|
-
:type stroke: freestyle.types.Stroke
|
|
76
69
|
"""
|
|
77
70
|
|
|
78
71
|
class CalligraphicShader:
|
|
@@ -89,16 +82,12 @@ class CalligraphicShader:
|
|
|
89
82
|
|
|
90
83
|
:param thickness_min: The minimum thickness in the direction
|
|
91
84
|
perpendicular to the main direction.
|
|
92
|
-
:type thickness_min: float
|
|
93
85
|
:param thickness_max: The maximum thickness in the main direction.
|
|
94
|
-
:type thickness_max: float
|
|
95
86
|
:param orientation: The 2D vector giving the main direction.
|
|
96
|
-
:type orientation: collections.abc.Sequence[float] | mathutils.Vector
|
|
97
87
|
:param clamp: If true, the strokes are drawn in black when the stroke
|
|
98
88
|
direction is between -90 and 90 degrees with respect to the main
|
|
99
89
|
direction and drawn in white otherwise. If false, the strokes
|
|
100
90
|
are always drawn in black.
|
|
101
|
-
:type clamp: bool
|
|
102
91
|
"""
|
|
103
92
|
|
|
104
93
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -108,7 +97,6 @@ class CalligraphicShader:
|
|
|
108
97
|
perpendicular to this one, and an interpolation in between.
|
|
109
98
|
|
|
110
99
|
:param stroke: A Stroke object.
|
|
111
|
-
:type stroke: freestyle.types.Stroke
|
|
112
100
|
"""
|
|
113
101
|
|
|
114
102
|
class ColorNoiseShader:
|
|
@@ -118,16 +106,13 @@ class ColorNoiseShader:
|
|
|
118
106
|
"""Builds a ColorNoiseShader object.
|
|
119
107
|
|
|
120
108
|
:param amplitude: The amplitude of the noise signal.
|
|
121
|
-
:type amplitude: float
|
|
122
109
|
:param period: The period of the noise signal.
|
|
123
|
-
:type period: float
|
|
124
110
|
"""
|
|
125
111
|
|
|
126
112
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
127
113
|
"""Shader to add noise to the stroke colors.
|
|
128
114
|
|
|
129
115
|
:param stroke: A Stroke object.
|
|
130
|
-
:type stroke: freestyle.types.Stroke
|
|
131
116
|
"""
|
|
132
117
|
|
|
133
118
|
class ConstantColorShader:
|
|
@@ -139,20 +124,15 @@ class ConstantColorShader:
|
|
|
139
124
|
"""Builds a ConstantColorShader object.
|
|
140
125
|
|
|
141
126
|
:param red: The red component.
|
|
142
|
-
:type red: float
|
|
143
127
|
:param green: The green component.
|
|
144
|
-
:type green: float
|
|
145
128
|
:param blue: The blue component.
|
|
146
|
-
:type blue: float
|
|
147
129
|
:param alpha: The alpha value.
|
|
148
|
-
:type alpha: float
|
|
149
130
|
"""
|
|
150
131
|
|
|
151
132
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
152
133
|
"""Assigns a constant color to every vertex of the Stroke.
|
|
153
134
|
|
|
154
135
|
:param stroke: A Stroke object.
|
|
155
|
-
:type stroke: freestyle.types.Stroke
|
|
156
136
|
"""
|
|
157
137
|
|
|
158
138
|
class ConstantThicknessShader:
|
|
@@ -162,14 +142,12 @@ class ConstantThicknessShader:
|
|
|
162
142
|
"""Builds a ConstantThicknessShader object.
|
|
163
143
|
|
|
164
144
|
:param thickness: The thickness that must be assigned to the stroke.
|
|
165
|
-
:type thickness: float
|
|
166
145
|
"""
|
|
167
146
|
|
|
168
147
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
169
148
|
"""Assigns an absolute constant thickness to every vertex of the Stroke.
|
|
170
149
|
|
|
171
150
|
:param stroke: A Stroke object.
|
|
172
|
-
:type stroke: freestyle.types.Stroke
|
|
173
151
|
"""
|
|
174
152
|
|
|
175
153
|
class ConstrainedIncreasingThicknessShader:
|
|
@@ -181,20 +159,16 @@ class ConstrainedIncreasingThicknessShader:
|
|
|
181
159
|
"""Builds a ConstrainedIncreasingThicknessShader object.
|
|
182
160
|
|
|
183
161
|
:param thickness_min: The minimum thickness.
|
|
184
|
-
:type thickness_min: float
|
|
185
162
|
:param thickness_max: The maximum thickness.
|
|
186
|
-
:
|
|
187
|
-
:param ratio: The thickness/length ratio that we don't want to exceed.
|
|
188
|
-
:type ratio: float
|
|
163
|
+
:param ratio: The thickness/length ratio that we dont want to exceed.
|
|
189
164
|
"""
|
|
190
165
|
|
|
191
166
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
192
167
|
"""Same as the `IncreasingThicknessShader`, but here we allow
|
|
193
|
-
the user to control the thickness/length ratio so that we
|
|
168
|
+
the user to control the thickness/length ratio so that we dont get
|
|
194
169
|
fat short lines.
|
|
195
170
|
|
|
196
171
|
:param stroke: A Stroke object.
|
|
197
|
-
:type stroke: freestyle.types.Stroke
|
|
198
172
|
"""
|
|
199
173
|
|
|
200
174
|
class GuidingLinesShader:
|
|
@@ -207,7 +181,6 @@ class GuidingLinesShader:
|
|
|
207
181
|
middle of the initial stroke bounding box. offset is the value
|
|
208
182
|
of the displacement which is applied to this line along its
|
|
209
183
|
normal.
|
|
210
|
-
:type offset: float
|
|
211
184
|
"""
|
|
212
185
|
|
|
213
186
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -215,11 +188,10 @@ class GuidingLinesShader:
|
|
|
215
188
|
main direction line. This shader must be used together with the
|
|
216
189
|
splitting operator using the curvature criterion. Indeed, the
|
|
217
190
|
precision of the approximation will depend on the size of the
|
|
218
|
-
|
|
191
|
+
strokes pieces. The bigger the pieces are, the rougher the
|
|
219
192
|
approximation is.
|
|
220
193
|
|
|
221
194
|
:param stroke: A Stroke object.
|
|
222
|
-
:type stroke: freestyle.types.Stroke
|
|
223
195
|
"""
|
|
224
196
|
|
|
225
197
|
class IncreasingColorShader:
|
|
@@ -239,21 +211,13 @@ class IncreasingColorShader:
|
|
|
239
211
|
"""Builds an IncreasingColorShader object.
|
|
240
212
|
|
|
241
213
|
:param red_min: The first color red component.
|
|
242
|
-
:type red_min: float
|
|
243
214
|
:param green_min: The first color green component.
|
|
244
|
-
:type green_min: float
|
|
245
215
|
:param blue_min: The first color blue component.
|
|
246
|
-
:type blue_min: float
|
|
247
216
|
:param alpha_min: The first color alpha value.
|
|
248
|
-
:type alpha_min: float
|
|
249
217
|
:param red_max: The second color red component.
|
|
250
|
-
:type red_max: float
|
|
251
218
|
:param green_max: The second color green component.
|
|
252
|
-
:type green_max: float
|
|
253
219
|
:param blue_max: The second color blue component.
|
|
254
|
-
:type blue_max: float
|
|
255
220
|
:param alpha_max: The second color alpha value.
|
|
256
|
-
:type alpha_max: float
|
|
257
221
|
"""
|
|
258
222
|
|
|
259
223
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -262,7 +226,6 @@ class IncreasingColorShader:
|
|
|
262
226
|
between the first and the last vertex.
|
|
263
227
|
|
|
264
228
|
:param stroke: A Stroke object.
|
|
265
|
-
:type stroke: freestyle.types.Stroke
|
|
266
229
|
"""
|
|
267
230
|
|
|
268
231
|
class IncreasingThicknessShader:
|
|
@@ -272,9 +235,7 @@ class IncreasingThicknessShader:
|
|
|
272
235
|
"""Builds an IncreasingThicknessShader object.
|
|
273
236
|
|
|
274
237
|
:param thickness_A: The first thickness value.
|
|
275
|
-
:type thickness_A: float
|
|
276
238
|
:param thickness_B: The second thickness value.
|
|
277
|
-
:type thickness_B: float
|
|
278
239
|
"""
|
|
279
240
|
|
|
280
241
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -285,7 +246,6 @@ class IncreasingThicknessShader:
|
|
|
285
246
|
linearly interpolated from A to B.
|
|
286
247
|
|
|
287
248
|
:param stroke: A Stroke object.
|
|
288
|
-
:type stroke: freestyle.types.Stroke
|
|
289
249
|
"""
|
|
290
250
|
|
|
291
251
|
class PolygonalizationShader:
|
|
@@ -298,7 +258,6 @@ class PolygonalizationShader:
|
|
|
298
258
|
with respect to the original geometry. The smaller, the closer
|
|
299
259
|
the new stroke is to the original one. This error corresponds to
|
|
300
260
|
the maximum distance between the new stroke and the old one.
|
|
301
|
-
:type error: float
|
|
302
261
|
"""
|
|
303
262
|
|
|
304
263
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -309,7 +268,6 @@ class PolygonalizationShader:
|
|
|
309
268
|
error is reached.
|
|
310
269
|
|
|
311
270
|
:param stroke: A Stroke object.
|
|
312
|
-
:type stroke: freestyle.types.Stroke
|
|
313
271
|
"""
|
|
314
272
|
|
|
315
273
|
class RoundCapShader:
|
|
@@ -332,14 +290,12 @@ class SamplingShader:
|
|
|
332
290
|
"""Builds a SamplingShader object.
|
|
333
291
|
|
|
334
292
|
:param sampling: The sampling to use for the stroke resampling.
|
|
335
|
-
:type sampling: float
|
|
336
293
|
"""
|
|
337
294
|
|
|
338
295
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
339
296
|
"""Resamples the stroke.
|
|
340
297
|
|
|
341
298
|
:param stroke: A Stroke object.
|
|
342
|
-
:type stroke: freestyle.types.Stroke
|
|
343
299
|
"""
|
|
344
300
|
|
|
345
301
|
class SmoothingShader:
|
|
@@ -359,21 +315,13 @@ class SmoothingShader:
|
|
|
359
315
|
"""Builds a SmoothingShader object.
|
|
360
316
|
|
|
361
317
|
:param num_iterations: The number of iterations.
|
|
362
|
-
:type num_iterations: int
|
|
363
318
|
:param factor_point: 0.1
|
|
364
|
-
:type factor_point: float
|
|
365
319
|
:param factor_curvature: 0.0
|
|
366
|
-
:type factor_curvature: float
|
|
367
320
|
:param factor_curvature_difference: 0.2
|
|
368
|
-
:type factor_curvature_difference: float
|
|
369
321
|
:param aniso_point: 0.0
|
|
370
|
-
:type aniso_point: float
|
|
371
322
|
:param aniso_normal: 0.0
|
|
372
|
-
:type aniso_normal: float
|
|
373
323
|
:param aniso_curvature: 0.0
|
|
374
|
-
:type aniso_curvature: float
|
|
375
324
|
:param carricature_factor: 1.0
|
|
376
|
-
:type carricature_factor: float
|
|
377
325
|
"""
|
|
378
326
|
|
|
379
327
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -383,7 +331,6 @@ class SmoothingShader:
|
|
|
383
331
|
prevent the diffusion across corners.
|
|
384
332
|
|
|
385
333
|
:param stroke: A Stroke object.
|
|
386
|
-
:type stroke: freestyle.types.Stroke
|
|
387
334
|
"""
|
|
388
335
|
|
|
389
336
|
class SpatialNoiseShader:
|
|
@@ -400,15 +347,10 @@ class SpatialNoiseShader:
|
|
|
400
347
|
"""Builds a SpatialNoiseShader object.
|
|
401
348
|
|
|
402
349
|
:param amount: The amplitude of the noise.
|
|
403
|
-
:type amount: float
|
|
404
350
|
:param scale: The noise frequency.
|
|
405
|
-
:type scale: float
|
|
406
351
|
:param num_octaves: The number of octaves
|
|
407
|
-
:type num_octaves: int
|
|
408
352
|
:param smooth: True if you want the noise to be smooth.
|
|
409
|
-
:
|
|
410
|
-
:param pure_random: True if you don't want any coherence.
|
|
411
|
-
:type pure_random: bool
|
|
353
|
+
:param pure_random: True if you dont want any coherence.
|
|
412
354
|
"""
|
|
413
355
|
|
|
414
356
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
@@ -416,7 +358,6 @@ class SpatialNoiseShader:
|
|
|
416
358
|
more noisy.
|
|
417
359
|
|
|
418
360
|
:param stroke: A Stroke object.
|
|
419
|
-
:type stroke: freestyle.types.Stroke
|
|
420
361
|
"""
|
|
421
362
|
|
|
422
363
|
class SquareCapShader:
|
|
@@ -433,14 +374,12 @@ class StrokeTextureStepShader:
|
|
|
433
374
|
"""Builds a StrokeTextureStepShader object.
|
|
434
375
|
|
|
435
376
|
:param step: The spacing along the stroke.
|
|
436
|
-
:type step: float
|
|
437
377
|
"""
|
|
438
378
|
|
|
439
379
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
440
380
|
"""Assigns a spacing factor to the texture coordinates of the Stroke.
|
|
441
381
|
|
|
442
382
|
:param stroke: A Stroke object.
|
|
443
|
-
:type stroke: freestyle.types.Stroke
|
|
444
383
|
"""
|
|
445
384
|
|
|
446
385
|
class ThicknessNoiseShader:
|
|
@@ -450,16 +389,13 @@ class ThicknessNoiseShader:
|
|
|
450
389
|
"""Builds a ThicknessNoiseShader object.
|
|
451
390
|
|
|
452
391
|
:param amplitude: The amplitude of the noise signal.
|
|
453
|
-
:type amplitude: float
|
|
454
392
|
:param period: The period of the noise signal.
|
|
455
|
-
:type period: float
|
|
456
393
|
"""
|
|
457
394
|
|
|
458
395
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
459
396
|
"""Adds some noise to the stroke thickness.
|
|
460
397
|
|
|
461
398
|
:param stroke: A Stroke object.
|
|
462
|
-
:type stroke: freestyle.types.Stroke
|
|
463
399
|
"""
|
|
464
400
|
|
|
465
401
|
class TipRemoverShader:
|
|
@@ -470,14 +406,12 @@ class TipRemoverShader:
|
|
|
470
406
|
|
|
471
407
|
:param tip_length: The length of the piece of stroke we want to remove
|
|
472
408
|
at each extremity.
|
|
473
|
-
:type tip_length: float
|
|
474
409
|
"""
|
|
475
410
|
|
|
476
411
|
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
477
|
-
"""Removes the
|
|
412
|
+
"""Removes the strokes extremities.
|
|
478
413
|
|
|
479
414
|
:param stroke: A Stroke object.
|
|
480
|
-
:type stroke: freestyle.types.Stroke
|
|
481
415
|
"""
|
|
482
416
|
|
|
483
417
|
class py2DCurvatureColorShader:
|
|
@@ -492,7 +426,7 @@ class py2DCurvatureColorShader:
|
|
|
492
426
|
"""
|
|
493
427
|
|
|
494
428
|
class pyBackboneStretcherNoCuspShader:
|
|
495
|
-
"""Stretches the
|
|
429
|
+
"""Stretches the strokes backbone, excluding cusp vertices (end junctions)."""
|
|
496
430
|
|
|
497
431
|
def shade(self, stroke) -> None:
|
|
498
432
|
"""
|
|
@@ -501,7 +435,7 @@ class pyBackboneStretcherNoCuspShader:
|
|
|
501
435
|
"""
|
|
502
436
|
|
|
503
437
|
class pyBackboneStretcherShader:
|
|
504
|
-
"""Stretches the
|
|
438
|
+
"""Stretches the strokes backbone by a given length (in pixels)."""
|
|
505
439
|
|
|
506
440
|
def shade(self, stroke) -> None:
|
|
507
441
|
"""
|
|
@@ -561,7 +495,7 @@ class pyConstantThicknessShader:
|
|
|
561
495
|
|
|
562
496
|
class pyConstrainedIncreasingThicknessShader:
|
|
563
497
|
"""Increasingly thickens the stroke, constrained by a ratio of the
|
|
564
|
-
|
|
498
|
+
strokes length.
|
|
565
499
|
"""
|
|
566
500
|
|
|
567
501
|
def shade(self, stroke) -> None:
|
|
@@ -580,7 +514,7 @@ class pyDecreasingThicknessShader:
|
|
|
580
514
|
"""
|
|
581
515
|
|
|
582
516
|
class pyDepthDiscontinuityThicknessShader:
|
|
583
|
-
"""Assigns a thickness to the stroke based on the
|
|
517
|
+
"""Assigns a thickness to the stroke based on the strokes distance
|
|
584
518
|
to the camera (Z-value).
|
|
585
519
|
"""
|
|
586
520
|
|
|
@@ -679,8 +613,8 @@ class pyInterpolateColorShader:
|
|
|
679
613
|
"""
|
|
680
614
|
|
|
681
615
|
class pyLengthDependingBackboneStretcherShader:
|
|
682
|
-
"""Stretches the
|
|
683
|
-
NOTE:
|
|
616
|
+
"""Stretches the strokes backbone proportional to the strokes length
|
|
617
|
+
NOTE: youll probably want an l somewhere between (0.5 - 0). A value that
|
|
684
618
|
is too high may yield unexpected results.
|
|
685
619
|
"""
|
|
686
620
|
|
|
@@ -700,7 +634,7 @@ class pyMaterialColorShader:
|
|
|
700
634
|
"""
|
|
701
635
|
|
|
702
636
|
class pyModulateAlphaShader:
|
|
703
|
-
"""Limits the
|
|
637
|
+
"""Limits the strokes alpha between a min and max value."""
|
|
704
638
|
|
|
705
639
|
def shade(self, stroke) -> None:
|
|
706
640
|
"""
|
|
@@ -818,7 +752,7 @@ class pyTipRemoverShader:
|
|
|
818
752
|
"""
|
|
819
753
|
|
|
820
754
|
class pyZDependingThicknessShader:
|
|
821
|
-
"""Assigns thickness based on an
|
|
755
|
+
"""Assigns thickness based on an objects local Z depth (point
|
|
822
756
|
closest to camera is 1, point furthest from camera is zero).
|
|
823
757
|
"""
|
|
824
758
|
|