fake-bpy-module 20240210__py3-none-any.whl → 20240326__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.
- addon_utils/__init__.pyi +54 -11
- animsys_refactor/__init__.pyi +36 -7
- aud/__init__.pyi +307 -321
- bgl/__init__.pyi +2926 -865
- bl_app_override/__init__.pyi +14 -4
- bl_app_override/helpers/__init__.pyi +24 -3
- bl_app_template_utils/__init__.pyi +19 -5
- bl_console_utils/__init__.pyi +0 -1
- bl_console_utils/autocomplete/__init__.pyi +2 -3
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
- bl_i18n_utils/__init__.pyi +2 -3
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
- bl_i18n_utils/merge_po/__init__.pyi +4 -2
- bl_i18n_utils/settings/__init__.pyi +53 -7
- bl_i18n_utils/utils/__init__.pyi +332 -45
- bl_i18n_utils/utils_cli/__init__.pyi +29 -7
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
- bl_keymap_utils/__init__.pyi +2 -3
- bl_keymap_utils/io/__init__.pyi +44 -10
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
- bl_keymap_utils/versioning/__init__.pyi +4 -2
- bl_math/__init__.pyi +21 -22
- bl_operators/__init__.pyi +30 -24
- bl_operators/add_mesh_torus/__init__.pyi +171 -38
- bl_operators/anim/__init__.pyi +1065 -227
- bl_operators/assets/__init__.pyi +427 -93
- bl_operators/bmesh/__init__.pyi +0 -1
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
- bl_operators/clip/__init__.pyi +1342 -288
- bl_operators/console/__init__.pyi +647 -141
- bl_operators/constraint/__init__.pyi +524 -113
- bl_operators/file/__init__.pyi +396 -85
- bl_operators/freestyle/__init__.pyi +532 -114
- bl_operators/geometry_nodes/__init__.pyi +2412 -597
- bl_operators/image/__init__.pyi +380 -83
- bl_operators/mesh/__init__.pyi +401 -86
- bl_operators/node/__init__.pyi +1756 -385
- bl_operators/object/__init__.pyi +2022 -553
- bl_operators/object_align/__init__.pyi +145 -32
- bl_operators/object_quick_effects/__init__.pyi +555 -125
- bl_operators/object_randomize_transform/__init__.pyi +136 -33
- bl_operators/presets/__init__.pyi +3516 -709
- bl_operators/rigidbody/__init__.pyi +401 -86
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
- bl_operators/sequencer/__init__.pyi +731 -150
- bl_operators/spreadsheet/__init__.pyi +145 -31
- bl_operators/userpref/__init__.pyi +3416 -825
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
- bl_operators/uvcalc_transform/__init__.pyi +344 -74
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
- bl_operators/view3d/__init__.pyi +697 -147
- bl_operators/wm/__init__.pyi +6287 -1534
- bl_previews_utils/__init__.pyi +0 -1
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
- bl_rna_utils/__init__.pyi +0 -1
- bl_rna_utils/data_path/__init__.pyi +12 -3
- bl_text_utils/__init__.pyi +0 -1
- bl_text_utils/external_editor/__init__.pyi +4 -2
- bl_ui/__init__.pyi +567 -170
- bl_ui/anim/__init__.pyi +164 -34
- bl_ui/asset_shelf/__init__.pyi +146 -32
- bl_ui/generic_ui_list/__init__.pyi +471 -100
- bl_ui/node_add_menu/__init__.pyi +196 -41
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
- bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
- bl_ui/properties_animviz/__init__.pyi +32 -3
- bl_ui/properties_collection/__init__.pyi +787 -180
- bl_ui/properties_constraint/__init__.pyi +28635 -5524
- bl_ui/properties_data_armature/__init__.pyi +1905 -449
- bl_ui/properties_data_bone/__init__.pyi +1560 -337
- bl_ui/properties_data_camera/__init__.pyi +2269 -495
- bl_ui/properties_data_curve/__init__.pyi +2362 -535
- bl_ui/properties_data_curves/__init__.pyi +951 -204
- bl_ui/properties_data_empty/__init__.pyi +317 -70
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
- bl_ui/properties_data_lattice/__init__.pyi +472 -105
- bl_ui/properties_data_light/__init__.pyi +1570 -338
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
- bl_ui/properties_data_mesh/__init__.pyi +3205 -768
- bl_ui/properties_data_metaball/__init__.pyi +774 -171
- bl_ui/properties_data_modifier/__init__.pyi +1554 -329
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
- bl_ui/properties_data_speaker/__init__.pyi +782 -169
- bl_ui/properties_data_volume/__init__.pyi +1243 -282
- bl_ui/properties_freestyle/__init__.pyi +4071 -1031
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
- bl_ui/properties_mask_common/__init__.pyi +1256 -250
- bl_ui/properties_material/__init__.pyi +2351 -543
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
- bl_ui/properties_object/__init__.pyi +2179 -513
- bl_ui/properties_output/__init__.pyi +2956 -706
- bl_ui/properties_paint_common/__init__.pyi +947 -141
- bl_ui/properties_particle/__init__.pyi +8322 -1971
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
- bl_ui/properties_physics_common/__init__.pyi +200 -45
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
- bl_ui/properties_physics_field/__init__.pyi +1695 -365
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
- bl_ui/properties_render/__init__.pyi +8312 -1934
- bl_ui/properties_scene/__init__.pyi +2211 -540
- bl_ui/properties_texture/__init__.pyi +4185 -1014
- bl_ui/properties_view_layer/__init__.pyi +2803 -665
- bl_ui/properties_workspace/__init__.pyi +626 -149
- bl_ui/properties_world/__init__.pyi +1092 -235
- bl_ui/space_clip/__init__.pyi +11475 -2806
- bl_ui/space_console/__init__.pyi +967 -203
- bl_ui/space_dopesheet/__init__.pyi +4260 -967
- bl_ui/space_filebrowser/__init__.pyi +4852 -1188
- bl_ui/space_graph/__init__.pyi +3251 -703
- bl_ui/space_image/__init__.pyi +12218 -2968
- bl_ui/space_info/__init__.pyi +964 -201
- bl_ui/space_nla/__init__.pyi +2756 -585
- bl_ui/space_node/__init__.pyi +5661 -1266
- bl_ui/space_outliner/__init__.pyi +2294 -479
- bl_ui/space_properties/__init__.pyi +417 -93
- bl_ui/space_sequencer/__init__.pyi +12436 -3010
- bl_ui/space_spreadsheet/__init__.pyi +184 -37
- bl_ui/space_statusbar/__init__.pyi +135 -31
- bl_ui/space_text/__init__.pyi +2556 -543
- bl_ui/space_time/__init__.pyi +1151 -244
- bl_ui/space_toolsystem_common/__init__.pyi +368 -67
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
- bl_ui/space_topbar/__init__.pyi +4214 -888
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +42751 -9613
- bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
- bl_ui/utils/__init__.pyi +42 -5
- bl_ui_utils/__init__.pyi +0 -1
- bl_ui_utils/bug_report_url/__init__.pyi +4 -2
- bl_ui_utils/layout/__init__.pyi +4 -2
- blend_render_info/__init__.pyi +13 -4
- blf/__init__.pyi +15 -18
- bmesh/__init__.pyi +18 -18
- bmesh/geometry/__init__.pyi +5 -6
- bmesh/ops/__init__.pyi +1337 -1158
- bmesh/types/__init__.pyi +464 -374
- bmesh/utils/__init__.pyi +64 -70
- bpy/__init__.pyi +6 -7
- bpy/app/__init__.pyi +36 -38
- bpy/app/handlers/__init__.pyi +37 -38
- bpy/app/icons/__init__.pyi +8 -11
- bpy/app/timers/__init__.pyi +18 -17
- bpy/app/translations/__init__.pyi +32 -30
- bpy/msgbus/__init__.pyi +25 -20
- bpy/ops/__init__.pyi +63 -64
- bpy/ops/action/__init__.pyi +408 -436
- bpy/ops/anim/__init__.pyi +459 -577
- bpy/ops/armature/__init__.pyi +396 -498
- bpy/ops/asset/__init__.pyi +187 -213
- bpy/ops/boid/__init__.pyi +50 -68
- bpy/ops/brush/__init__.pyi +72 -97
- bpy/ops/buttons/__init__.pyi +202 -193
- bpy/ops/cachefile/__init__.pyi +198 -188
- bpy/ops/camera/__init__.pyi +24 -31
- bpy/ops/clip/__init__.pyi +1021 -1082
- bpy/ops/cloth/__init__.pyi +11 -15
- bpy/ops/collection/__init__.pyi +36 -51
- bpy/ops/console/__init__.pyi +155 -209
- bpy/ops/constraint/__init__.pyi +286 -254
- bpy/ops/curve/__init__.pyi +597 -659
- bpy/ops/curves/__init__.pyi +191 -225
- bpy/ops/cycles/__init__.pyi +21 -30
- bpy/ops/dpaint/__init__.pyi +34 -47
- bpy/ops/ed/__init__.pyi +160 -176
- bpy/ops/export_anim/__init__.pyi +51 -34
- bpy/ops/export_mesh/__init__.pyi +47 -45
- bpy/ops/export_scene/__init__.pyi +659 -504
- bpy/ops/file/__init__.pyi +469 -474
- bpy/ops/fluid/__init__.pyi +89 -119
- bpy/ops/font/__init__.pyi +325 -361
- bpy/ops/geometry/__init__.pyi +86 -114
- bpy/ops/gizmogroup/__init__.pyi +22 -28
- bpy/ops/gpencil/__init__.pyi +1900 -1976
- bpy/ops/graph/__init__.pyi +875 -894
- bpy/ops/grease_pencil/__init__.pyi +572 -508
- bpy/ops/image/__init__.pyi +805 -855
- bpy/ops/import_anim/__init__.pyi +66 -46
- bpy/ops/import_curve/__init__.pyi +7 -11
- bpy/ops/import_mesh/__init__.pyi +19 -25
- bpy/ops/import_scene/__init__.pyi +164 -147
- bpy/ops/info/__init__.pyi +88 -85
- bpy/ops/lattice/__init__.pyi +86 -90
- bpy/ops/marker/__init__.pyi +135 -146
- bpy/ops/mask/__init__.pyi +372 -436
- bpy/ops/material/__init__.pyi +18 -25
- bpy/ops/mball/__init__.pyi +93 -99
- bpy/ops/mesh/__init__.pyi +2525 -2664
- bpy/ops/nla/__init__.pyi +398 -455
- bpy/ops/node/__init__.pyi +1015 -1207
- bpy/ops/object/__init__.pyi +3423 -3390
- bpy/ops/outliner/__init__.pyi +667 -685
- bpy/ops/paint/__init__.pyi +719 -672
- bpy/ops/paintcurve/__init__.pyi +64 -85
- bpy/ops/palette/__init__.pyi +48 -67
- bpy/ops/particle/__init__.pyi +323 -367
- bpy/ops/pose/__init__.pyi +569 -474
- bpy/ops/poselib/__init__.pyi +77 -100
- bpy/ops/preferences/__init__.pyi +460 -512
- bpy/ops/ptcache/__init__.pyi +46 -63
- bpy/ops/render/__init__.pyi +121 -155
- bpy/ops/rigidbody/__init__.pyi +148 -143
- bpy/ops/scene/__init__.pyi +336 -380
- bpy/ops/screen/__init__.pyi +454 -530
- bpy/ops/script/__init__.pyi +19 -28
- bpy/ops/sculpt/__init__.pyi +734 -587
- bpy/ops/sculpt_curves/__init__.pyi +51 -56
- bpy/ops/sequencer/__init__.pyi +1617 -1500
- bpy/ops/sound/__init__.pyi +392 -315
- bpy/ops/spreadsheet/__init__.pyi +31 -42
- bpy/ops/surface/__init__.pyi +198 -163
- bpy/ops/text/__init__.pyi +479 -545
- bpy/ops/text_editor/__init__.pyi +11 -15
- bpy/ops/texture/__init__.pyi +26 -36
- bpy/ops/transform/__init__.pyi +825 -941
- bpy/ops/ui/__init__.pyi +246 -295
- bpy/ops/uilist/__init__.pyi +34 -38
- bpy/ops/uv/__init__.pyi +912 -824
- bpy/ops/view2d/__init__.pyi +157 -197
- bpy/ops/view3d/__init__.pyi +777 -878
- bpy/ops/wm/__init__.pyi +4102 -3595
- bpy/ops/workspace/__init__.pyi +42 -58
- bpy/ops/world/__init__.pyi +6 -9
- bpy/path/__init__.pyi +166 -109
- bpy/props/__init__.pyi +478 -395
- bpy/types/__init__.pyi +87194 -81467
- bpy/utils/__init__.pyi +325 -169
- bpy/utils/previews/__init__.pyi +108 -21
- bpy/utils/units/__init__.pyi +37 -39
- bpy_extras/__init__.pyi +4 -9
- bpy_extras/anim_utils/__init__.pyi +25 -55
- bpy_extras/asset_utils/__init__.pyi +3 -13
- bpy_extras/id_map_utils/__init__.pyi +1 -4
- bpy_extras/image_utils/__init__.pyi +33 -23
- bpy_extras/io_utils/__init__.pyi +116 -66
- bpy_extras/keyconfig_utils/__init__.pyi +5 -3
- bpy_extras/mesh_utils/__init__.pyi +42 -34
- bpy_extras/node_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +58 -43
- bpy_extras/view3d_utils/__init__.pyi +64 -63
- bpy_restrict_state/__init__.pyi +14 -2
- bpy_types/__init__.pyi +3873 -998
- console_python/__init__.pyi +41 -8
- console_shell/__init__.pyi +24 -6
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +4 -5
- freestyle/chainingiterators/__init__.pyi +229 -73
- freestyle/functions/__init__.pyi +624 -402
- freestyle/predicates/__init__.pyi +381 -169
- freestyle/shaders/__init__.pyi +424 -155
- freestyle/types/__init__.pyi +1572 -726
- freestyle/utils/ContextFunctions/__init__.pyi +54 -43
- freestyle/utils/__init__.pyi +67 -31
- gpu/__init__.pyi +3 -4
- gpu/capabilities/__init__.pyi +57 -37
- gpu/matrix/__init__.pyi +14 -17
- gpu/platform/__init__.pyi +5 -6
- gpu/select/__init__.pyi +2 -5
- gpu/shader/__init__.pyi +14 -12
- gpu/state/__init__.pyi +48 -62
- gpu/texture/__init__.pyi +7 -7
- gpu/types/__init__.pyi +670 -229
- gpu_extras/__init__.pyi +1 -2
- gpu_extras/batch/__init__.pyi +27 -6
- gpu_extras/presets/__init__.pyi +67 -27
- graphviz_export/__init__.pyi +9 -3
- idprop/__init__.pyi +0 -1
- idprop/types/__init__.pyi +42 -13
- imbuf/__init__.pyi +6 -10
- imbuf/types/__init__.pyi +8 -16
- keyingsets_builtins/__init__.pyi +3149 -702
- keyingsets_utils/__init__.pyi +69 -15
- mathutils/__init__.pyi +951 -876
- mathutils/bvhtree/__init__.pyi +47 -48
- mathutils/geometry/__init__.pyi +237 -242
- mathutils/interpolate/__init__.pyi +3 -6
- mathutils/kdtree/__init__.pyi +23 -26
- mathutils/noise/__init__.pyi +50 -51
- nodeitems_builtins/__init__.pyi +50 -11
- nodeitems_utils/__init__.pyi +58 -11
- rna_info/__init__.pyi +230 -27
- rna_keymap_ui/__init__.pyi +29 -7
- rna_prop_ui/__init__.pyi +69 -13
- rna_xml/__init__.pyi +29 -7
- sys_info/__init__.pyi +4 -2
- bpy_extras/bmesh_utils/__init__.pyi +0 -7
- bpy_extras/extensions/__init__.pyi +0 -5
- bpy_extras/extensions/junction_module/__init__.pyi +0 -13
- bpy_extras/node_shader_utils/__init__.pyi +0 -132
- bpy_extras/wm_utils/__init__.pyi +0 -5
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
- fake_bpy_module-20240210.dist-info/RECORD +0 -349
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
|
@@ -1,64 +1,109 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
2
|
import freestyle.types
|
|
4
3
|
|
|
5
4
|
GenericType = typing.TypeVar("GenericType")
|
|
6
5
|
|
|
7
6
|
class ChainPredicateIterator:
|
|
8
|
-
"""Class hierarchy: `freestyle.types.Iterator` >
|
|
7
|
+
"""Class hierarchy: `freestyle.types.Iterator` >
|
|
8
|
+
`freestyle.types.ViewEdgeIterator` >
|
|
9
|
+
`freestyle.types.ChainingIterator` >
|
|
10
|
+
`ChainPredicateIterator`A "generic" user-controlled ViewEdge iterator. This iterator is in
|
|
11
|
+
particular built from a unary predicate and a binary predicate.
|
|
12
|
+
First, the unary predicate is evaluated for all potential next
|
|
13
|
+
ViewEdges in order to only keep the ones respecting a certain
|
|
14
|
+
constraint. Then, the binary predicate is evaluated on the current
|
|
15
|
+
ViewEdge together with each ViewEdge of the previous selection. The
|
|
16
|
+
first ViewEdge respecting both the unary predicate and the binary
|
|
17
|
+
predicate is kept as the next one. If none of the potential next
|
|
18
|
+
ViewEdge respects these two predicates, None is returned.
|
|
19
|
+
"""
|
|
9
20
|
|
|
10
21
|
def __init__(
|
|
11
22
|
self,
|
|
12
|
-
upred:
|
|
13
|
-
bpred:
|
|
23
|
+
upred: freestyle.types.UnaryPredicate1D,
|
|
24
|
+
bpred: freestyle.types.BinaryPredicate1D,
|
|
14
25
|
restrict_to_selection: bool = True,
|
|
15
26
|
restrict_to_unvisited: bool = True,
|
|
16
|
-
begin
|
|
27
|
+
begin=None,
|
|
17
28
|
orientation: bool = True,
|
|
18
29
|
):
|
|
19
|
-
"""
|
|
30
|
+
"""Builds a ChainPredicateIterator from a unary predicate, a binary
|
|
31
|
+
predicate, a starting ViewEdge and its orientation or using the copy constructor.
|
|
32
|
+
|
|
33
|
+
:param upred: The unary predicate that the next ViewEdge must satisfy.
|
|
34
|
+
:type upred: freestyle.types.UnaryPredicate1D
|
|
35
|
+
:param bpred: The binary predicate that the next ViewEdge must
|
|
36
|
+
satisfy together with the actual pointed ViewEdge.
|
|
37
|
+
:type bpred: freestyle.types.BinaryPredicate1D
|
|
38
|
+
:param restrict_to_selection: Indicates whether to force the chaining
|
|
39
|
+
to stay within the set of selected ViewEdges or not.
|
|
40
|
+
:type restrict_to_selection: bool
|
|
41
|
+
:param restrict_to_unvisited: Indicates whether a ViewEdge that has
|
|
42
|
+
already been chained must be ignored ot not.
|
|
43
|
+
:type restrict_to_unvisited: bool
|
|
44
|
+
:param begin: The ViewEdge from where to start the iteration.
|
|
45
|
+
:param orientation: If true, we'll look for the next ViewEdge among
|
|
46
|
+
the ViewEdges that surround the ending ViewVertex of begin. If
|
|
47
|
+
false, we'll search over the ViewEdges surrounding the ending
|
|
48
|
+
ViewVertex of begin.
|
|
49
|
+
:type orientation: bool
|
|
50
|
+
"""
|
|
51
|
+
...
|
|
52
|
+
|
|
53
|
+
def __init__(self, brother: ChainPredicateIterator):
|
|
54
|
+
"""Builds a ChainPredicateIterator from a unary predicate, a binary
|
|
55
|
+
predicate, a starting ViewEdge and its orientation or using the copy constructor.
|
|
20
56
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
:param bpred: The binary predicate that the next ViewEdge must satisfy together with the actual pointed ViewEdge.
|
|
24
|
-
:type bpred: 'freestyle.types.BinaryPredicate1D'
|
|
25
|
-
:param restrict_to_selection: Indicates whether to force the chaining to stay within the set of selected ViewEdges or not.
|
|
26
|
-
:type restrict_to_selection: bool
|
|
27
|
-
:param restrict_to_unvisited: Indicates whether a ViewEdge that has already been chained must be ignored ot not.
|
|
28
|
-
:type restrict_to_unvisited: bool
|
|
29
|
-
:param begin: The ViewEdge from where to start the iteration.
|
|
30
|
-
:type begin: typing.Optional['freestyle.types.ViewEdge']
|
|
31
|
-
:param orientation: If true, we'll look for the next ViewEdge among the ViewEdges that surround the ending ViewVertex of begin. If false, we'll search over the ViewEdges surrounding the ending ViewVertex of begin.
|
|
32
|
-
:type orientation: bool
|
|
33
|
-
:param brother: A ChainPredicateIterator object.
|
|
34
|
-
:type brother: 'ChainPredicateIterator'
|
|
57
|
+
:param brother: A ChainPredicateIterator object.
|
|
58
|
+
:type brother: ChainPredicateIterator
|
|
35
59
|
"""
|
|
36
60
|
...
|
|
37
61
|
|
|
38
62
|
class ChainSilhouetteIterator:
|
|
39
|
-
"""Class hierarchy: `freestyle.types.Iterator` >
|
|
63
|
+
"""Class hierarchy: `freestyle.types.Iterator` >
|
|
64
|
+
`freestyle.types.ViewEdgeIterator` >
|
|
65
|
+
`freestyle.types.ChainingIterator` >
|
|
66
|
+
`ChainSilhouetteIterator`A ViewEdge Iterator used to follow ViewEdges the most naturally. For
|
|
67
|
+
example, it will follow visible ViewEdges of same nature. As soon, as
|
|
68
|
+
the nature or the visibility changes, the iteration stops (by setting
|
|
69
|
+
the pointed ViewEdge to 0). In the case of an iteration over a set of
|
|
70
|
+
ViewEdge that are both Silhouette and Crease, there will be a
|
|
71
|
+
precedence of the silhouette over the crease criterion.
|
|
72
|
+
"""
|
|
40
73
|
|
|
41
74
|
def __init__(
|
|
42
|
-
self,
|
|
43
|
-
restrict_to_selection: bool = True,
|
|
44
|
-
begin: typing.Optional["freestyle.types.ViewEdge"] = None,
|
|
45
|
-
orientation: bool = True,
|
|
75
|
+
self, restrict_to_selection: bool = True, begin=None, orientation: bool = True
|
|
46
76
|
):
|
|
47
|
-
"""
|
|
77
|
+
"""Builds a ChainSilhouetteIterator from the first ViewEdge used for
|
|
78
|
+
iteration and its orientation or the copy constructor.
|
|
79
|
+
|
|
80
|
+
:param restrict_to_selection: Indicates whether to force the chaining
|
|
81
|
+
to stay within the set of selected ViewEdges or not.
|
|
82
|
+
:type restrict_to_selection: bool
|
|
83
|
+
:param begin: The ViewEdge from where to start the iteration.
|
|
84
|
+
:param orientation: If true, we'll look for the next ViewEdge among
|
|
85
|
+
the ViewEdges that surround the ending ViewVertex of begin. If
|
|
86
|
+
false, we'll search over the ViewEdges surrounding the ending
|
|
87
|
+
ViewVertex of begin.
|
|
88
|
+
:type orientation: bool
|
|
89
|
+
"""
|
|
90
|
+
...
|
|
48
91
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
:param brother: A ChainSilhouetteIterator object.
|
|
56
|
-
:type brother: 'ChainSilhouetteIterator'
|
|
92
|
+
def __init__(self, brother: ChainSilhouetteIterator):
|
|
93
|
+
"""Builds a ChainSilhouetteIterator from the first ViewEdge used for
|
|
94
|
+
iteration and its orientation or the copy constructor.
|
|
95
|
+
|
|
96
|
+
:param brother: A ChainSilhouetteIterator object.
|
|
97
|
+
:type brother: ChainSilhouetteIterator
|
|
57
98
|
"""
|
|
58
99
|
...
|
|
59
100
|
|
|
60
101
|
class pyChainSilhouetteGenericIterator:
|
|
61
|
-
"""Natural chaining iterator that follows the edges of the same nature
|
|
102
|
+
"""Natural chaining iterator that follows the edges of the same nature
|
|
103
|
+
following the topology of objects, with decreasing priority for
|
|
104
|
+
silhouettes, then borders, then suggestive contours, then all other
|
|
105
|
+
edge types.
|
|
106
|
+
"""
|
|
62
107
|
|
|
63
108
|
def __init__(self, stayInSelection: bool = True, stayInUnvisited: bool = True):
|
|
64
109
|
"""Builds a pyChainSilhouetteGenericIterator object.
|
|
@@ -70,37 +115,83 @@ class pyChainSilhouetteGenericIterator:
|
|
|
70
115
|
"""
|
|
71
116
|
...
|
|
72
117
|
|
|
73
|
-
def init(self):
|
|
74
|
-
|
|
118
|
+
def init(self):
|
|
119
|
+
""" """
|
|
120
|
+
...
|
|
121
|
+
|
|
122
|
+
def traverse(self, iter):
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
:param iter:
|
|
126
|
+
"""
|
|
127
|
+
...
|
|
75
128
|
|
|
76
129
|
class pyChainSilhouetteIterator:
|
|
77
|
-
"""Natural chaining iterator that follows the edges of the same nature
|
|
130
|
+
"""Natural chaining iterator that follows the edges of the same nature
|
|
131
|
+
following the topology of objects, with decreasing priority for
|
|
132
|
+
silhouettes, then borders, then suggestive contours, then all other edge
|
|
133
|
+
types. A ViewEdge is only chained once.
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
def init(self):
|
|
137
|
+
""" """
|
|
138
|
+
...
|
|
139
|
+
|
|
140
|
+
def traverse(self, iter):
|
|
141
|
+
"""
|
|
78
142
|
|
|
79
|
-
|
|
80
|
-
|
|
143
|
+
:param iter:
|
|
144
|
+
"""
|
|
145
|
+
...
|
|
81
146
|
|
|
82
147
|
class pyExternalContourChainingIterator:
|
|
83
148
|
"""Chains by external contour"""
|
|
84
149
|
|
|
85
|
-
def checkViewEdge(self, ve, orientation):
|
|
86
|
-
|
|
87
|
-
|
|
150
|
+
def checkViewEdge(self, ve, orientation):
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
:param ve:
|
|
154
|
+
:param orientation:
|
|
155
|
+
"""
|
|
156
|
+
...
|
|
157
|
+
|
|
158
|
+
def init(self):
|
|
159
|
+
""" """
|
|
160
|
+
...
|
|
161
|
+
|
|
162
|
+
def traverse(self, iter):
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
:param iter:
|
|
166
|
+
"""
|
|
167
|
+
...
|
|
88
168
|
|
|
89
169
|
class pyFillOcclusionsAbsoluteAndRelativeChainingIterator:
|
|
90
|
-
"""Chaining iterator that fills small occlusions regardless of the
|
|
170
|
+
"""Chaining iterator that fills small occlusions regardless of the
|
|
171
|
+
selection.
|
|
172
|
+
"""
|
|
91
173
|
|
|
92
174
|
def __init__(self, percent: float, l: float):
|
|
93
175
|
"""Builds a pyFillOcclusionsAbsoluteAndRelativeChainingIterator object.
|
|
94
176
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
177
|
+
:param percent: The maximal length of the occluded part as a
|
|
178
|
+
percentage of the total chain length.
|
|
179
|
+
:type percent: float
|
|
180
|
+
:param l: Absolute length.
|
|
181
|
+
:type l: float
|
|
99
182
|
"""
|
|
100
183
|
...
|
|
101
184
|
|
|
102
|
-
def init(self):
|
|
103
|
-
|
|
185
|
+
def init(self):
|
|
186
|
+
""" """
|
|
187
|
+
...
|
|
188
|
+
|
|
189
|
+
def traverse(self, iter):
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
:param iter:
|
|
193
|
+
"""
|
|
194
|
+
...
|
|
104
195
|
|
|
105
196
|
class pyFillOcclusionsAbsoluteChainingIterator:
|
|
106
197
|
"""Chaining iterator that fills small occlusions"""
|
|
@@ -113,8 +204,16 @@ class pyFillOcclusionsAbsoluteChainingIterator:
|
|
|
113
204
|
"""
|
|
114
205
|
...
|
|
115
206
|
|
|
116
|
-
def init(self):
|
|
117
|
-
|
|
207
|
+
def init(self):
|
|
208
|
+
""" """
|
|
209
|
+
...
|
|
210
|
+
|
|
211
|
+
def traverse(self, iter):
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
:param iter:
|
|
215
|
+
"""
|
|
216
|
+
...
|
|
118
217
|
|
|
119
218
|
class pyFillOcclusionsRelativeChainingIterator:
|
|
120
219
|
"""Chaining iterator that fills small occlusions"""
|
|
@@ -122,32 +221,56 @@ class pyFillOcclusionsRelativeChainingIterator:
|
|
|
122
221
|
def __init__(self, percent: float):
|
|
123
222
|
"""Builds a pyFillOcclusionsRelativeChainingIterator object.
|
|
124
223
|
|
|
125
|
-
|
|
126
|
-
|
|
224
|
+
:param percent: The maximal length of the occluded part, expressed
|
|
225
|
+
in a percentage of the total chain length.
|
|
226
|
+
:type percent: float
|
|
127
227
|
"""
|
|
128
228
|
...
|
|
129
229
|
|
|
130
|
-
def init(self):
|
|
131
|
-
|
|
230
|
+
def init(self):
|
|
231
|
+
""" """
|
|
232
|
+
...
|
|
233
|
+
|
|
234
|
+
def traverse(self, iter):
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
:param iter:
|
|
238
|
+
"""
|
|
239
|
+
...
|
|
132
240
|
|
|
133
241
|
class pyFillQi0AbsoluteAndRelativeChainingIterator:
|
|
134
|
-
"""Chaining iterator that fills small occlusions regardless of the
|
|
242
|
+
"""Chaining iterator that fills small occlusions regardless of the
|
|
243
|
+
selection.
|
|
244
|
+
"""
|
|
135
245
|
|
|
136
246
|
def __init__(self, percent: float, l: float):
|
|
137
247
|
"""Builds a pyFillQi0AbsoluteAndRelativeChainingIterator object.
|
|
138
248
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
249
|
+
:param percent: The maximal length of the occluded part as a
|
|
250
|
+
percentage of the total chain length.
|
|
251
|
+
:type percent: float
|
|
252
|
+
:param l: Absolute length.
|
|
253
|
+
:type l: float
|
|
143
254
|
"""
|
|
144
255
|
...
|
|
145
256
|
|
|
146
|
-
def init(self):
|
|
147
|
-
|
|
257
|
+
def init(self):
|
|
258
|
+
""" """
|
|
259
|
+
...
|
|
260
|
+
|
|
261
|
+
def traverse(self, iter):
|
|
262
|
+
"""
|
|
263
|
+
|
|
264
|
+
:param iter:
|
|
265
|
+
"""
|
|
266
|
+
...
|
|
148
267
|
|
|
149
268
|
class pyNoIdChainSilhouetteIterator:
|
|
150
|
-
"""Natural chaining iterator that follows the edges of the same nature
|
|
269
|
+
"""Natural chaining iterator that follows the edges of the same nature
|
|
270
|
+
following the topology of objects, with decreasing priority for
|
|
271
|
+
silhouettes, then borders, then suggestive contours, then all other edge
|
|
272
|
+
types. It won't chain the same ViewEdge twice.
|
|
273
|
+
"""
|
|
151
274
|
|
|
152
275
|
def __init__(self, stayInSelection: bool = True):
|
|
153
276
|
"""Builds a pyNoIdChainSilhouetteIterator object.
|
|
@@ -157,11 +280,21 @@ class pyNoIdChainSilhouetteIterator:
|
|
|
157
280
|
"""
|
|
158
281
|
...
|
|
159
282
|
|
|
160
|
-
def init(self):
|
|
161
|
-
|
|
283
|
+
def init(self):
|
|
284
|
+
""" """
|
|
285
|
+
...
|
|
286
|
+
|
|
287
|
+
def traverse(self, iter):
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
:param iter:
|
|
291
|
+
"""
|
|
292
|
+
...
|
|
162
293
|
|
|
163
294
|
class pySketchyChainSilhouetteIterator:
|
|
164
|
-
"""Natural chaining iterator with a sketchy multiple touch.
|
|
295
|
+
"""Natural chaining iterator with a sketchy multiple touch. It chains the
|
|
296
|
+
same ViewEdge multiple times to achieve a sketchy effect.
|
|
297
|
+
"""
|
|
165
298
|
|
|
166
299
|
def __init__(self, nRounds: int = 3, stayInSelection: bool = True):
|
|
167
300
|
"""Builds a pySketchyChainSilhouetteIterator object.
|
|
@@ -173,15 +306,38 @@ class pySketchyChainSilhouetteIterator:
|
|
|
173
306
|
"""
|
|
174
307
|
...
|
|
175
308
|
|
|
176
|
-
def init(self):
|
|
309
|
+
def init(self):
|
|
310
|
+
""" """
|
|
311
|
+
...
|
|
312
|
+
|
|
177
313
|
def make_sketchy(self, ve):
|
|
178
|
-
"""Creates the sketchy effect by causing the chain to run from
|
|
314
|
+
"""Creates the sketchy effect by causing the chain to run from
|
|
315
|
+
the start again. (loop over itself again)
|
|
316
|
+
|
|
317
|
+
:param ve:
|
|
318
|
+
"""
|
|
179
319
|
...
|
|
180
320
|
|
|
181
|
-
def traverse(self, iter):
|
|
321
|
+
def traverse(self, iter):
|
|
322
|
+
"""
|
|
323
|
+
|
|
324
|
+
:param iter:
|
|
325
|
+
"""
|
|
326
|
+
...
|
|
182
327
|
|
|
183
328
|
class pySketchyChainingIterator:
|
|
184
|
-
"""Chaining iterator designed for sketchy style. It chains the same
|
|
329
|
+
"""Chaining iterator designed for sketchy style. It chains the same
|
|
330
|
+
ViewEdge several times in order to produce multiple strokes per
|
|
331
|
+
ViewEdge.
|
|
332
|
+
"""
|
|
333
|
+
|
|
334
|
+
def init(self):
|
|
335
|
+
""" """
|
|
336
|
+
...
|
|
185
337
|
|
|
186
|
-
def
|
|
187
|
-
|
|
338
|
+
def traverse(self, iter):
|
|
339
|
+
"""
|
|
340
|
+
|
|
341
|
+
:param iter:
|
|
342
|
+
"""
|
|
343
|
+
...
|