fake-bpy-module 20231205__py3-none-any.whl → 20231207__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 +84 -0
- animsys_refactor/__init__.pyi +55 -0
- aud/__init__.pyi +1190 -0
- bgl/__init__.pyi +5084 -0
- bl_app_override/__init__.pyi +31 -0
- bl_app_override/helpers/__init__.pyi +42 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_app_template_utils/__init__.pyi +36 -0
- bl_console_utils/autocomplete/__init__.pyi +8 -0
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +44 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/__init__.pyi +28 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +44 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/__init__.pyi +20 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_i18n_utils/__init__.pyi +11 -0
- bl_i18n_utils/bl_extract_messages/__init__.pyi +124 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/__init__.pyi +12 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/__init__.pyi +66 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/__init__.pyi +338 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/__init__.pyi +52 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/__init__.pyi +12 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/__init__.pyi +20 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/__init__.pyi +9 -0
- bl_keymap_utils/io/__init__.pyi +76 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +12 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +12 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/__init__.pyi +20 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/__init__.pyi +12 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_math/__init__.pyi +52 -0
- bl_operators/__init__.pyi +49 -0
- bl_operators/add_mesh_torus/__init__.pyi +231 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/__init__.pyi +1291 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/__init__.pyi +586 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/__init__.pyi +76 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/clip/__init__.pyi +1898 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/__init__.pyi +918 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/__init__.pyi +745 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/__init__.pyi +560 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/__init__.pyi +751 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/__init__.pyi +2553 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/__init__.pyi +548 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/__init__.pyi +566 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/__init__.pyi +1814 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/__init__.pyi +3212 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/__init__.pyi +215 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/__init__.pyi +777 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/__init__.pyi +199 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/__init__.pyi +3776 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/__init__.pyi +566 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/__init__.pyi +192 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/__init__.pyi +1001 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/__init__.pyi +202 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/__init__.pyi +4701 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/__init__.pyi +212 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/__init__.pyi +257 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/__init__.pyi +501 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/__init__.pyi +207 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/__init__.pyi +955 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/__init__.pyi +8409 -0
- bl_operators/wm/py.typed +0 -0
- bl_previews_utils/bl_previews_render/__init__.pyi +60 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/__init__.pyi +25 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/__init__.pyi +12 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/__init__.pyi +706 -0
- bl_ui/asset_shelf/__init__.pyi +202 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/__init__.pyi +629 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/__init__.pyi +260 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/__init__.pyi +3739 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/__init__.pyi +8520 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/__init__.pyi +2139 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/__init__.pyi +1868 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/__init__.pyi +38 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/__init__.pyi +1051 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/__init__.pyi +29694 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/__init__.pyi +2274 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/__init__.pyi +2087 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/__init__.pyi +3004 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/__init__.pyi +3164 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/__init__.pyi +1247 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/__init__.pyi +426 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/__init__.pyi +3758 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/__init__.pyi +632 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/__init__.pyi +637 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/__init__.pyi +2111 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/__init__.pyi +1264 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/__init__.pyi +4052 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/__init__.pyi +1047 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/__init__.pyi +1741 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/__init__.pyi +1045 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/__init__.pyi +214 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/__init__.pyi +1056 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/__init__.pyi +1652 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/__init__.pyi +5309 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/__init__.pyi +2780 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/__init__.pyi +1554 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/__init__.pyi +3117 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/__init__.pyi +2086 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/__init__.pyi +2875 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/__init__.pyi +3799 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/__init__.pyi +814 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/__init__.pyi +10938 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/__init__.pyi +2984 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/__init__.pyi +277 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +5431 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/__init__.pyi +2220 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/__init__.pyi +7296 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +214 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/__init__.pyi +1698 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2734 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/__init__.pyi +3198 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/__init__.pyi +12664 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/__init__.pyi +2872 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/__init__.pyi +5470 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/__init__.pyi +3493 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/__init__.pyi +630 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/__init__.pyi +1478 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/__init__.pyi +14313 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/__init__.pyi +1221 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/__init__.pyi +5388 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/__init__.pyi +5996 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/__init__.pyi +4053 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/__init__.pyi +14801 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/__init__.pyi +1216 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/__init__.pyi +3460 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/__init__.pyi +6519 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/__init__.pyi +2864 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/__init__.pyi +575 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/__init__.pyi +15360 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/__init__.pyi +226 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/__init__.pyi +190 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/__init__.pyi +3223 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/__init__.pyi +1472 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/__init__.pyi +435 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1671 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/__init__.pyi +5296 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/__init__.pyi +17826 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/__init__.pyi +51846 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +18993 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/utils/__init__.pyi +40 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/__init__.pyi +6 -0
- bl_ui_utils/bug_report_url/__init__.pyi +12 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/__init__.pyi +12 -0
- bl_ui_utils/layout/py.typed +0 -0
- blend_render_info/__init__.pyi +24 -0
- blf/__init__.pyi +231 -0
- bmesh/__init__.pyi +51 -0
- bmesh/geometry/__init__.pyi +23 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/__init__.pyi +1935 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/__init__.pyi +1399 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/__init__.pyi +207 -0
- bmesh/utils/py.typed +0 -0
- bpy/__init__.pyi +18 -0
- bpy/app/__init__.pyi +247 -0
- bpy/app/handlers/__init__.pyi +151 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/__init__.pyi +42 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/timers/__init__.pyi +42 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/__init__.pyi +107 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/__init__.pyi +40 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/__init__.pyi +81 -0
- bpy/ops/action/__init__.pyi +723 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/__init__.pyi +978 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/__init__.pyi +858 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/__init__.pyi +339 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/boid/__init__.pyi +127 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/__init__.pyi +171 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/__init__.pyi +255 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/__init__.pyi +241 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/__init__.pyi +60 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/__init__.pyi +1782 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/__init__.pyi +31 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/__init__.pyi +95 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/__init__.pyi +370 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/__init__.pyi +391 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/__init__.pyi +1052 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/__init__.pyi +259 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/__init__.pyi +67 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/__init__.pyi +87 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/__init__.pyi +276 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/__init__.pyi +45 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_mesh/__init__.pyi +62 -0
- bpy/ops/export_mesh/py.typed +0 -0
- bpy/ops/export_scene/__init__.pyi +577 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/__init__.pyi +787 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/__init__.pyi +224 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/__init__.pyi +537 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/__init__.pyi +219 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/__init__.pyi +52 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/__init__.pyi +3247 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/__init__.pyi +1392 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/__init__.pyi +724 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/__init__.pyi +1261 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/__init__.pyi +58 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/__init__.pyi +26 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_mesh/__init__.pyi +50 -0
- bpy/ops/import_mesh/py.typed +0 -0
- bpy/ops/import_scene/__init__.pyi +191 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/__init__.pyi +140 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/__init__.pyi +153 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/__init__.pyi +238 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/__init__.pyi +747 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/__init__.pyi +47 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/__init__.pyi +168 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/__init__.pyi +4168 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/__init__.pyi +756 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/__init__.pyi +1894 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/__init__.pyi +5343 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/__init__.pyi +1172 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/__init__.pyi +1067 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/__init__.pyi +148 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/__init__.pyi +123 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/__init__.pyi +635 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/__init__.pyi +763 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/__init__.pyi +173 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/__init__.pyi +849 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/__init__.pyi +114 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/render/__init__.pyi +262 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/__init__.pyi +244 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/__init__.pyi +675 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/__init__.pyi +846 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/__init__.pyi +60 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/__init__.pyi +862 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/__init__.pyi +94 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/__init__.pyi +2165 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/__init__.pyi +395 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/__init__.pyi +76 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/__init__.pyi +215 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/__init__.pyi +863 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/__init__.pyi +31 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/__init__.pyi +68 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/__init__.pyi +1545 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/__init__.pyi +536 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/__init__.pyi +74 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/__init__.pyi +1251 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/__init__.pyi +329 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/__init__.pyi +1392 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/__init__.pyi +4821 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/__init__.pyi +115 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/__init__.pyi +19 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/__init__.pyi +194 -0
- bpy/path/py.typed +0 -0
- bpy/props/__init__.pyi +509 -0
- bpy/props/py.typed +0 -0
- bpy/types/__init__.pyi +131533 -0
- bpy/types/py.typed +0 -0
- bpy/utils/__init__.pyi +429 -0
- bpy/utils/previews/__init__.pyi +73 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/units/__init__.pyi +61 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/__init__.pyi +18 -0
- bpy_extras/anim_utils/__init__.pyi +108 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/__init__.pyi +39 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/__init__.pyi +20 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/__init__.pyi +48 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/id_map_utils/__init__.pyi +28 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/__init__.pyi +42 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/__init__.pyi +165 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/__init__.pyi +28 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/__init__.pyi +91 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/__init__.pyi +562 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/__init__.pyi +28 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/__init__.pyi +87 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/__init__.pyi +90 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +98 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_restrict_state/__init__.pyi +24 -0
- bpy_types/__init__.pyi +5189 -0
- console_python/__init__.pyi +71 -0
- console_shell/__init__.pyi +44 -0
- fake_bpy_module-20231207.dist-info/METADATA +175 -0
- fake_bpy_module-20231207.dist-info/RECORD +610 -0
- freestyle/chainingiterators/__init__.pyi +306 -0
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/__init__.pyi +1270 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/__init__.pyi +535 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/__init__.pyi +872 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/__init__.pyi +2407 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/__init__.pyi +127 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/__init__.pyi +246 -0
- gpu/capabilities/__init__.pyi +186 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/__init__.pyi +162 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/__init__.pyi +54 -0
- gpu/platform/py.typed +0 -0
- gpu/select/__init__.pyi +15 -0
- gpu/select/py.typed +0 -0
- gpu/shader/__init__.pyi +38 -0
- gpu/shader/py.typed +0 -0
- gpu/state/__init__.pyi +214 -0
- gpu/state/py.typed +0 -0
- gpu/texture/__init__.pyi +18 -0
- gpu/texture/py.typed +0 -0
- gpu/types/__init__.pyi +698 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/__init__.pyi +25 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/__init__.pyi +43 -0
- gpu_extras/presets/py.typed +0 -0
- graphviz_export/__init__.pyi +21 -0
- idprop/types/__init__.pyi +98 -0
- idprop/types/py.typed +0 -0
- imbuf/__init__.pyi +44 -0
- imbuf/types/__init__.pyi +70 -0
- imbuf/types/py.typed +0 -0
- keyingsets_builtins/__init__.pyi +4028 -0
- keyingsets_utils/__init__.pyi +116 -0
- mathutils/__init__.pyi +2917 -0
- mathutils/bvhtree/__init__.pyi +124 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/__init__.pyi +526 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/__init__.pyi +16 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/__init__.pyi +77 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/__init__.pyi +342 -0
- mathutils/noise/py.typed +0 -0
- nodeitems_builtins/__init__.pyi +69 -0
- nodeitems_utils/__init__.pyi +86 -0
- rna_info/__init__.pyi +343 -0
- rna_keymap_ui/__init__.pyi +52 -0
- rna_prop_ui/__init__.pyi +109 -0
- rna_xml/__init__.pyi +53 -0
- sys_info/__init__.pyi +12 -0
- addon_utils/__init__.py +0 -84
- animsys_refactor/__init__.py +0 -55
- aud/__init__.py +0 -1190
- bgl/__init__.py +0 -5084
- bl_app_override/__init__.py +0 -31
- bl_app_override/helpers.py +0 -42
- bl_app_template_utils/__init__.py +0 -36
- bl_console_utils/autocomplete/__init__.py +0 -8
- bl_console_utils/autocomplete/complete_calltip.py +0 -44
- bl_console_utils/autocomplete/complete_import.py +0 -28
- bl_console_utils/autocomplete/complete_namespace.py +0 -44
- bl_console_utils/autocomplete/intellisense.py +0 -20
- bl_i18n_utils/__init__.py +0 -11
- bl_i18n_utils/bl_extract_messages.py +0 -124
- bl_i18n_utils/merge_po.py +0 -12
- bl_i18n_utils/settings.py +0 -66
- bl_i18n_utils/utils.py +0 -338
- bl_i18n_utils/utils_cli.py +0 -52
- bl_i18n_utils/utils_languages_menu.py +0 -12
- bl_i18n_utils/utils_rtl.py +0 -20
- bl_keymap_utils/__init__.py +0 -9
- bl_keymap_utils/io.py +0 -76
- bl_keymap_utils/keymap_from_toolbar.py +0 -12
- bl_keymap_utils/keymap_hierarchy.py +0 -12
- bl_keymap_utils/platform_helpers.py +0 -20
- bl_keymap_utils/versioning.py +0 -12
- bl_math/__init__.py +0 -52
- bl_operators/__init__.py +0 -49
- bl_operators/add_mesh_torus.py +0 -231
- bl_operators/anim.py +0 -1291
- bl_operators/assets.py +0 -586
- bl_operators/bmesh/find_adjacent.py +0 -76
- bl_operators/clip.py +0 -1898
- bl_operators/console.py +0 -918
- bl_operators/constraint.py +0 -745
- bl_operators/file.py +0 -560
- bl_operators/freestyle.py +0 -751
- bl_operators/geometry_nodes.py +0 -2553
- bl_operators/image.py +0 -548
- bl_operators/mesh.py +0 -566
- bl_operators/node.py +0 -1814
- bl_operators/object.py +0 -3212
- bl_operators/object_align.py +0 -215
- bl_operators/object_quick_effects.py +0 -777
- bl_operators/object_randomize_transform.py +0 -199
- bl_operators/presets.py +0 -3776
- bl_operators/rigidbody.py +0 -566
- bl_operators/screen_play_rendered_anim.py +0 -192
- bl_operators/sequencer.py +0 -1001
- bl_operators/spreadsheet.py +0 -202
- bl_operators/userpref.py +0 -4701
- bl_operators/uvcalc_follow_active.py +0 -212
- bl_operators/uvcalc_lightmap.py +0 -257
- bl_operators/uvcalc_transform.py +0 -501
- bl_operators/vertexpaint_dirt.py +0 -207
- bl_operators/view3d.py +0 -955
- bl_operators/wm.py +0 -8409
- bl_previews_utils/bl_previews_render.py +0 -60
- bl_rna_utils/data_path.py +0 -25
- bl_text_utils/external_editor.py +0 -12
- bl_ui/__init__.py +0 -706
- bl_ui/asset_shelf.py +0 -202
- bl_ui/generic_ui_list.py +0 -629
- bl_ui/node_add_menu.py +0 -260
- bl_ui/node_add_menu_compositor.py +0 -3739
- bl_ui/node_add_menu_geometry.py +0 -8520
- bl_ui/node_add_menu_shader.py +0 -2139
- bl_ui/node_add_menu_texture.py +0 -1868
- bl_ui/properties_animviz.py +0 -38
- bl_ui/properties_collection.py +0 -1051
- bl_ui/properties_constraint.py +0 -29694
- bl_ui/properties_data_armature.py +0 -2274
- bl_ui/properties_data_bone.py +0 -2087
- bl_ui/properties_data_camera.py +0 -3004
- bl_ui/properties_data_curve.py +0 -3164
- bl_ui/properties_data_curves.py +0 -1247
- bl_ui/properties_data_empty.py +0 -426
- bl_ui/properties_data_gpencil.py +0 -3758
- bl_ui/properties_data_grease_pencil.py +0 -632
- bl_ui/properties_data_lattice.py +0 -637
- bl_ui/properties_data_light.py +0 -2111
- bl_ui/properties_data_lightprobe.py +0 -1264
- bl_ui/properties_data_mesh.py +0 -4052
- bl_ui/properties_data_metaball.py +0 -1047
- bl_ui/properties_data_modifier.py +0 -1741
- bl_ui/properties_data_pointcloud.py +0 -1045
- bl_ui/properties_data_shaderfx.py +0 -214
- bl_ui/properties_data_speaker.py +0 -1056
- bl_ui/properties_data_volume.py +0 -1652
- bl_ui/properties_freestyle.py +0 -5309
- bl_ui/properties_grease_pencil_common.py +0 -2780
- bl_ui/properties_mask_common.py +0 -1554
- bl_ui/properties_material.py +0 -3117
- bl_ui/properties_material_gpencil.py +0 -2086
- bl_ui/properties_object.py +0 -2875
- bl_ui/properties_output.py +0 -3799
- bl_ui/properties_paint_common.py +0 -814
- bl_ui/properties_particle.py +0 -10938
- bl_ui/properties_physics_cloth.py +0 -2984
- bl_ui/properties_physics_common.py +0 -277
- bl_ui/properties_physics_dynamicpaint.py +0 -5431
- bl_ui/properties_physics_field.py +0 -2220
- bl_ui/properties_physics_fluid.py +0 -7296
- bl_ui/properties_physics_geometry_nodes.py +0 -214
- bl_ui/properties_physics_rigidbody.py +0 -1698
- bl_ui/properties_physics_rigidbody_constraint.py +0 -2734
- bl_ui/properties_physics_softbody.py +0 -3198
- bl_ui/properties_render.py +0 -12664
- bl_ui/properties_scene.py +0 -2872
- bl_ui/properties_texture.py +0 -5470
- bl_ui/properties_view_layer.py +0 -3493
- bl_ui/properties_workspace.py +0 -630
- bl_ui/properties_world.py +0 -1478
- bl_ui/space_clip.py +0 -14313
- bl_ui/space_console.py +0 -1221
- bl_ui/space_dopesheet.py +0 -5388
- bl_ui/space_filebrowser.py +0 -5996
- bl_ui/space_graph.py +0 -4053
- bl_ui/space_image.py +0 -14801
- bl_ui/space_info.py +0 -1216
- bl_ui/space_nla.py +0 -3460
- bl_ui/space_node.py +0 -6519
- bl_ui/space_outliner.py +0 -2864
- bl_ui/space_properties.py +0 -575
- bl_ui/space_sequencer.py +0 -15360
- bl_ui/space_spreadsheet.py +0 -226
- bl_ui/space_statusbar.py +0 -190
- bl_ui/space_text.py +0 -3223
- bl_ui/space_time.py +0 -1472
- bl_ui/space_toolsystem_common.py +0 -435
- bl_ui/space_toolsystem_toolbar.py +0 -1671
- bl_ui/space_topbar.py +0 -5296
- bl_ui/space_userpref.py +0 -17826
- bl_ui/space_view3d.py +0 -51846
- bl_ui/space_view3d_toolbar.py +0 -18993
- bl_ui/utils.py +0 -40
- bl_ui_utils/__init__.py +0 -6
- bl_ui_utils/bug_report_url.py +0 -12
- bl_ui_utils/layout.py +0 -12
- blend_render_info/__init__.py +0 -24
- blf/__init__.py +0 -231
- bmesh/__init__.py +0 -51
- bmesh/geometry.py +0 -23
- bmesh/ops.py +0 -1935
- bmesh/types.py +0 -1399
- bmesh/utils.py +0 -207
- bpy/__init__.py +0 -18
- bpy/app/__init__.py +0 -247
- bpy/app/handlers.py +0 -160
- bpy/app/icons.py +0 -42
- bpy/app/timers.py +0 -42
- bpy/app/translations.py +0 -107
- bpy/msgbus.py +0 -40
- bpy/ops/__init__.py +0 -81
- bpy/ops/action.py +0 -723
- bpy/ops/anim.py +0 -978
- bpy/ops/armature.py +0 -858
- bpy/ops/asset.py +0 -339
- bpy/ops/boid.py +0 -127
- bpy/ops/brush.py +0 -171
- bpy/ops/buttons.py +0 -255
- bpy/ops/cachefile.py +0 -241
- bpy/ops/camera.py +0 -60
- bpy/ops/clip.py +0 -1782
- bpy/ops/cloth.py +0 -31
- bpy/ops/collection.py +0 -95
- bpy/ops/console.py +0 -370
- bpy/ops/constraint.py +0 -391
- bpy/ops/curve.py +0 -1052
- bpy/ops/curves.py +0 -259
- bpy/ops/cycles.py +0 -67
- bpy/ops/dpaint.py +0 -87
- bpy/ops/ed.py +0 -276
- bpy/ops/export_anim.py +0 -45
- bpy/ops/export_mesh.py +0 -62
- bpy/ops/export_scene.py +0 -577
- bpy/ops/file.py +0 -787
- bpy/ops/fluid.py +0 -224
- bpy/ops/font.py +0 -537
- bpy/ops/geometry.py +0 -219
- bpy/ops/gizmogroup.py +0 -52
- bpy/ops/gpencil.py +0 -3247
- bpy/ops/graph.py +0 -1392
- bpy/ops/grease_pencil.py +0 -724
- bpy/ops/image.py +0 -1261
- bpy/ops/import_anim.py +0 -58
- bpy/ops/import_curve.py +0 -26
- bpy/ops/import_mesh.py +0 -50
- bpy/ops/import_scene.py +0 -191
- bpy/ops/info.py +0 -140
- bpy/ops/lattice.py +0 -153
- bpy/ops/marker.py +0 -238
- bpy/ops/mask.py +0 -747
- bpy/ops/material.py +0 -47
- bpy/ops/mball.py +0 -168
- bpy/ops/mesh.py +0 -4168
- bpy/ops/nla.py +0 -756
- bpy/ops/node.py +0 -1894
- bpy/ops/object.py +0 -5343
- bpy/ops/outliner.py +0 -1172
- bpy/ops/paint.py +0 -1067
- bpy/ops/paintcurve.py +0 -148
- bpy/ops/palette.py +0 -123
- bpy/ops/particle.py +0 -635
- bpy/ops/pose.py +0 -763
- bpy/ops/poselib.py +0 -173
- bpy/ops/preferences.py +0 -849
- bpy/ops/ptcache.py +0 -114
- bpy/ops/render.py +0 -262
- bpy/ops/rigidbody.py +0 -244
- bpy/ops/scene.py +0 -675
- bpy/ops/screen.py +0 -846
- bpy/ops/script.py +0 -60
- bpy/ops/sculpt.py +0 -862
- bpy/ops/sculpt_curves.py +0 -94
- bpy/ops/sequencer.py +0 -2165
- bpy/ops/sound.py +0 -395
- bpy/ops/spreadsheet.py +0 -76
- bpy/ops/surface.py +0 -215
- bpy/ops/text.py +0 -863
- bpy/ops/text_editor.py +0 -31
- bpy/ops/texture.py +0 -68
- bpy/ops/transform.py +0 -1545
- bpy/ops/ui.py +0 -536
- bpy/ops/uilist.py +0 -74
- bpy/ops/uv.py +0 -1251
- bpy/ops/view2d.py +0 -329
- bpy/ops/view3d.py +0 -1392
- bpy/ops/wm.py +0 -4821
- bpy/ops/workspace.py +0 -115
- bpy/ops/world.py +0 -19
- bpy/path.py +0 -194
- bpy/props.py +0 -509
- bpy/types.py +0 -131806
- bpy/utils/__init__.py +0 -429
- bpy/utils/previews.py +0 -73
- bpy/utils/units.py +0 -61
- bpy_extras/__init__.py +0 -18
- bpy_extras/anim_utils.py +0 -108
- bpy_extras/asset_utils.py +0 -39
- bpy_extras/bmesh_utils.py +0 -20
- bpy_extras/extensions/junction_module.py +0 -48
- bpy_extras/id_map_utils.py +0 -28
- bpy_extras/image_utils.py +0 -42
- bpy_extras/io_utils.py +0 -165
- bpy_extras/keyconfig_utils.py +0 -28
- bpy_extras/mesh_utils.py +0 -91
- bpy_extras/node_shader_utils.py +0 -562
- bpy_extras/node_utils.py +0 -28
- bpy_extras/object_utils.py +0 -87
- bpy_extras/view3d_utils.py +0 -90
- bpy_extras/wm_utils/progress_report.py +0 -98
- bpy_restrict_state/__init__.py +0 -24
- bpy_types/__init__.py +0 -5189
- console_python/__init__.py +0 -71
- console_shell/__init__.py +0 -44
- fake_bpy_module-20231205.dist-info/METADATA +0 -175
- fake_bpy_module-20231205.dist-info/RECORD +0 -356
- freestyle/chainingiterators.py +0 -306
- freestyle/functions.py +0 -1270
- freestyle/predicates.py +0 -535
- freestyle/shaders.py +0 -872
- freestyle/types.py +0 -2409
- freestyle/utils/ContextFunctions.py +0 -127
- freestyle/utils/__init__.py +0 -246
- gpu/capabilities.py +0 -186
- gpu/matrix.py +0 -162
- gpu/platform.py +0 -54
- gpu/select.py +0 -15
- gpu/shader.py +0 -38
- gpu/state.py +0 -214
- gpu/texture.py +0 -18
- gpu/types.py +0 -698
- gpu_extras/batch.py +0 -25
- gpu_extras/presets.py +0 -43
- graphviz_export/__init__.py +0 -21
- idprop/types.py +0 -98
- imbuf/__init__.py +0 -44
- imbuf/types.py +0 -70
- keyingsets_builtins/__init__.py +0 -4028
- keyingsets_utils/__init__.py +0 -116
- mathutils/__init__.py +0 -2917
- mathutils/bvhtree.py +0 -124
- mathutils/geometry.py +0 -526
- mathutils/interpolate.py +0 -16
- mathutils/kdtree.py +0 -77
- mathutils/noise.py +0 -342
- nodeitems_builtins/__init__.py +0 -69
- nodeitems_utils/__init__.py +0 -86
- rna_info/__init__.py +0 -343
- rna_keymap_ui/__init__.py +0 -52
- rna_prop_ui/__init__.py +0 -109
- rna_xml/__init__.py +0 -53
- sys_info/__init__.py +0 -12
- /bl_console_utils/{__init__.py → __init__.pyi} +0 -0
- /bl_operators/bmesh/{__init__.py → __init__.pyi} +0 -0
- /bl_previews_utils/{__init__.py → __init__.pyi} +0 -0
- /bl_rna_utils/{__init__.py → __init__.pyi} +0 -0
- /bl_text_utils/{__init__.py → __init__.pyi} +0 -0
- /bpy_extras/extensions/{__init__.py → __init__.pyi} +0 -0
- /bpy_extras/wm_utils/{__init__.py → __init__.pyi} +0 -0
- {fake_bpy_module-20231205.dist-info → fake_bpy_module-20231207.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20231205.dist-info → fake_bpy_module-20231207.dist-info}/top_level.txt +0 -0
- /freestyle/{__init__.py → __init__.pyi} +0 -0
- /gpu/{__init__.py → __init__.pyi} +0 -0
- /gpu_extras/{__init__.py → __init__.pyi} +0 -0
- /idprop/{__init__.py → __init__.pyi} +0 -0
freestyle/types.py
DELETED
|
@@ -1,2409 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
import typing
|
|
3
|
-
import mathutils
|
|
4
|
-
|
|
5
|
-
GenericType = typing.TypeVar("GenericType")
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class AdjacencyIterator:
|
|
9
|
-
''' Class hierarchy: `Iterator` > `AdjacencyIterator` Class for representing adjacency iterators used in the chaining process. An AdjacencyIterator is created in the increment() and decrement() methods of a `ChainingIterator` and passed to the traverse() method of the ChainingIterator.
|
|
10
|
-
'''
|
|
11
|
-
|
|
12
|
-
is_incoming: bool = None
|
|
13
|
-
''' True if the current ViewEdge is coming towards the iteration vertex, and False otherwise.
|
|
14
|
-
|
|
15
|
-
:type: bool
|
|
16
|
-
'''
|
|
17
|
-
|
|
18
|
-
object: 'ViewEdge' = None
|
|
19
|
-
''' The ViewEdge object currently pointed to by this iterator.
|
|
20
|
-
|
|
21
|
-
:type: 'ViewEdge'
|
|
22
|
-
'''
|
|
23
|
-
|
|
24
|
-
def __init__(self):
|
|
25
|
-
''' __init__(brother) __init__(vertex, restrict_to_selection=True, restrict_to_unvisited=True) Builds an `AdjacencyIterator` using the default constructor, copy constructor or the overloaded constructor.
|
|
26
|
-
|
|
27
|
-
:param brother: An AdjacencyIterator object.
|
|
28
|
-
:type brother: 'AdjacencyIterator'
|
|
29
|
-
:param vertex: The vertex which is the next crossing.
|
|
30
|
-
:type vertex: 'ViewVertex'
|
|
31
|
-
:param restrict_to_selection: Indicates whether to force the chaining to stay within the set of selected ViewEdges or not.
|
|
32
|
-
:type restrict_to_selection: bool
|
|
33
|
-
:param restrict_to_unvisited: Indicates whether a ViewEdge that has already been chained must be ignored ot not.
|
|
34
|
-
:type restrict_to_unvisited: bool
|
|
35
|
-
'''
|
|
36
|
-
pass
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
class BBox:
|
|
40
|
-
''' Class for representing a bounding box.
|
|
41
|
-
'''
|
|
42
|
-
|
|
43
|
-
def __init__(self):
|
|
44
|
-
''' Default constructor.
|
|
45
|
-
|
|
46
|
-
'''
|
|
47
|
-
pass
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class BinaryPredicate0D:
|
|
51
|
-
''' Base class for binary predicates working on `Interface0D` objects. A BinaryPredicate0D is typically an ordering relation between two Interface0D objects. The predicate evaluates a relation between the two Interface0D instances and returns a boolean value (true or false). It is used by invoking the __call__() method.
|
|
52
|
-
'''
|
|
53
|
-
|
|
54
|
-
name: str = None
|
|
55
|
-
''' The name of the binary 0D predicate.
|
|
56
|
-
|
|
57
|
-
:type: str
|
|
58
|
-
'''
|
|
59
|
-
|
|
60
|
-
def __init__(self):
|
|
61
|
-
''' Default constructor.
|
|
62
|
-
|
|
63
|
-
'''
|
|
64
|
-
pass
|
|
65
|
-
|
|
66
|
-
def __call__(self, inter1: 'Interface0D', inter2: 'Interface0D') -> bool:
|
|
67
|
-
''' Must be overload by inherited classes. It evaluates a relation between two Interface0D objects.
|
|
68
|
-
|
|
69
|
-
:param inter1: The first Interface0D object.
|
|
70
|
-
:type inter1: 'Interface0D'
|
|
71
|
-
:param inter2: The second Interface0D object.
|
|
72
|
-
:type inter2: 'Interface0D'
|
|
73
|
-
:rtype: bool
|
|
74
|
-
:return: True or false.
|
|
75
|
-
'''
|
|
76
|
-
pass
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class BinaryPredicate1D:
|
|
80
|
-
''' Base class for binary predicates working on `Interface1D` objects. A BinaryPredicate1D is typically an ordering relation between two Interface1D objects. The predicate evaluates a relation between the two Interface1D instances and returns a boolean value (true or false). It is used by invoking the __call__() method.
|
|
81
|
-
'''
|
|
82
|
-
|
|
83
|
-
name: str = None
|
|
84
|
-
''' The name of the binary 1D predicate.
|
|
85
|
-
|
|
86
|
-
:type: str
|
|
87
|
-
'''
|
|
88
|
-
|
|
89
|
-
def __init__(self):
|
|
90
|
-
''' Default constructor.
|
|
91
|
-
|
|
92
|
-
'''
|
|
93
|
-
pass
|
|
94
|
-
|
|
95
|
-
def __call__(self, inter1: 'Interface1D', inter2: 'Interface1D') -> bool:
|
|
96
|
-
''' Must be overload by inherited classes. It evaluates a relation between two Interface1D objects.
|
|
97
|
-
|
|
98
|
-
:param inter1: The first Interface1D object.
|
|
99
|
-
:type inter1: 'Interface1D'
|
|
100
|
-
:param inter2: The second Interface1D object.
|
|
101
|
-
:type inter2: 'Interface1D'
|
|
102
|
-
:rtype: bool
|
|
103
|
-
:return: True or false.
|
|
104
|
-
'''
|
|
105
|
-
pass
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class Chain:
|
|
109
|
-
''' Class hierarchy: `Interface1D` > `Curve` > `Chain` Class to represent a 1D elements issued from the chaining process. A Chain is the last step before the `Stroke` and is used in the Splitting and Creation processes.
|
|
110
|
-
'''
|
|
111
|
-
|
|
112
|
-
def __init__(self):
|
|
113
|
-
''' __init__(brother) __init__(id) Builds a `Chain` using the default constructor, copy constructor or from an `Id`.
|
|
114
|
-
|
|
115
|
-
:param brother: A Chain object.
|
|
116
|
-
:type brother: 'Chain'
|
|
117
|
-
:param id: An Id object.
|
|
118
|
-
:type id: 'Id'
|
|
119
|
-
'''
|
|
120
|
-
pass
|
|
121
|
-
|
|
122
|
-
def push_viewedge_back(self, viewedge: 'ViewEdge', orientation: bool):
|
|
123
|
-
''' Adds a ViewEdge at the end of the Chain.
|
|
124
|
-
|
|
125
|
-
:param viewedge: The ViewEdge that must be added.
|
|
126
|
-
:type viewedge: 'ViewEdge'
|
|
127
|
-
:param orientation: The orientation with which the ViewEdge must be processed.
|
|
128
|
-
:type orientation: bool
|
|
129
|
-
'''
|
|
130
|
-
pass
|
|
131
|
-
|
|
132
|
-
def push_viewedge_front(self, viewedge: 'ViewEdge', orientation: bool):
|
|
133
|
-
''' Adds a ViewEdge at the beginning of the Chain.
|
|
134
|
-
|
|
135
|
-
:param viewedge: The ViewEdge that must be added.
|
|
136
|
-
:type viewedge: 'ViewEdge'
|
|
137
|
-
:param orientation: The orientation with which the ViewEdge must be processed.
|
|
138
|
-
:type orientation: bool
|
|
139
|
-
'''
|
|
140
|
-
pass
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
class ChainingIterator:
|
|
144
|
-
''' Class hierarchy: `Iterator` > `ViewEdgeIterator` > `ChainingIterator` Base class for chaining iterators. This class is designed to be overloaded in order to describe chaining rules. It makes the description of chaining rules easier. The two main methods that need to overloaded are traverse() and init(). traverse() tells which `ViewEdge` to follow, among the adjacent ones. If you specify restriction rules (such as "Chain only ViewEdges of the selection"), they will be included in the adjacency iterator (i.e, the adjacent iterator will only stop on "valid" edges).
|
|
145
|
-
'''
|
|
146
|
-
|
|
147
|
-
is_incrementing: bool = None
|
|
148
|
-
''' True if the current iteration is an incrementation.
|
|
149
|
-
|
|
150
|
-
:type: bool
|
|
151
|
-
'''
|
|
152
|
-
|
|
153
|
-
next_vertex: 'ViewVertex' = None
|
|
154
|
-
''' The ViewVertex that is the next crossing.
|
|
155
|
-
|
|
156
|
-
:type: 'ViewVertex'
|
|
157
|
-
'''
|
|
158
|
-
|
|
159
|
-
object: 'ViewEdge' = None
|
|
160
|
-
''' The ViewEdge object currently pointed by this iterator.
|
|
161
|
-
|
|
162
|
-
:type: 'ViewEdge'
|
|
163
|
-
'''
|
|
164
|
-
|
|
165
|
-
def __init__(self,
|
|
166
|
-
restrict_to_selection: bool = True,
|
|
167
|
-
restrict_to_unvisited: bool = True,
|
|
168
|
-
begin: typing.Optional['ViewEdge'] = None,
|
|
169
|
-
orientation: bool = True):
|
|
170
|
-
''' __init__(brother) Builds a Chaining Iterator from the first ViewEdge used for iteration and its orientation or by using the copy constructor.
|
|
171
|
-
|
|
172
|
-
:param restrict_to_selection: Indicates whether to force the chaining to stay within the set of selected ViewEdges or not.
|
|
173
|
-
:type restrict_to_selection: bool
|
|
174
|
-
:param restrict_to_unvisited: Indicates whether a ViewEdge that has already been chained must be ignored ot not.
|
|
175
|
-
:type restrict_to_unvisited: bool
|
|
176
|
-
:param begin: The ViewEdge from which to start the chain.
|
|
177
|
-
:type begin: typing.Optional['ViewEdge']
|
|
178
|
-
:param orientation: The direction to follow to explore the graph. If true, the direction indicated by the first ViewEdge is used.
|
|
179
|
-
:type orientation: bool
|
|
180
|
-
:param brother:
|
|
181
|
-
:type brother: 'ChainingIterator'
|
|
182
|
-
'''
|
|
183
|
-
pass
|
|
184
|
-
|
|
185
|
-
def init(self):
|
|
186
|
-
''' Initializes the iterator context. This method is called each time a new chain is started. It can be used to reset some history information that you might want to keep.
|
|
187
|
-
|
|
188
|
-
'''
|
|
189
|
-
pass
|
|
190
|
-
|
|
191
|
-
def traverse(self, it: 'AdjacencyIterator') -> 'ViewEdge':
|
|
192
|
-
''' This method iterates over the potential next ViewEdges and returns the one that will be followed next. Returns the next ViewEdge to follow or None when the end of the chain is reached.
|
|
193
|
-
|
|
194
|
-
:param it: The iterator over the ViewEdges adjacent to the end vertex of the current ViewEdge. The adjacency iterator reflects the restriction rules by only iterating over the valid ViewEdges.
|
|
195
|
-
:type it: 'AdjacencyIterator'
|
|
196
|
-
:rtype: 'ViewEdge'
|
|
197
|
-
:return: Returns the next ViewEdge to follow, or None if chaining ends.
|
|
198
|
-
'''
|
|
199
|
-
pass
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
class Curve:
|
|
203
|
-
''' Class hierarchy: `Interface1D` > `Curve` Base class for curves made of CurvePoints. `SVertex` is the type of the initial curve vertices. A `Chain` is a specialization of a Curve.
|
|
204
|
-
'''
|
|
205
|
-
|
|
206
|
-
is_empty: bool = None
|
|
207
|
-
''' True if the Curve doesn't have any Vertex yet.
|
|
208
|
-
|
|
209
|
-
:type: bool
|
|
210
|
-
'''
|
|
211
|
-
|
|
212
|
-
segments_size: int = None
|
|
213
|
-
''' The number of segments in the polyline constituting the Curve.
|
|
214
|
-
|
|
215
|
-
:type: int
|
|
216
|
-
'''
|
|
217
|
-
|
|
218
|
-
def __init__(self):
|
|
219
|
-
''' __init__(brother) __init__(id) Builds a `FrsCurve` using a default constructor, copy constructor or from an `Id`.
|
|
220
|
-
|
|
221
|
-
:param brother: A Curve object.
|
|
222
|
-
:type brother: 'Curve'
|
|
223
|
-
:param id: An Id object.
|
|
224
|
-
:type id: 'Id'
|
|
225
|
-
'''
|
|
226
|
-
pass
|
|
227
|
-
|
|
228
|
-
def push_vertex_back(self, vertex: typing.Union['SVertex', 'CurvePoint']):
|
|
229
|
-
''' Adds a single vertex at the end of the Curve.
|
|
230
|
-
|
|
231
|
-
:param vertex: A vertex object.
|
|
232
|
-
:type vertex: typing.Union['SVertex', 'CurvePoint']
|
|
233
|
-
'''
|
|
234
|
-
pass
|
|
235
|
-
|
|
236
|
-
def push_vertex_front(self, vertex: typing.Union['SVertex', 'CurvePoint']):
|
|
237
|
-
''' Adds a single vertex at the front of the Curve.
|
|
238
|
-
|
|
239
|
-
:param vertex: A vertex object.
|
|
240
|
-
:type vertex: typing.Union['SVertex', 'CurvePoint']
|
|
241
|
-
'''
|
|
242
|
-
pass
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
class CurvePoint:
|
|
246
|
-
''' Class hierarchy: `Interface0D` > `CurvePoint` Class to represent a point of a curve. A CurvePoint can be any point of a 1D curve (it doesn't have to be a vertex of the curve). Any `Interface1D` is built upon ViewEdges, themselves built upon FEdges. Therefore, a curve is basically a polyline made of a list of `SVertex` objects. Thus, a CurvePoint is built by linearly interpolating two `SVertex` instances. CurvePoint can be used as virtual points while querying 0D information along a curve at a given resolution.
|
|
247
|
-
'''
|
|
248
|
-
|
|
249
|
-
fedge: 'FEdge' = None
|
|
250
|
-
''' Gets the FEdge for the two SVertices that given CurvePoints consists out of. A shortcut for CurvePoint.first_svertex.get_fedge(CurvePoint.second_svertex).
|
|
251
|
-
|
|
252
|
-
:type: 'FEdge'
|
|
253
|
-
'''
|
|
254
|
-
|
|
255
|
-
first_svertex: 'SVertex' = None
|
|
256
|
-
''' The first SVertex upon which the CurvePoint is built.
|
|
257
|
-
|
|
258
|
-
:type: 'SVertex'
|
|
259
|
-
'''
|
|
260
|
-
|
|
261
|
-
second_svertex: 'SVertex' = None
|
|
262
|
-
''' The second SVertex upon which the CurvePoint is built.
|
|
263
|
-
|
|
264
|
-
:type: 'SVertex'
|
|
265
|
-
'''
|
|
266
|
-
|
|
267
|
-
t2d: float = None
|
|
268
|
-
''' The 2D interpolation parameter.
|
|
269
|
-
|
|
270
|
-
:type: float
|
|
271
|
-
'''
|
|
272
|
-
|
|
273
|
-
def __init__(self):
|
|
274
|
-
''' __init__(brother) __init__(first_vertex, second_vertex, t2d) __init__(first_point, second_point, t2d) Builds a CurvePoint using the default constructor, copy constructor, or one of the overloaded constructors. The over loaded constructors can either take two `SVertex` or two `CurvePoint` objects and an interpolation parameter
|
|
275
|
-
|
|
276
|
-
:param brother: A CurvePoint object.
|
|
277
|
-
:type brother: 'CurvePoint'
|
|
278
|
-
:param first_vertex: The first SVertex.
|
|
279
|
-
:type first_vertex: 'SVertex'
|
|
280
|
-
:param second_vertex: The second SVertex.
|
|
281
|
-
:type second_vertex: 'SVertex'
|
|
282
|
-
:param first_point: The first CurvePoint.
|
|
283
|
-
:type first_point: 'CurvePoint'
|
|
284
|
-
:param second_point: The second CurvePoint.
|
|
285
|
-
:type second_point: 'CurvePoint'
|
|
286
|
-
:param t2d: A 2D interpolation parameter used to linearly interpolate first_vertex and second_vertex or first_point and second_point.
|
|
287
|
-
:type t2d: float
|
|
288
|
-
'''
|
|
289
|
-
pass
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
class CurvePointIterator:
|
|
293
|
-
''' Class hierarchy: `Iterator` > `CurvePointIterator` Class representing an iterator on a curve. Allows an iterating outside initial vertices. A CurvePoint is instantiated and returned through the .object attribute.
|
|
294
|
-
'''
|
|
295
|
-
|
|
296
|
-
object: 'CurvePoint' = None
|
|
297
|
-
''' The CurvePoint object currently pointed by this iterator.
|
|
298
|
-
|
|
299
|
-
:type: 'CurvePoint'
|
|
300
|
-
'''
|
|
301
|
-
|
|
302
|
-
t: float = None
|
|
303
|
-
''' The curvilinear abscissa of the current point.
|
|
304
|
-
|
|
305
|
-
:type: float
|
|
306
|
-
'''
|
|
307
|
-
|
|
308
|
-
u: float = None
|
|
309
|
-
''' The point parameter at the current point in the stroke (0 <= u <= 1).
|
|
310
|
-
|
|
311
|
-
:type: float
|
|
312
|
-
'''
|
|
313
|
-
|
|
314
|
-
def __init__(self):
|
|
315
|
-
''' __init__(brother) __init__(step=0.0) Builds a CurvePointIterator object using either the default constructor, copy constructor, or the overloaded constructor.
|
|
316
|
-
|
|
317
|
-
:param brother: A CurvePointIterator object.
|
|
318
|
-
:type brother: 'CurvePointIterator'
|
|
319
|
-
:param step: A resampling resolution with which the curve is resampled. If zero, no resampling is done (i.e., the iterator iterates over initial vertices).
|
|
320
|
-
:type step: float
|
|
321
|
-
'''
|
|
322
|
-
pass
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
class FEdge:
|
|
326
|
-
''' Class hierarchy: `Interface1D` > `FEdge` Base Class for feature edges. This FEdge can represent a silhouette, a crease, a ridge/valley, a border or a suggestive contour. For silhouettes, the FEdge is oriented so that the visible face lies on the left of the edge. For borders, the FEdge is oriented so that the face lies on the left of the edge. An FEdge can represent an initial edge of the mesh or runs across a face of the initial mesh depending on the smoothness or sharpness of the mesh. This class is specialized into a smooth and a sharp version since their properties slightly vary from one to the other.
|
|
327
|
-
'''
|
|
328
|
-
|
|
329
|
-
first_svertex: 'SVertex' = None
|
|
330
|
-
''' The first SVertex constituting this FEdge.
|
|
331
|
-
|
|
332
|
-
:type: 'SVertex'
|
|
333
|
-
'''
|
|
334
|
-
|
|
335
|
-
id: 'Id' = None
|
|
336
|
-
''' The Id of this FEdge.
|
|
337
|
-
|
|
338
|
-
:type: 'Id'
|
|
339
|
-
'''
|
|
340
|
-
|
|
341
|
-
is_smooth: bool = None
|
|
342
|
-
''' True if this FEdge is a smooth FEdge.
|
|
343
|
-
|
|
344
|
-
:type: bool
|
|
345
|
-
'''
|
|
346
|
-
|
|
347
|
-
nature: 'Nature' = None
|
|
348
|
-
''' The nature of this FEdge.
|
|
349
|
-
|
|
350
|
-
:type: 'Nature'
|
|
351
|
-
'''
|
|
352
|
-
|
|
353
|
-
next_fedge: 'FEdge' = None
|
|
354
|
-
''' The FEdge following this one in the ViewEdge. The value is None if this FEdge is the last of the ViewEdge.
|
|
355
|
-
|
|
356
|
-
:type: 'FEdge'
|
|
357
|
-
'''
|
|
358
|
-
|
|
359
|
-
previous_fedge: 'FEdge' = None
|
|
360
|
-
''' The FEdge preceding this one in the ViewEdge. The value is None if this FEdge is the first one of the ViewEdge.
|
|
361
|
-
|
|
362
|
-
:type: 'FEdge'
|
|
363
|
-
'''
|
|
364
|
-
|
|
365
|
-
second_svertex: 'SVertex' = None
|
|
366
|
-
''' The second SVertex constituting this FEdge.
|
|
367
|
-
|
|
368
|
-
:type: 'SVertex'
|
|
369
|
-
'''
|
|
370
|
-
|
|
371
|
-
viewedge: 'ViewEdge' = None
|
|
372
|
-
''' The ViewEdge to which this FEdge belongs to.
|
|
373
|
-
|
|
374
|
-
:type: 'ViewEdge'
|
|
375
|
-
'''
|
|
376
|
-
|
|
377
|
-
def FEdge(self):
|
|
378
|
-
''' FEdge(brother) Builds an `FEdge` using the default constructor, copy constructor, or between two `SVertex` objects.
|
|
379
|
-
|
|
380
|
-
:param brother: An FEdge object.
|
|
381
|
-
:type brother: 'FEdge'
|
|
382
|
-
:param first_vertex: The first SVertex.
|
|
383
|
-
:type first_vertex: 'SVertex'
|
|
384
|
-
:param second_vertex: The second SVertex.
|
|
385
|
-
:type second_vertex: 'SVertex'
|
|
386
|
-
'''
|
|
387
|
-
pass
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
class FEdgeSharp:
|
|
391
|
-
''' Class hierarchy: `Interface1D` > `FEdge` > `FEdgeSharp` Class defining a sharp FEdge. A Sharp FEdge corresponds to an initial edge of the input mesh. It can be a silhouette, a crease or a border. If it is a crease edge, then it is bordered by two faces of the mesh. Face a lies on its right whereas Face b lies on its left. If it is a border edge, then it doesn't have any face on its right, and thus Face a is None.
|
|
392
|
-
'''
|
|
393
|
-
|
|
394
|
-
face_mark_left: bool = None
|
|
395
|
-
''' The face mark of the face lying on the left of the FEdge.
|
|
396
|
-
|
|
397
|
-
:type: bool
|
|
398
|
-
'''
|
|
399
|
-
|
|
400
|
-
face_mark_right: bool = None
|
|
401
|
-
''' The face mark of the face lying on the right of the FEdge. If this FEdge is a border, it has no face on the right and thus this property is set to false.
|
|
402
|
-
|
|
403
|
-
:type: bool
|
|
404
|
-
'''
|
|
405
|
-
|
|
406
|
-
material_index_left: int = None
|
|
407
|
-
''' The index of the material of the face lying on the left of the FEdge.
|
|
408
|
-
|
|
409
|
-
:type: int
|
|
410
|
-
'''
|
|
411
|
-
|
|
412
|
-
material_index_right: int = None
|
|
413
|
-
''' The index of the material of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore no material.
|
|
414
|
-
|
|
415
|
-
:type: int
|
|
416
|
-
'''
|
|
417
|
-
|
|
418
|
-
material_left: 'Material' = None
|
|
419
|
-
''' The material of the face lying on the left of the FEdge.
|
|
420
|
-
|
|
421
|
-
:type: 'Material'
|
|
422
|
-
'''
|
|
423
|
-
|
|
424
|
-
material_right: 'Material' = None
|
|
425
|
-
''' The material of the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore no material.
|
|
426
|
-
|
|
427
|
-
:type: 'Material'
|
|
428
|
-
'''
|
|
429
|
-
|
|
430
|
-
normal_left: typing.Union[typing.
|
|
431
|
-
Sequence[float], 'mathutils.Vector'] = None
|
|
432
|
-
''' The normal to the face lying on the left of the FEdge.
|
|
433
|
-
|
|
434
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
435
|
-
'''
|
|
436
|
-
|
|
437
|
-
normal_right: typing.Union[typing.
|
|
438
|
-
Sequence[float], 'mathutils.Vector'] = None
|
|
439
|
-
''' The normal to the face lying on the right of the FEdge. If this FEdge is a border, it has no Face on its right and therefore no normal.
|
|
440
|
-
|
|
441
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
442
|
-
'''
|
|
443
|
-
|
|
444
|
-
def __init__(self):
|
|
445
|
-
''' __init__(brother) __init__(first_vertex, second_vertex) Builds an `FEdgeSharp` using the default constructor, copy constructor, or between two `SVertex` objects.
|
|
446
|
-
|
|
447
|
-
:param brother: An FEdgeSharp object.
|
|
448
|
-
:type brother: 'FEdgeSharp'
|
|
449
|
-
:param first_vertex: The first SVertex object.
|
|
450
|
-
:type first_vertex: 'SVertex'
|
|
451
|
-
:param second_vertex: The second SVertex object.
|
|
452
|
-
:type second_vertex: 'SVertex'
|
|
453
|
-
'''
|
|
454
|
-
pass
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
class FEdgeSmooth:
|
|
458
|
-
''' Class hierarchy: `Interface1D` > `FEdge` > `FEdgeSmooth` Class defining a smooth edge. This kind of edge typically runs across a face of the input mesh. It can be a silhouette, a ridge or valley, a suggestive contour.
|
|
459
|
-
'''
|
|
460
|
-
|
|
461
|
-
face_mark: bool = None
|
|
462
|
-
''' The face mark of the face that this FEdge is running across.
|
|
463
|
-
|
|
464
|
-
:type: bool
|
|
465
|
-
'''
|
|
466
|
-
|
|
467
|
-
material: 'Material' = None
|
|
468
|
-
''' The material of the face that this FEdge is running across.
|
|
469
|
-
|
|
470
|
-
:type: 'Material'
|
|
471
|
-
'''
|
|
472
|
-
|
|
473
|
-
material_index: int = None
|
|
474
|
-
''' The index of the material of the face that this FEdge is running across.
|
|
475
|
-
|
|
476
|
-
:type: int
|
|
477
|
-
'''
|
|
478
|
-
|
|
479
|
-
normal: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
480
|
-
''' The normal of the face that this FEdge is running across.
|
|
481
|
-
|
|
482
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
483
|
-
'''
|
|
484
|
-
|
|
485
|
-
def __init__(self):
|
|
486
|
-
''' __init__(brother) __init__(first_vertex, second_vertex) Builds an `FEdgeSmooth` using the default constructor, copy constructor, or between two `SVertex`.
|
|
487
|
-
|
|
488
|
-
:param brother: An FEdgeSmooth object.
|
|
489
|
-
:type brother: 'FEdgeSmooth'
|
|
490
|
-
:param first_vertex: The first SVertex object.
|
|
491
|
-
:type first_vertex: 'SVertex'
|
|
492
|
-
:param second_vertex: The second SVertex object.
|
|
493
|
-
:type second_vertex: 'SVertex'
|
|
494
|
-
'''
|
|
495
|
-
pass
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
class Id:
|
|
499
|
-
''' Class for representing an object Id.
|
|
500
|
-
'''
|
|
501
|
-
|
|
502
|
-
first: int = None
|
|
503
|
-
''' The first number constituting the Id.
|
|
504
|
-
|
|
505
|
-
:type: int
|
|
506
|
-
'''
|
|
507
|
-
|
|
508
|
-
second: int = None
|
|
509
|
-
''' The second number constituting the Id.
|
|
510
|
-
|
|
511
|
-
:type: int
|
|
512
|
-
'''
|
|
513
|
-
|
|
514
|
-
def __init__(self, brother: 'Id'):
|
|
515
|
-
''' __init__(first=0, second=0) Build the Id from two numbers or another `Id` using the copy constructor.
|
|
516
|
-
|
|
517
|
-
:param brother: An Id object.
|
|
518
|
-
:type brother: 'Id'
|
|
519
|
-
:param first:
|
|
520
|
-
:type first: int
|
|
521
|
-
:param second: The second number.
|
|
522
|
-
:type second: int
|
|
523
|
-
'''
|
|
524
|
-
pass
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
class IntegrationType:
|
|
528
|
-
''' Class hierarchy: int > `IntegrationType` Different integration methods that can be invoked to integrate into a single value the set of values obtained from each 0D element of an 1D element: * IntegrationType.MEAN: The value computed for the 1D element is the mean of the values obtained for the 0D elements. * IntegrationType.MIN: The value computed for the 1D element is the minimum of the values obtained for the 0D elements. * IntegrationType.MAX: The value computed for the 1D element is the maximum of the values obtained for the 0D elements. * IntegrationType.FIRST: The value computed for the 1D element is the first of the values obtained for the 0D elements. * IntegrationType.LAST: The value computed for the 1D element is the last of the values obtained for the 0D elements.
|
|
529
|
-
'''
|
|
530
|
-
|
|
531
|
-
pass
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
class Interface0D:
|
|
535
|
-
''' Base class for any 0D element.
|
|
536
|
-
'''
|
|
537
|
-
|
|
538
|
-
id: 'Id' = None
|
|
539
|
-
''' The Id of this 0D element.
|
|
540
|
-
|
|
541
|
-
:type: 'Id'
|
|
542
|
-
'''
|
|
543
|
-
|
|
544
|
-
name: str = None
|
|
545
|
-
''' The string of the name of this 0D element.
|
|
546
|
-
|
|
547
|
-
:type: str
|
|
548
|
-
'''
|
|
549
|
-
|
|
550
|
-
nature: 'Nature' = None
|
|
551
|
-
''' The nature of this 0D element.
|
|
552
|
-
|
|
553
|
-
:type: 'Nature'
|
|
554
|
-
'''
|
|
555
|
-
|
|
556
|
-
point_2d: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
557
|
-
''' The 2D point of this 0D element.
|
|
558
|
-
|
|
559
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
560
|
-
'''
|
|
561
|
-
|
|
562
|
-
point_3d: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
563
|
-
''' The 3D point of this 0D element.
|
|
564
|
-
|
|
565
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
566
|
-
'''
|
|
567
|
-
|
|
568
|
-
projected_x: float = None
|
|
569
|
-
''' The X coordinate of the projected 3D point of this 0D element.
|
|
570
|
-
|
|
571
|
-
:type: float
|
|
572
|
-
'''
|
|
573
|
-
|
|
574
|
-
projected_y: float = None
|
|
575
|
-
''' The Y coordinate of the projected 3D point of this 0D element.
|
|
576
|
-
|
|
577
|
-
:type: float
|
|
578
|
-
'''
|
|
579
|
-
|
|
580
|
-
projected_z: float = None
|
|
581
|
-
''' The Z coordinate of the projected 3D point of this 0D element.
|
|
582
|
-
|
|
583
|
-
:type: float
|
|
584
|
-
'''
|
|
585
|
-
|
|
586
|
-
def __init__(self):
|
|
587
|
-
''' Default constructor.
|
|
588
|
-
|
|
589
|
-
'''
|
|
590
|
-
pass
|
|
591
|
-
|
|
592
|
-
def get_fedge(self, inter: 'Interface0D') -> 'FEdge':
|
|
593
|
-
''' Returns the FEdge that lies between this 0D element and the 0D element given as the argument.
|
|
594
|
-
|
|
595
|
-
:param inter: A 0D element.
|
|
596
|
-
:type inter: 'Interface0D'
|
|
597
|
-
:rtype: 'FEdge'
|
|
598
|
-
:return: The FEdge lying between the two 0D elements.
|
|
599
|
-
'''
|
|
600
|
-
pass
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
class Interface0DIterator:
|
|
604
|
-
''' Class hierarchy: `Iterator` > `Interface0DIterator` Class defining an iterator over Interface0D elements. An instance of this iterator is always obtained from a 1D element.
|
|
605
|
-
'''
|
|
606
|
-
|
|
607
|
-
at_last: bool = None
|
|
608
|
-
''' True if the iterator points to the last valid element. For its counterpart (pointing to the first valid element), use it.is_begin.
|
|
609
|
-
|
|
610
|
-
:type: bool
|
|
611
|
-
'''
|
|
612
|
-
|
|
613
|
-
object: 'Interface0D' = None
|
|
614
|
-
''' The 0D object currently pointed to by this iterator. Note that the object may be an instance of an Interface0D subclass. For example if the iterator has been created from the `vertices_begin()` method of the `Stroke` class, the .object property refers to a `StrokeVertex` object.
|
|
615
|
-
|
|
616
|
-
:type: 'Interface0D'
|
|
617
|
-
'''
|
|
618
|
-
|
|
619
|
-
t: float = None
|
|
620
|
-
''' The curvilinear abscissa of the current point.
|
|
621
|
-
|
|
622
|
-
:type: float
|
|
623
|
-
'''
|
|
624
|
-
|
|
625
|
-
u: float = None
|
|
626
|
-
''' The point parameter at the current point in the 1D element (0 <= u <= 1).
|
|
627
|
-
|
|
628
|
-
:type: float
|
|
629
|
-
'''
|
|
630
|
-
|
|
631
|
-
def __init__(self, brother: 'Interface0DIterator'):
|
|
632
|
-
''' __init__(it) Construct a nested Interface0DIterator using either the copy constructor or the constructor that takes an he argument of a Function0D.
|
|
633
|
-
|
|
634
|
-
:param brother: An Interface0DIterator object.
|
|
635
|
-
:type brother: 'Interface0DIterator'
|
|
636
|
-
:param it: An iterator object to be nested.
|
|
637
|
-
:type it: typing.Union['SVertexIterator', 'CurvePointIterator', typing.Any, 'StrokeVertexIterator']
|
|
638
|
-
'''
|
|
639
|
-
pass
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
class Interface1D:
|
|
643
|
-
''' Base class for any 1D element.
|
|
644
|
-
'''
|
|
645
|
-
|
|
646
|
-
id: 'Id' = None
|
|
647
|
-
''' The Id of this Interface1D.
|
|
648
|
-
|
|
649
|
-
:type: 'Id'
|
|
650
|
-
'''
|
|
651
|
-
|
|
652
|
-
length_2d: float = None
|
|
653
|
-
''' The 2D length of this Interface1D.
|
|
654
|
-
|
|
655
|
-
:type: float
|
|
656
|
-
'''
|
|
657
|
-
|
|
658
|
-
name: str = None
|
|
659
|
-
''' The string of the name of the 1D element.
|
|
660
|
-
|
|
661
|
-
:type: str
|
|
662
|
-
'''
|
|
663
|
-
|
|
664
|
-
nature: 'Nature' = None
|
|
665
|
-
''' The nature of this Interface1D.
|
|
666
|
-
|
|
667
|
-
:type: 'Nature'
|
|
668
|
-
'''
|
|
669
|
-
|
|
670
|
-
time_stamp: int = None
|
|
671
|
-
''' The time stamp of the 1D element, mainly used for selection.
|
|
672
|
-
|
|
673
|
-
:type: int
|
|
674
|
-
'''
|
|
675
|
-
|
|
676
|
-
def __init__(self):
|
|
677
|
-
''' Default constructor.
|
|
678
|
-
|
|
679
|
-
'''
|
|
680
|
-
pass
|
|
681
|
-
|
|
682
|
-
def points_begin(self, t: float = 0.0) -> 'Interface0DIterator':
|
|
683
|
-
''' Returns an iterator over the Interface1D points, pointing to the first point. The difference with vertices_begin() is that here we can iterate over points of the 1D element at a any given sampling. Indeed, for each iteration, a virtual point is created.
|
|
684
|
-
|
|
685
|
-
:param t: A sampling with which we want to iterate over points of this 1D element.
|
|
686
|
-
:type t: float
|
|
687
|
-
:rtype: 'Interface0DIterator'
|
|
688
|
-
:return: An Interface0DIterator pointing to the first point.
|
|
689
|
-
'''
|
|
690
|
-
pass
|
|
691
|
-
|
|
692
|
-
def points_end(self, t: float = 0.0) -> 'Interface0DIterator':
|
|
693
|
-
''' Returns an iterator over the Interface1D points, pointing after the last point. The difference with vertices_end() is that here we can iterate over points of the 1D element at a given sampling. Indeed, for each iteration, a virtual point is created.
|
|
694
|
-
|
|
695
|
-
:param t: A sampling with which we want to iterate over points of this 1D element.
|
|
696
|
-
:type t: float
|
|
697
|
-
:rtype: 'Interface0DIterator'
|
|
698
|
-
:return: An Interface0DIterator pointing after the last point.
|
|
699
|
-
'''
|
|
700
|
-
pass
|
|
701
|
-
|
|
702
|
-
def vertices_begin(self) -> 'Interface0DIterator':
|
|
703
|
-
''' Returns an iterator over the Interface1D vertices, pointing to the first vertex.
|
|
704
|
-
|
|
705
|
-
:rtype: 'Interface0DIterator'
|
|
706
|
-
:return: An Interface0DIterator pointing to the first vertex.
|
|
707
|
-
'''
|
|
708
|
-
pass
|
|
709
|
-
|
|
710
|
-
def vertices_end(self) -> 'Interface0DIterator':
|
|
711
|
-
''' Returns an iterator over the Interface1D vertices, pointing after the last vertex.
|
|
712
|
-
|
|
713
|
-
:rtype: 'Interface0DIterator'
|
|
714
|
-
:return: An Interface0DIterator pointing after the last vertex.
|
|
715
|
-
'''
|
|
716
|
-
pass
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
class Iterator:
|
|
720
|
-
''' Base class to define iterators.
|
|
721
|
-
'''
|
|
722
|
-
|
|
723
|
-
is_begin: bool = None
|
|
724
|
-
''' True if the iterator points to the first element.
|
|
725
|
-
|
|
726
|
-
:type: bool
|
|
727
|
-
'''
|
|
728
|
-
|
|
729
|
-
is_end: bool = None
|
|
730
|
-
''' True if the iterator points to the last element.
|
|
731
|
-
|
|
732
|
-
:type: bool
|
|
733
|
-
'''
|
|
734
|
-
|
|
735
|
-
name: str = None
|
|
736
|
-
''' The string of the name of this iterator.
|
|
737
|
-
|
|
738
|
-
:type: str
|
|
739
|
-
'''
|
|
740
|
-
|
|
741
|
-
def __init__(self):
|
|
742
|
-
''' Default constructor.
|
|
743
|
-
|
|
744
|
-
'''
|
|
745
|
-
pass
|
|
746
|
-
|
|
747
|
-
def decrement(self):
|
|
748
|
-
''' Makes the iterator point the previous element.
|
|
749
|
-
|
|
750
|
-
'''
|
|
751
|
-
pass
|
|
752
|
-
|
|
753
|
-
def increment(self):
|
|
754
|
-
''' Makes the iterator point the next element.
|
|
755
|
-
|
|
756
|
-
'''
|
|
757
|
-
pass
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
class Material:
|
|
761
|
-
''' Class defining a material.
|
|
762
|
-
'''
|
|
763
|
-
|
|
764
|
-
ambient: typing.Union[typing.Sequence[float], 'mathutils.Color'] = None
|
|
765
|
-
''' RGBA components of the ambient color of the material.
|
|
766
|
-
|
|
767
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Color']
|
|
768
|
-
'''
|
|
769
|
-
|
|
770
|
-
diffuse: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
771
|
-
''' RGBA components of the diffuse color of the material.
|
|
772
|
-
|
|
773
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
774
|
-
'''
|
|
775
|
-
|
|
776
|
-
emission: typing.Union[typing.Sequence[float], 'mathutils.Color'] = None
|
|
777
|
-
''' RGBA components of the emissive color of the material.
|
|
778
|
-
|
|
779
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Color']
|
|
780
|
-
'''
|
|
781
|
-
|
|
782
|
-
line: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
783
|
-
''' RGBA components of the line color of the material.
|
|
784
|
-
|
|
785
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
786
|
-
'''
|
|
787
|
-
|
|
788
|
-
priority: int = None
|
|
789
|
-
''' Line color priority of the material.
|
|
790
|
-
|
|
791
|
-
:type: int
|
|
792
|
-
'''
|
|
793
|
-
|
|
794
|
-
shininess: float = None
|
|
795
|
-
''' Shininess coefficient of the material.
|
|
796
|
-
|
|
797
|
-
:type: float
|
|
798
|
-
'''
|
|
799
|
-
|
|
800
|
-
specular: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
801
|
-
''' RGBA components of the specular color of the material.
|
|
802
|
-
|
|
803
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
804
|
-
'''
|
|
805
|
-
|
|
806
|
-
def __init__(self):
|
|
807
|
-
''' __init__(brother) __init__(line, diffuse, ambient, specular, emission, shininess, priority) Creates a `FrsMaterial` using either default constructor, copy constructor, or an overloaded constructor
|
|
808
|
-
|
|
809
|
-
:param brother: A Material object to be used as a copy constructor.
|
|
810
|
-
:type brother: 'Material'
|
|
811
|
-
:param line: The line color.
|
|
812
|
-
:type line: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
813
|
-
:param diffuse: The diffuse color.
|
|
814
|
-
:type diffuse: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
815
|
-
:param ambient: The ambient color.
|
|
816
|
-
:type ambient: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
817
|
-
:param specular: The specular color.
|
|
818
|
-
:type specular: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
819
|
-
:param emission: The emissive color.
|
|
820
|
-
:type emission: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
821
|
-
:param shininess: The shininess coefficient.
|
|
822
|
-
:type shininess: float
|
|
823
|
-
:param priority: The line color priority.
|
|
824
|
-
:type priority: int
|
|
825
|
-
'''
|
|
826
|
-
pass
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
class MediumType:
|
|
830
|
-
''' Class hierarchy: int > `MediumType` The different blending modes available to simulate the interaction media-medium: * Stroke.DRY_MEDIUM: To simulate a dry medium such as Pencil or Charcoal. * Stroke.HUMID_MEDIUM: To simulate ink painting (color subtraction blending). * Stroke.OPAQUE_MEDIUM: To simulate an opaque medium (oil, spray...).
|
|
831
|
-
'''
|
|
832
|
-
|
|
833
|
-
pass
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
class Nature:
|
|
837
|
-
''' Class hierarchy: int > `Nature` Different possible natures of 0D and 1D elements of the ViewMap. Vertex natures: * Nature.POINT: True for any 0D element. * Nature.S_VERTEX: True for SVertex. * Nature.VIEW_VERTEX: True for ViewVertex. * Nature.NON_T_VERTEX: True for NonTVertex. * Nature.T_VERTEX: True for TVertex. * Nature.CUSP: True for CUSP. Edge natures: * Nature.NO_FEATURE: True for non feature edges (always false for 1D elements of the ViewMap). * Nature.SILHOUETTE: True for silhouettes. * Nature.BORDER: True for borders. * Nature.CREASE: True for creases. * Nature.RIDGE: True for ridges. * Nature.VALLEY: True for valleys. * Nature.SUGGESTIVE_CONTOUR: True for suggestive contours. * Nature.MATERIAL_BOUNDARY: True for edges at material boundaries. * Nature.EDGE_MARK: True for edges having user-defined edge marks.
|
|
838
|
-
'''
|
|
839
|
-
|
|
840
|
-
pass
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
class Noise:
|
|
844
|
-
''' Class to provide Perlin noise functionalities. Undocumented, consider `contributing <https://developer.blender.org/>`__. Undocumented, consider `contributing <https://developer.blender.org/>`__.
|
|
845
|
-
'''
|
|
846
|
-
|
|
847
|
-
def __init__(self, seed=' -1'):
|
|
848
|
-
''' Builds a Noise object. Seed is an optional argument. The seed value is used as a seed for random number generation if it is equal to or greater than zero; otherwise, time is used as a seed.
|
|
849
|
-
|
|
850
|
-
:param seed: Seed for random number generation.
|
|
851
|
-
:type seed: int
|
|
852
|
-
'''
|
|
853
|
-
pass
|
|
854
|
-
|
|
855
|
-
def smoothNoise1(self, v: float) -> float:
|
|
856
|
-
''' Returns a smooth noise value for a 1D element.
|
|
857
|
-
|
|
858
|
-
:param v: One-dimensional sample point.
|
|
859
|
-
:type v: float
|
|
860
|
-
:rtype: float
|
|
861
|
-
:return: A smooth noise value.
|
|
862
|
-
'''
|
|
863
|
-
pass
|
|
864
|
-
|
|
865
|
-
def smoothNoise2(
|
|
866
|
-
self,
|
|
867
|
-
v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.
|
|
868
|
-
List]) -> float:
|
|
869
|
-
''' Returns a smooth noise value for a 2D element.
|
|
870
|
-
|
|
871
|
-
:param v: Two-dimensional sample point.
|
|
872
|
-
:type v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
873
|
-
:rtype: float
|
|
874
|
-
:return: A smooth noise value.
|
|
875
|
-
'''
|
|
876
|
-
pass
|
|
877
|
-
|
|
878
|
-
def smoothNoise3(
|
|
879
|
-
self,
|
|
880
|
-
v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.
|
|
881
|
-
List]) -> float:
|
|
882
|
-
''' Returns a smooth noise value for a 3D element.
|
|
883
|
-
|
|
884
|
-
:param v: Three-dimensional sample point.
|
|
885
|
-
:type v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
886
|
-
:rtype: float
|
|
887
|
-
:return: A smooth noise value.
|
|
888
|
-
'''
|
|
889
|
-
pass
|
|
890
|
-
|
|
891
|
-
def turbulence1(self, v: float, freq: float, amp: float,
|
|
892
|
-
oct: int = 4) -> float:
|
|
893
|
-
''' Returns a noise value for a 1D element.
|
|
894
|
-
|
|
895
|
-
:param v: One-dimensional sample point.
|
|
896
|
-
:type v: float
|
|
897
|
-
:param freq: Noise frequency.
|
|
898
|
-
:type freq: float
|
|
899
|
-
:param amp: Amplitude.
|
|
900
|
-
:type amp: float
|
|
901
|
-
:param oct: Number of octaves.
|
|
902
|
-
:type oct: int
|
|
903
|
-
:rtype: float
|
|
904
|
-
:return: A noise value.
|
|
905
|
-
'''
|
|
906
|
-
pass
|
|
907
|
-
|
|
908
|
-
def turbulence2(
|
|
909
|
-
self,
|
|
910
|
-
v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.
|
|
911
|
-
List],
|
|
912
|
-
freq: float,
|
|
913
|
-
amp: float,
|
|
914
|
-
oct: int = 4) -> float:
|
|
915
|
-
''' Returns a noise value for a 2D element.
|
|
916
|
-
|
|
917
|
-
:param v: Two-dimensional sample point.
|
|
918
|
-
:type v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
919
|
-
:param freq: Noise frequency.
|
|
920
|
-
:type freq: float
|
|
921
|
-
:param amp: Amplitude.
|
|
922
|
-
:type amp: float
|
|
923
|
-
:param oct: Number of octaves.
|
|
924
|
-
:type oct: int
|
|
925
|
-
:rtype: float
|
|
926
|
-
:return: A noise value.
|
|
927
|
-
'''
|
|
928
|
-
pass
|
|
929
|
-
|
|
930
|
-
def turbulence3(
|
|
931
|
-
self,
|
|
932
|
-
v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.
|
|
933
|
-
List],
|
|
934
|
-
freq: float,
|
|
935
|
-
amp: float,
|
|
936
|
-
oct: int = 4) -> float:
|
|
937
|
-
''' Returns a noise value for a 3D element.
|
|
938
|
-
|
|
939
|
-
:param v: Three-dimensional sample point.
|
|
940
|
-
:type v: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
941
|
-
:param freq: Noise frequency.
|
|
942
|
-
:type freq: float
|
|
943
|
-
:param amp: Amplitude.
|
|
944
|
-
:type amp: float
|
|
945
|
-
:param oct: Number of octaves.
|
|
946
|
-
:type oct: int
|
|
947
|
-
:rtype: float
|
|
948
|
-
:return: A noise value.
|
|
949
|
-
'''
|
|
950
|
-
pass
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
class NonTVertex:
|
|
954
|
-
''' Class hierarchy: `Interface0D` > `ViewVertex` > `NonTVertex` View vertex for corners, cusps, etc. associated to a single SVertex. Can be associated to 2 or more view edges.
|
|
955
|
-
'''
|
|
956
|
-
|
|
957
|
-
svertex: 'SVertex' = None
|
|
958
|
-
''' The SVertex on top of which this NonTVertex is built.
|
|
959
|
-
|
|
960
|
-
:type: 'SVertex'
|
|
961
|
-
'''
|
|
962
|
-
|
|
963
|
-
def __init__(self):
|
|
964
|
-
''' __init__(svertex) Builds a `NonTVertex` using the default constructor or a `SVertex`.
|
|
965
|
-
|
|
966
|
-
:param svertex: An SVertex object.
|
|
967
|
-
:type svertex: 'SVertex'
|
|
968
|
-
'''
|
|
969
|
-
pass
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
class Operators:
|
|
973
|
-
''' Class defining the operators used in a style module. There are five types of operators: Selection, chaining, splitting, sorting and creation. All these operators are user controlled through functors, predicates and shaders that are taken as arguments.
|
|
974
|
-
'''
|
|
975
|
-
|
|
976
|
-
@staticmethod
|
|
977
|
-
def bidirectional_chain(it: 'ChainingIterator', pred: 'UnaryPredicate1D'):
|
|
978
|
-
''' bidirectional_chain(it) Builds a set of chains from the current set of ViewEdges. Each ViewEdge of the current list potentially starts a new chain. The chaining operator then iterates over the ViewEdges of the ViewMap using the user specified iterator. This operator iterates both using the increment and decrement operators and is therefore bidirectional. This operator works with a ChainingIterator which contains the chaining rules. It is this last one which can be told to chain only edges that belong to the selection or not to process twice a ViewEdge during the chaining. Each time a ViewEdge is added to a chain, its chaining time stamp is incremented. This allows you to keep track of the number of chains to which a ViewEdge belongs to.
|
|
979
|
-
|
|
980
|
-
:param it: The ChainingIterator on the ViewEdges of the ViewMap. It contains the chaining rule.
|
|
981
|
-
:type it: 'ChainingIterator'
|
|
982
|
-
:param pred: The predicate on the ViewEdge that expresses the stopping condition. This parameter is optional, you make not want to pass a stopping criterion when the stopping criterion is already contained in the iterator definition.
|
|
983
|
-
:type pred: 'UnaryPredicate1D'
|
|
984
|
-
'''
|
|
985
|
-
pass
|
|
986
|
-
|
|
987
|
-
@staticmethod
|
|
988
|
-
def chain(it: 'ViewEdgeIterator', pred: 'UnaryPredicate1D',
|
|
989
|
-
modifier: 'UnaryFunction1DVoid'):
|
|
990
|
-
''' chain(it, pred) Builds a set of chains from the current set of ViewEdges. Each ViewEdge of the current list starts a new chain. The chaining operator then iterates over the ViewEdges of the ViewMap using the user specified iterator. This operator only iterates using the increment operator and is therefore unidirectional.
|
|
991
|
-
|
|
992
|
-
:param it: The iterator on the ViewEdges of the ViewMap. It contains the chaining rule.
|
|
993
|
-
:type it: 'ViewEdgeIterator'
|
|
994
|
-
:param pred: The predicate on the ViewEdge that expresses the stopping condition.
|
|
995
|
-
:type pred: 'UnaryPredicate1D'
|
|
996
|
-
:param modifier: A function that takes a ViewEdge as argument and that is used to modify the processed ViewEdge state (the timestamp incrementation is a typical illustration of such a modifier). If this argument is not given, the time stamp is automatically managed.
|
|
997
|
-
:type modifier: 'UnaryFunction1DVoid'
|
|
998
|
-
'''
|
|
999
|
-
pass
|
|
1000
|
-
|
|
1001
|
-
@staticmethod
|
|
1002
|
-
def create(pred: 'UnaryPredicate1D', shaders: typing.List['StrokeShader']):
|
|
1003
|
-
''' Creates and shades the strokes from the current set of chains. A predicate can be specified to make a selection pass on the chains.
|
|
1004
|
-
|
|
1005
|
-
:param pred: The predicate that a chain must verify in order to be transform as a stroke.
|
|
1006
|
-
:type pred: 'UnaryPredicate1D'
|
|
1007
|
-
:param shaders: The list of shaders used to shade the strokes.
|
|
1008
|
-
:type shaders: typing.List['StrokeShader']
|
|
1009
|
-
'''
|
|
1010
|
-
pass
|
|
1011
|
-
|
|
1012
|
-
@staticmethod
|
|
1013
|
-
def get_chain_from_index(i: int) -> 'Chain':
|
|
1014
|
-
''' Returns the Chain at the index in the current set of Chains.
|
|
1015
|
-
|
|
1016
|
-
:param i: index (0 <= i < Operators.get_chains_size()).
|
|
1017
|
-
:type i: int
|
|
1018
|
-
:rtype: 'Chain'
|
|
1019
|
-
:return: The Chain object.
|
|
1020
|
-
'''
|
|
1021
|
-
pass
|
|
1022
|
-
|
|
1023
|
-
@staticmethod
|
|
1024
|
-
def get_chains_size() -> int:
|
|
1025
|
-
''' Returns the number of Chains.
|
|
1026
|
-
|
|
1027
|
-
:rtype: int
|
|
1028
|
-
:return: The number of Chains.
|
|
1029
|
-
'''
|
|
1030
|
-
pass
|
|
1031
|
-
|
|
1032
|
-
@staticmethod
|
|
1033
|
-
def get_stroke_from_index(i: int) -> 'Stroke':
|
|
1034
|
-
''' Returns the Stroke at the index in the current set of Strokes.
|
|
1035
|
-
|
|
1036
|
-
:param i: index (0 <= i < Operators.get_strokes_size()).
|
|
1037
|
-
:type i: int
|
|
1038
|
-
:rtype: 'Stroke'
|
|
1039
|
-
:return: The Stroke object.
|
|
1040
|
-
'''
|
|
1041
|
-
pass
|
|
1042
|
-
|
|
1043
|
-
@staticmethod
|
|
1044
|
-
def get_strokes_size() -> int:
|
|
1045
|
-
''' Returns the number of Strokes.
|
|
1046
|
-
|
|
1047
|
-
:rtype: int
|
|
1048
|
-
:return: The number of Strokes.
|
|
1049
|
-
'''
|
|
1050
|
-
pass
|
|
1051
|
-
|
|
1052
|
-
@staticmethod
|
|
1053
|
-
def get_view_edges_size() -> int:
|
|
1054
|
-
''' Returns the number of ViewEdges.
|
|
1055
|
-
|
|
1056
|
-
:rtype: int
|
|
1057
|
-
:return: The number of ViewEdges.
|
|
1058
|
-
'''
|
|
1059
|
-
pass
|
|
1060
|
-
|
|
1061
|
-
@staticmethod
|
|
1062
|
-
def get_viewedge_from_index(i: int) -> 'ViewEdge':
|
|
1063
|
-
''' Returns the ViewEdge at the index in the current set of ViewEdges.
|
|
1064
|
-
|
|
1065
|
-
:param i: index (0 <= i < Operators.get_view_edges_size()).
|
|
1066
|
-
:type i: int
|
|
1067
|
-
:rtype: 'ViewEdge'
|
|
1068
|
-
:return: The ViewEdge object.
|
|
1069
|
-
'''
|
|
1070
|
-
pass
|
|
1071
|
-
|
|
1072
|
-
@staticmethod
|
|
1073
|
-
def recursive_split(func: 'UnaryFunction0DDouble',
|
|
1074
|
-
pred_1d: 'UnaryPredicate1D',
|
|
1075
|
-
sampling: float = 0.0):
|
|
1076
|
-
''' recursive_split(func, pred_0d, pred_1d, sampling=0.0) Splits the current set of chains in a recursive way. We process the points of each chain (with a specified sampling) to find the point minimizing a specified function. The chain is split in two at this point and the two new chains are processed in the same way. The recursivity level is controlled through a predicate 1D that expresses a stopping condition on the chain that is about to be processed. The user can also specify a 0D predicate to make a first selection on the points that can potentially be split. A point that doesn't verify the 0D predicate won't be candidate in realizing the min.
|
|
1077
|
-
|
|
1078
|
-
:param func: The Unary Function evaluated at each point of the chain. The splitting point is the point minimizing this function.
|
|
1079
|
-
:type func: 'UnaryFunction0DDouble'
|
|
1080
|
-
:param pred_0d: The Unary Predicate 0D used to select the candidate points where the split can occur. For example, it is very likely that would rather have your chain splitting around its middle point than around one of its extremities. A 0D predicate working on the curvilinear abscissa allows to add this kind of constraints.
|
|
1081
|
-
:type pred_0d: 'UnaryPredicate0D'
|
|
1082
|
-
:param pred_1d: The Unary Predicate expressing the recursivity stopping condition. This predicate is evaluated for each curve before it actually gets split. If pred_1d(chain) is true, the curve won't be split anymore.
|
|
1083
|
-
:type pred_1d: 'UnaryPredicate1D'
|
|
1084
|
-
:param sampling: The resolution used to sample the chain for the predicates evaluation. (The chain is not actually resampled; a virtual point only progresses along the curve using this resolution.)
|
|
1085
|
-
:type sampling: float
|
|
1086
|
-
'''
|
|
1087
|
-
pass
|
|
1088
|
-
|
|
1089
|
-
@staticmethod
|
|
1090
|
-
def reset(delete_strokes: bool = True):
|
|
1091
|
-
''' Resets the line stylization process to the initial state. The results of stroke creation are accumulated if **delete_strokes** is set to False.
|
|
1092
|
-
|
|
1093
|
-
:param delete_strokes: Delete the strokes that are currently stored.
|
|
1094
|
-
:type delete_strokes: bool
|
|
1095
|
-
'''
|
|
1096
|
-
pass
|
|
1097
|
-
|
|
1098
|
-
@staticmethod
|
|
1099
|
-
def select(pred: 'UnaryPredicate1D'):
|
|
1100
|
-
''' Selects the ViewEdges of the ViewMap verifying a specified condition.
|
|
1101
|
-
|
|
1102
|
-
:param pred: The predicate expressing this condition.
|
|
1103
|
-
:type pred: 'UnaryPredicate1D'
|
|
1104
|
-
'''
|
|
1105
|
-
pass
|
|
1106
|
-
|
|
1107
|
-
@staticmethod
|
|
1108
|
-
def sequential_split(starting_pred: 'UnaryPredicate0D',
|
|
1109
|
-
stopping_pred: 'UnaryPredicate0D',
|
|
1110
|
-
sampling: float = 0.0):
|
|
1111
|
-
''' sequential_split(pred, sampling=0.0) Splits each chain of the current set of chains in a sequential way. The points of each chain are processed (with a specified sampling) sequentially. The first point of the initial chain is the first point of one of the resulting chains. The splitting ends when no more chain can start.
|
|
1112
|
-
|
|
1113
|
-
:param starting_pred: The predicate on a point that expresses the starting condition. Each time this condition is verified, a new chain begins
|
|
1114
|
-
:type starting_pred: 'UnaryPredicate0D'
|
|
1115
|
-
:param stopping_pred: The predicate on a point that expresses the stopping condition. The chain ends as soon as this predicate is verified.
|
|
1116
|
-
:type stopping_pred: 'UnaryPredicate0D'
|
|
1117
|
-
:param pred: The predicate on a point that expresses the splitting condition. Each time the condition is verified, the chain is split into two chains. The resulting set of chains is a partition of the initial chain
|
|
1118
|
-
:type pred: 'UnaryPredicate0D'
|
|
1119
|
-
:param sampling: The resolution used to sample the chain for the predicates evaluation. (The chain is not actually resampled; a virtual point only progresses along the curve using this resolution.)
|
|
1120
|
-
:type sampling: float
|
|
1121
|
-
'''
|
|
1122
|
-
pass
|
|
1123
|
-
|
|
1124
|
-
@staticmethod
|
|
1125
|
-
def sort(pred: 'BinaryPredicate1D'):
|
|
1126
|
-
''' Sorts the current set of chains (or viewedges) according to the comparison predicate given as argument.
|
|
1127
|
-
|
|
1128
|
-
:param pred: The binary predicate used for the comparison.
|
|
1129
|
-
:type pred: 'BinaryPredicate1D'
|
|
1130
|
-
'''
|
|
1131
|
-
pass
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
class SShape:
|
|
1135
|
-
''' Class to define a feature shape. It is the gathering of feature elements from an identified input shape.
|
|
1136
|
-
'''
|
|
1137
|
-
|
|
1138
|
-
bbox: 'BBox' = None
|
|
1139
|
-
''' The bounding box of the SShape.
|
|
1140
|
-
|
|
1141
|
-
:type: 'BBox'
|
|
1142
|
-
'''
|
|
1143
|
-
|
|
1144
|
-
edges: typing.List['FEdge'] = None
|
|
1145
|
-
''' The list of edges constituting this SShape.
|
|
1146
|
-
|
|
1147
|
-
:type: typing.List['FEdge']
|
|
1148
|
-
'''
|
|
1149
|
-
|
|
1150
|
-
id: 'Id' = None
|
|
1151
|
-
''' The Id of this SShape.
|
|
1152
|
-
|
|
1153
|
-
:type: 'Id'
|
|
1154
|
-
'''
|
|
1155
|
-
|
|
1156
|
-
name: str = None
|
|
1157
|
-
''' The name of the SShape.
|
|
1158
|
-
|
|
1159
|
-
:type: str
|
|
1160
|
-
'''
|
|
1161
|
-
|
|
1162
|
-
vertices: typing.List['SVertex'] = None
|
|
1163
|
-
''' The list of vertices constituting this SShape.
|
|
1164
|
-
|
|
1165
|
-
:type: typing.List['SVertex']
|
|
1166
|
-
'''
|
|
1167
|
-
|
|
1168
|
-
def __init__(self):
|
|
1169
|
-
''' __init__(brother) Creates a `SShape` class using either a default constructor or copy constructor.
|
|
1170
|
-
|
|
1171
|
-
:param brother: An SShape object.
|
|
1172
|
-
:type brother: 'SShape'
|
|
1173
|
-
'''
|
|
1174
|
-
pass
|
|
1175
|
-
|
|
1176
|
-
def add_edge(self, edge: 'FEdge'):
|
|
1177
|
-
''' Adds an FEdge to the list of FEdges.
|
|
1178
|
-
|
|
1179
|
-
:param edge: An FEdge object.
|
|
1180
|
-
:type edge: 'FEdge'
|
|
1181
|
-
'''
|
|
1182
|
-
pass
|
|
1183
|
-
|
|
1184
|
-
def add_vertex(self, vertex: 'SVertex'):
|
|
1185
|
-
''' Adds an SVertex to the list of SVertex of this Shape. The SShape attribute of the SVertex is also set to this SShape.
|
|
1186
|
-
|
|
1187
|
-
:param vertex: An SVertex object.
|
|
1188
|
-
:type vertex: 'SVertex'
|
|
1189
|
-
'''
|
|
1190
|
-
pass
|
|
1191
|
-
|
|
1192
|
-
def compute_bbox(self):
|
|
1193
|
-
''' Compute the bbox of the SShape.
|
|
1194
|
-
|
|
1195
|
-
'''
|
|
1196
|
-
pass
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
class SVertex:
|
|
1200
|
-
''' Class hierarchy: `Interface0D` > `SVertex` Class to define a vertex of the embedding.
|
|
1201
|
-
'''
|
|
1202
|
-
|
|
1203
|
-
curvatures: typing.Tuple = None
|
|
1204
|
-
''' Curvature information expressed in the form of a seven-element tuple (K1, e1, K2, e2, Kr, er, dKr), where K1 and K2 are scalar values representing the first (maximum) and second (minimum) principal curvatures at this SVertex, respectively; e1 and e2 are three-dimensional vectors representing the first and second principal directions, i.e. the directions of the normal plane where the curvature takes its maximum and minimum values, respectively; and Kr, er and dKr are the radial curvature, radial direction, and the derivative of the radial curvature at this SVertex, respectively.
|
|
1205
|
-
|
|
1206
|
-
:type: typing.Tuple
|
|
1207
|
-
'''
|
|
1208
|
-
|
|
1209
|
-
id: 'Id' = None
|
|
1210
|
-
''' The Id of this SVertex.
|
|
1211
|
-
|
|
1212
|
-
:type: 'Id'
|
|
1213
|
-
'''
|
|
1214
|
-
|
|
1215
|
-
normals: typing.List['mathutils.Vector'] = None
|
|
1216
|
-
''' The normals for this Vertex as a list. In a sharp surface, an SVertex has exactly one normal. In a smooth surface, an SVertex can have any number of normals.
|
|
1217
|
-
|
|
1218
|
-
:type: typing.List['mathutils.Vector']
|
|
1219
|
-
'''
|
|
1220
|
-
|
|
1221
|
-
normals_size: int = None
|
|
1222
|
-
''' The number of different normals for this SVertex.
|
|
1223
|
-
|
|
1224
|
-
:type: int
|
|
1225
|
-
'''
|
|
1226
|
-
|
|
1227
|
-
point_2d: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
1228
|
-
''' The projected 3D coordinates of the SVertex.
|
|
1229
|
-
|
|
1230
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
1231
|
-
'''
|
|
1232
|
-
|
|
1233
|
-
point_3d: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
1234
|
-
''' The 3D coordinates of the SVertex.
|
|
1235
|
-
|
|
1236
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
1237
|
-
'''
|
|
1238
|
-
|
|
1239
|
-
viewvertex: 'ViewVertex' = None
|
|
1240
|
-
''' If this SVertex is also a ViewVertex, this property refers to the ViewVertex, and None otherwise.
|
|
1241
|
-
|
|
1242
|
-
:type: 'ViewVertex'
|
|
1243
|
-
'''
|
|
1244
|
-
|
|
1245
|
-
def __init__(self):
|
|
1246
|
-
''' __init__(brother) __init__(point_3d, id) Builds a `SVertex` using the default constructor, copy constructor or the overloaded constructor which builds a `SVertex` from 3D coordinates and an Id.
|
|
1247
|
-
|
|
1248
|
-
:param brother: A SVertex object.
|
|
1249
|
-
:type brother: 'SVertex'
|
|
1250
|
-
:param point_3d: A three-dimensional vector.
|
|
1251
|
-
:type point_3d: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
1252
|
-
:param id: An Id object.
|
|
1253
|
-
:type id: 'Id'
|
|
1254
|
-
'''
|
|
1255
|
-
pass
|
|
1256
|
-
|
|
1257
|
-
def add_fedge(self, fedge: 'FEdge'):
|
|
1258
|
-
''' Add an FEdge to the list of edges emanating from this SVertex.
|
|
1259
|
-
|
|
1260
|
-
:param fedge: An FEdge.
|
|
1261
|
-
:type fedge: 'FEdge'
|
|
1262
|
-
'''
|
|
1263
|
-
pass
|
|
1264
|
-
|
|
1265
|
-
def add_normal(
|
|
1266
|
-
self, normal: typing.
|
|
1267
|
-
Union[typing.Sequence[float], 'mathutils.Vector', typing.List]):
|
|
1268
|
-
''' Adds a normal to the SVertex's set of normals. If the same normal is already in the set, nothing changes.
|
|
1269
|
-
|
|
1270
|
-
:param normal: A three-dimensional vector.
|
|
1271
|
-
:type normal: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
1272
|
-
'''
|
|
1273
|
-
pass
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
class SVertexIterator:
|
|
1277
|
-
''' Class hierarchy: `Iterator` > `SVertexIterator` Class representing an iterator over `SVertex` of a `ViewEdge`. An instance of an SVertexIterator can be obtained from a ViewEdge by calling verticesBegin() or verticesEnd().
|
|
1278
|
-
'''
|
|
1279
|
-
|
|
1280
|
-
object: 'SVertex' = None
|
|
1281
|
-
''' The SVertex object currently pointed by this iterator.
|
|
1282
|
-
|
|
1283
|
-
:type: 'SVertex'
|
|
1284
|
-
'''
|
|
1285
|
-
|
|
1286
|
-
t: float = None
|
|
1287
|
-
''' The curvilinear abscissa of the current point.
|
|
1288
|
-
|
|
1289
|
-
:type: float
|
|
1290
|
-
'''
|
|
1291
|
-
|
|
1292
|
-
u: float = None
|
|
1293
|
-
''' The point parameter at the current point in the 1D element (0 <= u <= 1).
|
|
1294
|
-
|
|
1295
|
-
:type: float
|
|
1296
|
-
'''
|
|
1297
|
-
|
|
1298
|
-
def __init__(self):
|
|
1299
|
-
''' __init__(brother) __init__(vertex, begin, previous_edge, next_edge, t) Build an SVertexIterator using either the default constructor, copy constructor, or the overloaded constructor that starts iteration from an SVertex object vertex.
|
|
1300
|
-
|
|
1301
|
-
:param brother: An SVertexIterator object.
|
|
1302
|
-
:type brother: 'SVertexIterator'
|
|
1303
|
-
:param vertex: The SVertex from which the iterator starts iteration.
|
|
1304
|
-
:type vertex: 'SVertex'
|
|
1305
|
-
:param begin: The first SVertex of a ViewEdge.
|
|
1306
|
-
:type begin: 'SVertex'
|
|
1307
|
-
:param previous_edge: The previous FEdge coming to vertex.
|
|
1308
|
-
:type previous_edge: 'FEdge'
|
|
1309
|
-
:param next_edge: The next FEdge going out from vertex.
|
|
1310
|
-
:type next_edge: 'FEdge'
|
|
1311
|
-
:param t: The curvilinear abscissa at vertex.
|
|
1312
|
-
:type t: float
|
|
1313
|
-
'''
|
|
1314
|
-
pass
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
class Stroke:
|
|
1318
|
-
''' Class hierarchy: `Interface1D` > `Stroke` Class to define a stroke. A stroke is made of a set of 2D vertices (`StrokeVertex`), regularly spaced out. This set of vertices defines the stroke's backbone geometry. Each of these stroke vertices defines the stroke's shape and appearance at this vertex position.
|
|
1319
|
-
'''
|
|
1320
|
-
|
|
1321
|
-
id: 'Id' = None
|
|
1322
|
-
''' The Id of this Stroke.
|
|
1323
|
-
|
|
1324
|
-
:type: 'Id'
|
|
1325
|
-
'''
|
|
1326
|
-
|
|
1327
|
-
length_2d: float = None
|
|
1328
|
-
''' The 2D length of the Stroke.
|
|
1329
|
-
|
|
1330
|
-
:type: float
|
|
1331
|
-
'''
|
|
1332
|
-
|
|
1333
|
-
medium_type: 'MediumType' = None
|
|
1334
|
-
''' The MediumType used for this Stroke.
|
|
1335
|
-
|
|
1336
|
-
:type: 'MediumType'
|
|
1337
|
-
'''
|
|
1338
|
-
|
|
1339
|
-
texture_id: int = None
|
|
1340
|
-
''' The ID of the texture used to simulate th marks system for this Stroke.
|
|
1341
|
-
|
|
1342
|
-
:type: int
|
|
1343
|
-
'''
|
|
1344
|
-
|
|
1345
|
-
tips: bool = None
|
|
1346
|
-
''' True if this Stroke uses a texture with tips, and false otherwise.
|
|
1347
|
-
|
|
1348
|
-
:type: bool
|
|
1349
|
-
'''
|
|
1350
|
-
|
|
1351
|
-
def Stroke(self):
|
|
1352
|
-
''' Stroke(brother) Creates a `Stroke` using the default constructor or copy constructor
|
|
1353
|
-
|
|
1354
|
-
'''
|
|
1355
|
-
pass
|
|
1356
|
-
|
|
1357
|
-
def compute_sampling(self, n: int) -> float:
|
|
1358
|
-
''' Compute the sampling needed to get N vertices. If the specified number of vertices is less than the actual number of vertices, the actual sampling value is returned. (To remove Vertices, use the RemoveVertex() method of this class.)
|
|
1359
|
-
|
|
1360
|
-
:param n: The number of stroke vertices we eventually want in our Stroke.
|
|
1361
|
-
:type n: int
|
|
1362
|
-
:rtype: float
|
|
1363
|
-
:return: The sampling that must be used in the Resample(float) method.
|
|
1364
|
-
'''
|
|
1365
|
-
pass
|
|
1366
|
-
|
|
1367
|
-
def insert_vertex(self, vertex: 'StrokeVertex',
|
|
1368
|
-
next: 'StrokeVertexIterator'):
|
|
1369
|
-
''' Inserts the StrokeVertex given as argument into the Stroke before the point specified by next. The length and curvilinear abscissa are updated consequently.
|
|
1370
|
-
|
|
1371
|
-
:param vertex: The StrokeVertex to insert in the Stroke.
|
|
1372
|
-
:type vertex: 'StrokeVertex'
|
|
1373
|
-
:param next: A StrokeVertexIterator pointing to the StrokeVertex before which vertex must be inserted.
|
|
1374
|
-
:type next: 'StrokeVertexIterator'
|
|
1375
|
-
'''
|
|
1376
|
-
pass
|
|
1377
|
-
|
|
1378
|
-
def remove_all_vertices(self):
|
|
1379
|
-
''' Removes all vertices from the Stroke.
|
|
1380
|
-
|
|
1381
|
-
'''
|
|
1382
|
-
pass
|
|
1383
|
-
|
|
1384
|
-
def remove_vertex(self, vertex: 'StrokeVertex'):
|
|
1385
|
-
''' Removes the StrokeVertex given as argument from the Stroke. The length and curvilinear abscissa are updated consequently.
|
|
1386
|
-
|
|
1387
|
-
:param vertex: the StrokeVertex to remove from the Stroke.
|
|
1388
|
-
:type vertex: 'StrokeVertex'
|
|
1389
|
-
'''
|
|
1390
|
-
pass
|
|
1391
|
-
|
|
1392
|
-
def resample(self, n: int):
|
|
1393
|
-
''' resample(sampling) Resamples the stroke so using one of two methods with the goal of creating a stroke with fewer points and the same shape.
|
|
1394
|
-
|
|
1395
|
-
:param n: Resamples the stroke so that it eventually has N points. That means it is going to add N-vertices_size, where vertices_size is the number of points we already have. If vertices_size >= N, no resampling is done.
|
|
1396
|
-
:type n: int
|
|
1397
|
-
:param sampling: Resamples the stroke with a given sampling value. If the sampling is smaller than the actual sampling value, no resampling is done.
|
|
1398
|
-
:type sampling: float
|
|
1399
|
-
'''
|
|
1400
|
-
pass
|
|
1401
|
-
|
|
1402
|
-
def stroke_vertices_begin(self, t: float = 0.0) -> 'StrokeVertexIterator':
|
|
1403
|
-
''' Returns a StrokeVertexIterator pointing on the first StrokeVertex of the Stroke. One can specify a sampling value to re-sample the Stroke on the fly if needed.
|
|
1404
|
-
|
|
1405
|
-
:param t: The resampling value with which we want our Stroke to be resampled. If 0 is specified, no resampling is done.
|
|
1406
|
-
:type t: float
|
|
1407
|
-
:rtype: 'StrokeVertexIterator'
|
|
1408
|
-
:return: A StrokeVertexIterator pointing on the first StrokeVertex.
|
|
1409
|
-
'''
|
|
1410
|
-
pass
|
|
1411
|
-
|
|
1412
|
-
def stroke_vertices_end(self) -> 'StrokeVertexIterator':
|
|
1413
|
-
''' Returns a StrokeVertexIterator pointing after the last StrokeVertex of the Stroke.
|
|
1414
|
-
|
|
1415
|
-
:rtype: 'StrokeVertexIterator'
|
|
1416
|
-
:return: A StrokeVertexIterator pointing after the last StrokeVertex.
|
|
1417
|
-
'''
|
|
1418
|
-
pass
|
|
1419
|
-
|
|
1420
|
-
def stroke_vertices_size(self) -> int:
|
|
1421
|
-
''' Returns the number of StrokeVertex constituting the Stroke.
|
|
1422
|
-
|
|
1423
|
-
:rtype: int
|
|
1424
|
-
:return: The number of stroke vertices.
|
|
1425
|
-
'''
|
|
1426
|
-
pass
|
|
1427
|
-
|
|
1428
|
-
def update_length(self):
|
|
1429
|
-
''' Updates the 2D length of the Stroke.
|
|
1430
|
-
|
|
1431
|
-
'''
|
|
1432
|
-
pass
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
class StrokeAttribute:
|
|
1436
|
-
''' Class to define a set of attributes associated with a `StrokeVertex`. The attribute set stores the color, alpha and thickness values for a Stroke Vertex.
|
|
1437
|
-
'''
|
|
1438
|
-
|
|
1439
|
-
alpha: float = None
|
|
1440
|
-
''' Alpha component of the stroke color.
|
|
1441
|
-
|
|
1442
|
-
:type: float
|
|
1443
|
-
'''
|
|
1444
|
-
|
|
1445
|
-
color: typing.Union[typing.Sequence[float], 'mathutils.Color'] = None
|
|
1446
|
-
''' RGB components of the stroke color.
|
|
1447
|
-
|
|
1448
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Color']
|
|
1449
|
-
'''
|
|
1450
|
-
|
|
1451
|
-
thickness: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
1452
|
-
''' Right and left components of the stroke thickness. The right (left) component is the thickness on the right (left) of the vertex when following the stroke.
|
|
1453
|
-
|
|
1454
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
1455
|
-
'''
|
|
1456
|
-
|
|
1457
|
-
visible: bool = None
|
|
1458
|
-
''' The visibility flag. True if the StrokeVertex is visible.
|
|
1459
|
-
|
|
1460
|
-
:type: bool
|
|
1461
|
-
'''
|
|
1462
|
-
|
|
1463
|
-
def __init__(self):
|
|
1464
|
-
''' __init__(brother) __init__(red, green, blue, alpha, thickness_right, thickness_left) __init__(attribute1, attribute2, t) Creates a `StrokeAttribute` object using either a default constructor, copy constructor, overloaded constructor, or and interpolation constructor to interpolate between two `StrokeAttribute` objects.
|
|
1465
|
-
|
|
1466
|
-
:param brother: A StrokeAttribute object to be used as a copy constructor.
|
|
1467
|
-
:type brother: 'StrokeAttribute'
|
|
1468
|
-
:param red: Red component of a stroke color.
|
|
1469
|
-
:type red: float
|
|
1470
|
-
:param green: Green component of a stroke color.
|
|
1471
|
-
:type green: float
|
|
1472
|
-
:param blue: Blue component of a stroke color.
|
|
1473
|
-
:type blue: float
|
|
1474
|
-
:param alpha: Alpha component of a stroke color.
|
|
1475
|
-
:type alpha: float
|
|
1476
|
-
:param thickness_right: Stroke thickness on the right.
|
|
1477
|
-
:type thickness_right: float
|
|
1478
|
-
:param thickness_left: Stroke thickness on the left.
|
|
1479
|
-
:type thickness_left: float
|
|
1480
|
-
:param attribute1: The first StrokeAttribute object.
|
|
1481
|
-
:type attribute1: 'StrokeAttribute'
|
|
1482
|
-
:param attribute2: The second StrokeAttribute object.
|
|
1483
|
-
:type attribute2: 'StrokeAttribute'
|
|
1484
|
-
:param t: The interpolation parameter (0 <= t <= 1).
|
|
1485
|
-
:type t: float
|
|
1486
|
-
'''
|
|
1487
|
-
pass
|
|
1488
|
-
|
|
1489
|
-
def get_attribute_real(self, name: str) -> float:
|
|
1490
|
-
''' Returns an attribute of float type.
|
|
1491
|
-
|
|
1492
|
-
:param name: The name of the attribute.
|
|
1493
|
-
:type name: str
|
|
1494
|
-
:rtype: float
|
|
1495
|
-
:return: The attribute value.
|
|
1496
|
-
'''
|
|
1497
|
-
pass
|
|
1498
|
-
|
|
1499
|
-
def get_attribute_vec2(self, name: str) -> 'mathutils.Vector':
|
|
1500
|
-
''' Returns an attribute of two-dimensional vector type.
|
|
1501
|
-
|
|
1502
|
-
:param name: The name of the attribute.
|
|
1503
|
-
:type name: str
|
|
1504
|
-
:rtype: 'mathutils.Vector'
|
|
1505
|
-
:return: The attribute value.
|
|
1506
|
-
'''
|
|
1507
|
-
pass
|
|
1508
|
-
|
|
1509
|
-
def get_attribute_vec3(self, name: str) -> 'mathutils.Vector':
|
|
1510
|
-
''' Returns an attribute of three-dimensional vector type.
|
|
1511
|
-
|
|
1512
|
-
:param name: The name of the attribute.
|
|
1513
|
-
:type name: str
|
|
1514
|
-
:rtype: 'mathutils.Vector'
|
|
1515
|
-
:return: The attribute value.
|
|
1516
|
-
'''
|
|
1517
|
-
pass
|
|
1518
|
-
|
|
1519
|
-
def has_attribute_real(self, name: str) -> bool:
|
|
1520
|
-
''' Checks whether the attribute name of float type is available.
|
|
1521
|
-
|
|
1522
|
-
:param name: The name of the attribute.
|
|
1523
|
-
:type name: str
|
|
1524
|
-
:rtype: bool
|
|
1525
|
-
:return: True if the attribute is available.
|
|
1526
|
-
'''
|
|
1527
|
-
pass
|
|
1528
|
-
|
|
1529
|
-
def has_attribute_vec2(self, name: str) -> bool:
|
|
1530
|
-
''' Checks whether the attribute name of two-dimensional vector type is available.
|
|
1531
|
-
|
|
1532
|
-
:param name: The name of the attribute.
|
|
1533
|
-
:type name: str
|
|
1534
|
-
:rtype: bool
|
|
1535
|
-
:return: True if the attribute is available.
|
|
1536
|
-
'''
|
|
1537
|
-
pass
|
|
1538
|
-
|
|
1539
|
-
def has_attribute_vec3(self, name: str) -> bool:
|
|
1540
|
-
''' Checks whether the attribute name of three-dimensional vector type is available.
|
|
1541
|
-
|
|
1542
|
-
:param name: The name of the attribute.
|
|
1543
|
-
:type name: str
|
|
1544
|
-
:rtype: bool
|
|
1545
|
-
:return: True if the attribute is available.
|
|
1546
|
-
'''
|
|
1547
|
-
pass
|
|
1548
|
-
|
|
1549
|
-
def set_attribute_real(self, name: str, value: float):
|
|
1550
|
-
''' Adds a user-defined attribute of float type. If there is no attribute of the given name, it is added. Otherwise, the new value replaces the old one.
|
|
1551
|
-
|
|
1552
|
-
:param name: The name of the attribute.
|
|
1553
|
-
:type name: str
|
|
1554
|
-
:param value: The attribute value.
|
|
1555
|
-
:type value: float
|
|
1556
|
-
'''
|
|
1557
|
-
pass
|
|
1558
|
-
|
|
1559
|
-
def set_attribute_vec2(
|
|
1560
|
-
self, name: str, value: typing.
|
|
1561
|
-
Union[typing.Sequence[float], 'mathutils.Vector', typing.List]):
|
|
1562
|
-
''' Adds a user-defined attribute of two-dimensional vector type. If there is no attribute of the given name, it is added. Otherwise, the new value replaces the old one.
|
|
1563
|
-
|
|
1564
|
-
:param name: The name of the attribute.
|
|
1565
|
-
:type name: str
|
|
1566
|
-
:param value: The attribute value.
|
|
1567
|
-
:type value: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
1568
|
-
'''
|
|
1569
|
-
pass
|
|
1570
|
-
|
|
1571
|
-
def set_attribute_vec3(
|
|
1572
|
-
self, name: str, value: typing.
|
|
1573
|
-
Union[typing.Sequence[float], 'mathutils.Vector', typing.List]):
|
|
1574
|
-
''' Adds a user-defined attribute of three-dimensional vector type. If there is no attribute of the given name, it is added. Otherwise, the new value replaces the old one.
|
|
1575
|
-
|
|
1576
|
-
:param name: The name of the attribute.
|
|
1577
|
-
:type name: str
|
|
1578
|
-
:param value: The attribute value.
|
|
1579
|
-
:type value: typing.Union[typing.Sequence[float], 'mathutils.Vector', typing.List]
|
|
1580
|
-
'''
|
|
1581
|
-
pass
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
class StrokeShader:
|
|
1585
|
-
''' Base class for stroke shaders. Any stroke shader must inherit from this class and overload the shade() method. A StrokeShader is designed to modify stroke attributes such as thickness, color, geometry, texture, blending mode, and so on. The basic way for this operation is to iterate over the stroke vertices of the `Stroke` and to modify the `StrokeAttribute` of each vertex. Here is a code example of such an iteration:: it = ioStroke.strokeVerticesBegin() while not it.is_end: att = it.object.attribute ## perform here any attribute modification it.increment()
|
|
1586
|
-
'''
|
|
1587
|
-
|
|
1588
|
-
name: str = None
|
|
1589
|
-
''' The name of the stroke shader.
|
|
1590
|
-
|
|
1591
|
-
:type: str
|
|
1592
|
-
'''
|
|
1593
|
-
|
|
1594
|
-
def __init__(self):
|
|
1595
|
-
''' Default constructor.
|
|
1596
|
-
|
|
1597
|
-
'''
|
|
1598
|
-
pass
|
|
1599
|
-
|
|
1600
|
-
def shade(self, stroke: 'Stroke'):
|
|
1601
|
-
''' The shading method. Must be overloaded by inherited classes.
|
|
1602
|
-
|
|
1603
|
-
:param stroke: A Stroke object.
|
|
1604
|
-
:type stroke: 'Stroke'
|
|
1605
|
-
'''
|
|
1606
|
-
pass
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
class StrokeVertex:
|
|
1610
|
-
''' Class hierarchy: `Interface0D` > `CurvePoint` > `StrokeVertex` Class to define a stroke vertex.
|
|
1611
|
-
'''
|
|
1612
|
-
|
|
1613
|
-
attribute: 'StrokeAttribute' = None
|
|
1614
|
-
''' StrokeAttribute for this StrokeVertex.
|
|
1615
|
-
|
|
1616
|
-
:type: 'StrokeAttribute'
|
|
1617
|
-
'''
|
|
1618
|
-
|
|
1619
|
-
curvilinear_abscissa: float = None
|
|
1620
|
-
''' Curvilinear abscissa of this StrokeVertex in the Stroke.
|
|
1621
|
-
|
|
1622
|
-
:type: float
|
|
1623
|
-
'''
|
|
1624
|
-
|
|
1625
|
-
point: typing.Union[typing.Sequence[float], 'mathutils.Vector'] = None
|
|
1626
|
-
''' 2D point coordinates.
|
|
1627
|
-
|
|
1628
|
-
:type: typing.Union[typing.Sequence[float], 'mathutils.Vector']
|
|
1629
|
-
'''
|
|
1630
|
-
|
|
1631
|
-
stroke_length: float = None
|
|
1632
|
-
''' Stroke length (it is only a value retained by the StrokeVertex, and it won't change the real stroke length).
|
|
1633
|
-
|
|
1634
|
-
:type: float
|
|
1635
|
-
'''
|
|
1636
|
-
|
|
1637
|
-
u: float = None
|
|
1638
|
-
''' Curvilinear abscissa of this StrokeVertex in the Stroke.
|
|
1639
|
-
|
|
1640
|
-
:type: float
|
|
1641
|
-
'''
|
|
1642
|
-
|
|
1643
|
-
def __init__(self):
|
|
1644
|
-
''' __init__(brother) __init__(first_vertex, second_vertex, t3d) __init__(point) __init__(svertex) __init__(svertex, attribute) Builds a `StrokeVertex` using the default constructor, copy constructor, from 2 `StrokeVertex` and an interpolation parameter, from a CurvePoint, from a SVertex, or a `SVertex` and a `StrokeAttribute` object.
|
|
1645
|
-
|
|
1646
|
-
:param brother: A StrokeVertex object.
|
|
1647
|
-
:type brother: 'StrokeVertex'
|
|
1648
|
-
:param first_vertex: The first StrokeVertex.
|
|
1649
|
-
:type first_vertex: 'StrokeVertex'
|
|
1650
|
-
:param second_vertex: The second StrokeVertex.
|
|
1651
|
-
:type second_vertex: 'StrokeVertex'
|
|
1652
|
-
:param t3d: An interpolation parameter.
|
|
1653
|
-
:type t3d: float
|
|
1654
|
-
:param point: A CurvePoint object.
|
|
1655
|
-
:type point: 'CurvePoint'
|
|
1656
|
-
:param svertex: An SVertex object. An SVertex object.
|
|
1657
|
-
:type svertex: 'SVertex'
|
|
1658
|
-
:param svertex: An SVertex object. An SVertex object.
|
|
1659
|
-
:type svertex: 'SVertex'
|
|
1660
|
-
:param attribute: A StrokeAttribute object.
|
|
1661
|
-
:type attribute: 'StrokeAttribute'
|
|
1662
|
-
'''
|
|
1663
|
-
pass
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
class StrokeVertexIterator:
|
|
1667
|
-
''' Class hierarchy: `Iterator` > `StrokeVertexIterator` Class defining an iterator designed to iterate over the `StrokeVertex` of a `Stroke`. An instance of a StrokeVertexIterator can be obtained from a Stroke by calling iter(), stroke_vertices_begin() or stroke_vertices_begin(). It is iterating over the same vertices as an `Interface0DIterator`. The difference resides in the object access: an Interface0DIterator only allows access to an Interface0D while one might need to access the specialized StrokeVertex type. In this case, one should use a StrokeVertexIterator. To call functions of the UnaryFuntion0D type, a StrokeVertexIterator can be converted to an Interface0DIterator by by calling Interface0DIterator(it).
|
|
1668
|
-
'''
|
|
1669
|
-
|
|
1670
|
-
at_last: bool = None
|
|
1671
|
-
''' True if the iterator points to the last valid element. For its counterpart (pointing to the first valid element), use it.is_begin.
|
|
1672
|
-
|
|
1673
|
-
:type: bool
|
|
1674
|
-
'''
|
|
1675
|
-
|
|
1676
|
-
object: 'StrokeVertex' = None
|
|
1677
|
-
''' The StrokeVertex object currently pointed to by this iterator.
|
|
1678
|
-
|
|
1679
|
-
:type: 'StrokeVertex'
|
|
1680
|
-
'''
|
|
1681
|
-
|
|
1682
|
-
t: float = None
|
|
1683
|
-
''' The curvilinear abscissa of the current point.
|
|
1684
|
-
|
|
1685
|
-
:type: float
|
|
1686
|
-
'''
|
|
1687
|
-
|
|
1688
|
-
u: float = None
|
|
1689
|
-
''' The point parameter at the current point in the stroke (0 <= u <= 1).
|
|
1690
|
-
|
|
1691
|
-
:type: float
|
|
1692
|
-
'''
|
|
1693
|
-
|
|
1694
|
-
def __init__(self):
|
|
1695
|
-
''' __init__(brother) Creates a `StrokeVertexIterator` using either the default constructor or the copy constructor.
|
|
1696
|
-
|
|
1697
|
-
:param brother: A StrokeVertexIterator object.
|
|
1698
|
-
:type brother: 'StrokeVertexIterator'
|
|
1699
|
-
'''
|
|
1700
|
-
pass
|
|
1701
|
-
|
|
1702
|
-
def decremented(self) -> 'StrokeVertexIterator':
|
|
1703
|
-
''' Returns a copy of a decremented StrokeVertexIterator.
|
|
1704
|
-
|
|
1705
|
-
:rtype: 'StrokeVertexIterator'
|
|
1706
|
-
:return: A StrokeVertexIterator pointing the previous StrokeVertex.
|
|
1707
|
-
'''
|
|
1708
|
-
pass
|
|
1709
|
-
|
|
1710
|
-
def incremented(self) -> 'StrokeVertexIterator':
|
|
1711
|
-
''' Returns a copy of an incremented StrokeVertexIterator.
|
|
1712
|
-
|
|
1713
|
-
:rtype: 'StrokeVertexIterator'
|
|
1714
|
-
:return: A StrokeVertexIterator pointing the next StrokeVertex.
|
|
1715
|
-
'''
|
|
1716
|
-
pass
|
|
1717
|
-
|
|
1718
|
-
def reversed(self) -> 'StrokeVertexIterator':
|
|
1719
|
-
''' Returns a StrokeVertexIterator that traverses stroke vertices in the reversed order.
|
|
1720
|
-
|
|
1721
|
-
:rtype: 'StrokeVertexIterator'
|
|
1722
|
-
:return: A StrokeVertexIterator traversing stroke vertices backward.
|
|
1723
|
-
'''
|
|
1724
|
-
pass
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
class TVertex:
|
|
1728
|
-
''' Class hierarchy: `Interface0D` > `ViewVertex` > `TVertex` Class to define a T vertex, i.e. an intersection between two edges. It points towards two SVertex and four ViewEdges. Among the ViewEdges, two are front and the other two are back. Basically a front edge hides part of a back edge. So, among the back edges, one is of invisibility N and the other of invisibility N+1.
|
|
1729
|
-
'''
|
|
1730
|
-
|
|
1731
|
-
back_svertex: 'SVertex' = None
|
|
1732
|
-
''' The SVertex that is further away from the viewpoint.
|
|
1733
|
-
|
|
1734
|
-
:type: 'SVertex'
|
|
1735
|
-
'''
|
|
1736
|
-
|
|
1737
|
-
front_svertex: 'SVertex' = None
|
|
1738
|
-
''' The SVertex that is closer to the viewpoint.
|
|
1739
|
-
|
|
1740
|
-
:type: 'SVertex'
|
|
1741
|
-
'''
|
|
1742
|
-
|
|
1743
|
-
id: 'Id' = None
|
|
1744
|
-
''' The Id of this TVertex.
|
|
1745
|
-
|
|
1746
|
-
:type: 'Id'
|
|
1747
|
-
'''
|
|
1748
|
-
|
|
1749
|
-
def __init__(self):
|
|
1750
|
-
''' Default constructor.
|
|
1751
|
-
|
|
1752
|
-
'''
|
|
1753
|
-
pass
|
|
1754
|
-
|
|
1755
|
-
def get_mate(self, viewedge: 'ViewEdge') -> 'ViewEdge':
|
|
1756
|
-
''' Returns the mate edge of the ViewEdge given as argument. If the ViewEdge is frontEdgeA, frontEdgeB is returned. If the ViewEdge is frontEdgeB, frontEdgeA is returned. Same for back edges.
|
|
1757
|
-
|
|
1758
|
-
:param viewedge: A ViewEdge object.
|
|
1759
|
-
:type viewedge: 'ViewEdge'
|
|
1760
|
-
:rtype: 'ViewEdge'
|
|
1761
|
-
:return: The mate edge of the given ViewEdge.
|
|
1762
|
-
'''
|
|
1763
|
-
pass
|
|
1764
|
-
|
|
1765
|
-
def get_svertex(self, fedge: 'FEdge') -> 'SVertex':
|
|
1766
|
-
''' Returns the SVertex (among the 2) belonging to the given FEdge.
|
|
1767
|
-
|
|
1768
|
-
:param fedge: An FEdge object.
|
|
1769
|
-
:type fedge: 'FEdge'
|
|
1770
|
-
:rtype: 'SVertex'
|
|
1771
|
-
:return: The SVertex belonging to the given FEdge.
|
|
1772
|
-
'''
|
|
1773
|
-
pass
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
class UnaryFunction0D:
|
|
1777
|
-
''' Base class for Unary Functions (functors) working on `Interface0DIterator`. A unary function will be used by invoking __call__() on an Interface0DIterator. In Python, several different subclasses of UnaryFunction0D are used depending on the types of functors' return values. For example, you would inherit from a `UnaryFunction0DDouble` if you wish to define a function that returns a double value. Available UnaryFunction0D subclasses are: * `UnaryFunction0DDouble` * `UnaryFunction0DEdgeNature` * `UnaryFunction0DFloat` * `UnaryFunction0DId` * `UnaryFunction0DMaterial` * `UnaryFunction0DUnsigned` * `UnaryFunction0DVec2f` * `UnaryFunction0DVec3f` * `UnaryFunction0DVectorViewShape` * `UnaryFunction0DViewShape`
|
|
1778
|
-
'''
|
|
1779
|
-
|
|
1780
|
-
name: str = None
|
|
1781
|
-
''' The name of the unary 0D function.
|
|
1782
|
-
|
|
1783
|
-
:type: str
|
|
1784
|
-
'''
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
class UnaryFunction0DDouble:
|
|
1788
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DDouble` Base class for unary functions (functors) that work on `Interface0DIterator` and return a float value.
|
|
1789
|
-
'''
|
|
1790
|
-
|
|
1791
|
-
def __init__(self):
|
|
1792
|
-
''' Default constructor.
|
|
1793
|
-
|
|
1794
|
-
'''
|
|
1795
|
-
pass
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
class UnaryFunction0DEdgeNature:
|
|
1799
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DEdgeNature` Base class for unary functions (functors) that work on `Interface0DIterator` and return a `Nature` object.
|
|
1800
|
-
'''
|
|
1801
|
-
|
|
1802
|
-
def __init__(self):
|
|
1803
|
-
''' Default constructor.
|
|
1804
|
-
|
|
1805
|
-
'''
|
|
1806
|
-
pass
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
class UnaryFunction0DFloat:
|
|
1810
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DFloat` Base class for unary functions (functors) that work on `Interface0DIterator` and return a float value.
|
|
1811
|
-
'''
|
|
1812
|
-
|
|
1813
|
-
def __init__(self):
|
|
1814
|
-
''' Default constructor.
|
|
1815
|
-
|
|
1816
|
-
'''
|
|
1817
|
-
pass
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
class UnaryFunction0DId:
|
|
1821
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DId` Base class for unary functions (functors) that work on `Interface0DIterator` and return an `Id` object.
|
|
1822
|
-
'''
|
|
1823
|
-
|
|
1824
|
-
def __init__(self):
|
|
1825
|
-
''' Default constructor.
|
|
1826
|
-
|
|
1827
|
-
'''
|
|
1828
|
-
pass
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
class UnaryFunction0DMaterial:
|
|
1832
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DMaterial` Base class for unary functions (functors) that work on `Interface0DIterator` and return a `Material` object.
|
|
1833
|
-
'''
|
|
1834
|
-
|
|
1835
|
-
def __init__(self):
|
|
1836
|
-
''' Default constructor.
|
|
1837
|
-
|
|
1838
|
-
'''
|
|
1839
|
-
pass
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
class UnaryFunction0DUnsigned:
|
|
1843
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DUnsigned` Base class for unary functions (functors) that work on `Interface0DIterator` and return an int value.
|
|
1844
|
-
'''
|
|
1845
|
-
|
|
1846
|
-
def __init__(self):
|
|
1847
|
-
''' Default constructor.
|
|
1848
|
-
|
|
1849
|
-
'''
|
|
1850
|
-
pass
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
class UnaryFunction0DVec2f:
|
|
1854
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DVec2f` Base class for unary functions (functors) that work on `Interface0DIterator` and return a 2D vector.
|
|
1855
|
-
'''
|
|
1856
|
-
|
|
1857
|
-
def __init__(self):
|
|
1858
|
-
''' Default constructor.
|
|
1859
|
-
|
|
1860
|
-
'''
|
|
1861
|
-
pass
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
class UnaryFunction0DVec3f:
|
|
1865
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DVec3f` Base class for unary functions (functors) that work on `Interface0DIterator` and return a 3D vector.
|
|
1866
|
-
'''
|
|
1867
|
-
|
|
1868
|
-
def __init__(self):
|
|
1869
|
-
''' Default constructor.
|
|
1870
|
-
|
|
1871
|
-
'''
|
|
1872
|
-
pass
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
class UnaryFunction0DVectorViewShape:
|
|
1876
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DVectorViewShape` Base class for unary functions (functors) that work on `Interface0DIterator` and return a list of `ViewShape` objects.
|
|
1877
|
-
'''
|
|
1878
|
-
|
|
1879
|
-
def __init__(self):
|
|
1880
|
-
''' Default constructor.
|
|
1881
|
-
|
|
1882
|
-
'''
|
|
1883
|
-
pass
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
class UnaryFunction0DViewShape:
|
|
1887
|
-
''' Class hierarchy: `UnaryFunction0D` > `UnaryFunction0DViewShape` Base class for unary functions (functors) that work on `Interface0DIterator` and return a `ViewShape` object.
|
|
1888
|
-
'''
|
|
1889
|
-
|
|
1890
|
-
def __init__(self):
|
|
1891
|
-
''' Default constructor.
|
|
1892
|
-
|
|
1893
|
-
'''
|
|
1894
|
-
pass
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
class UnaryFunction1D:
|
|
1898
|
-
''' Base class for Unary Functions (functors) working on `Interface1D`. A unary function will be used by invoking __call__() on an Interface1D. In Python, several different subclasses of UnaryFunction1D are used depending on the types of functors' return values. For example, you would inherit from a `UnaryFunction1DDouble` if you wish to define a function that returns a double value. Available UnaryFunction1D subclasses are: * `UnaryFunction1DDouble` * `UnaryFunction1DEdgeNature` * `UnaryFunction1DFloat` * `UnaryFunction1DUnsigned` * `UnaryFunction1DVec2f` * `UnaryFunction1DVec3f` * `UnaryFunction1DVectorViewShape` * `UnaryFunction1DVoid`
|
|
1899
|
-
'''
|
|
1900
|
-
|
|
1901
|
-
name: str = None
|
|
1902
|
-
''' The name of the unary 1D function.
|
|
1903
|
-
|
|
1904
|
-
:type: str
|
|
1905
|
-
'''
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
class UnaryFunction1DDouble:
|
|
1909
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DDouble` Base class for unary functions (functors) that work on `Interface1D` and return a float value.
|
|
1910
|
-
'''
|
|
1911
|
-
|
|
1912
|
-
integration_type: 'IntegrationType' = None
|
|
1913
|
-
''' The integration method.
|
|
1914
|
-
|
|
1915
|
-
:type: 'IntegrationType'
|
|
1916
|
-
'''
|
|
1917
|
-
|
|
1918
|
-
def __init__(self):
|
|
1919
|
-
''' __init__(integration_type) Builds a unary 1D function using the default constructor or the integration method given as an argument.
|
|
1920
|
-
|
|
1921
|
-
:param integration_type: An integration method.
|
|
1922
|
-
:type integration_type: 'IntegrationType'
|
|
1923
|
-
'''
|
|
1924
|
-
pass
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
class UnaryFunction1DEdgeNature:
|
|
1928
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DEdgeNature` Base class for unary functions (functors) that work on `Interface1D` and return a `Nature` object.
|
|
1929
|
-
'''
|
|
1930
|
-
|
|
1931
|
-
integration_type: 'IntegrationType' = None
|
|
1932
|
-
''' The integration method.
|
|
1933
|
-
|
|
1934
|
-
:type: 'IntegrationType'
|
|
1935
|
-
'''
|
|
1936
|
-
|
|
1937
|
-
def __init__(self):
|
|
1938
|
-
''' __init__(integration_type) Builds a unary 1D function using the default constructor or the integration method given as an argument.
|
|
1939
|
-
|
|
1940
|
-
:param integration_type: An integration method.
|
|
1941
|
-
:type integration_type: 'IntegrationType'
|
|
1942
|
-
'''
|
|
1943
|
-
pass
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
class UnaryFunction1DFloat:
|
|
1947
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DFloat` Base class for unary functions (functors) that work on `Interface1D` and return a float value.
|
|
1948
|
-
'''
|
|
1949
|
-
|
|
1950
|
-
integration_type: 'IntegrationType' = None
|
|
1951
|
-
''' The integration method.
|
|
1952
|
-
|
|
1953
|
-
:type: 'IntegrationType'
|
|
1954
|
-
'''
|
|
1955
|
-
|
|
1956
|
-
def __init__(self):
|
|
1957
|
-
''' __init__(integration_type) Builds a unary 1D function using the default constructor or the integration method given as an argument.
|
|
1958
|
-
|
|
1959
|
-
:param integration_type: An integration method.
|
|
1960
|
-
:type integration_type: 'IntegrationType'
|
|
1961
|
-
'''
|
|
1962
|
-
pass
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
class UnaryFunction1DUnsigned:
|
|
1966
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DUnsigned` Base class for unary functions (functors) that work on `Interface1D` and return an int value.
|
|
1967
|
-
'''
|
|
1968
|
-
|
|
1969
|
-
integration_type: 'IntegrationType' = None
|
|
1970
|
-
''' The integration method.
|
|
1971
|
-
|
|
1972
|
-
:type: 'IntegrationType'
|
|
1973
|
-
'''
|
|
1974
|
-
|
|
1975
|
-
def __init__(self):
|
|
1976
|
-
''' __init__(integration_type) Builds a unary 1D function using the default constructor or the integration method given as an argument.
|
|
1977
|
-
|
|
1978
|
-
:param integration_type: An integration method.
|
|
1979
|
-
:type integration_type: 'IntegrationType'
|
|
1980
|
-
'''
|
|
1981
|
-
pass
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
class UnaryFunction1DVec2f:
|
|
1985
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DVec2f` Base class for unary functions (functors) that work on `Interface1D` and return a 2D vector.
|
|
1986
|
-
'''
|
|
1987
|
-
|
|
1988
|
-
integration_type: 'IntegrationType' = None
|
|
1989
|
-
''' The integration method.
|
|
1990
|
-
|
|
1991
|
-
:type: 'IntegrationType'
|
|
1992
|
-
'''
|
|
1993
|
-
|
|
1994
|
-
def __init__(self):
|
|
1995
|
-
''' __init__(integration_type) Builds a unary 1D function using the default constructor or the integration method given as an argument.
|
|
1996
|
-
|
|
1997
|
-
:param integration_type: An integration method.
|
|
1998
|
-
:type integration_type: 'IntegrationType'
|
|
1999
|
-
'''
|
|
2000
|
-
pass
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
class UnaryFunction1DVec3f:
|
|
2004
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DVec3f` Base class for unary functions (functors) that work on `Interface1D` and return a 3D vector.
|
|
2005
|
-
'''
|
|
2006
|
-
|
|
2007
|
-
integration_type: 'IntegrationType' = None
|
|
2008
|
-
''' The integration method.
|
|
2009
|
-
|
|
2010
|
-
:type: 'IntegrationType'
|
|
2011
|
-
'''
|
|
2012
|
-
|
|
2013
|
-
def __init__(self):
|
|
2014
|
-
''' __init__(integration_type) Builds a unary 1D function using the default constructor or the integration method given as an argument.
|
|
2015
|
-
|
|
2016
|
-
:param integration_type: An integration method.
|
|
2017
|
-
:type integration_type: 'IntegrationType'
|
|
2018
|
-
'''
|
|
2019
|
-
pass
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
class UnaryFunction1DVectorViewShape:
|
|
2023
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DVectorViewShape` Base class for unary functions (functors) that work on `Interface1D` and return a list of `ViewShape` objects.
|
|
2024
|
-
'''
|
|
2025
|
-
|
|
2026
|
-
integration_type: 'IntegrationType' = None
|
|
2027
|
-
''' The integration method.
|
|
2028
|
-
|
|
2029
|
-
:type: 'IntegrationType'
|
|
2030
|
-
'''
|
|
2031
|
-
|
|
2032
|
-
def __init__(self):
|
|
2033
|
-
''' __init__(integration_type) Builds a unary 1D function using the default constructor or the integration method given as an argument.
|
|
2034
|
-
|
|
2035
|
-
:param integration_type: An integration method.
|
|
2036
|
-
:type integration_type: 'IntegrationType'
|
|
2037
|
-
'''
|
|
2038
|
-
pass
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
class UnaryFunction1DVoid:
|
|
2042
|
-
''' Class hierarchy: `UnaryFunction1D` > `UnaryFunction1DVoid` Base class for unary functions (functors) working on `Interface1D`.
|
|
2043
|
-
'''
|
|
2044
|
-
|
|
2045
|
-
integration_type: 'IntegrationType' = None
|
|
2046
|
-
''' The integration method.
|
|
2047
|
-
|
|
2048
|
-
:type: 'IntegrationType'
|
|
2049
|
-
'''
|
|
2050
|
-
|
|
2051
|
-
def __init__(self):
|
|
2052
|
-
''' __init__(integration_type) Builds a unary 1D function using either a default constructor or the integration method given as an argument.
|
|
2053
|
-
|
|
2054
|
-
:param integration_type: An integration method.
|
|
2055
|
-
:type integration_type: 'IntegrationType'
|
|
2056
|
-
'''
|
|
2057
|
-
pass
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
class UnaryPredicate0D:
|
|
2061
|
-
''' Base class for unary predicates that work on `Interface0DIterator`. A UnaryPredicate0D is a functor that evaluates a condition on an Interface0DIterator and returns true or false depending on whether this condition is satisfied or not. The UnaryPredicate0D is used by invoking its __call__() method. Any inherited class must overload the __call__() method.
|
|
2062
|
-
'''
|
|
2063
|
-
|
|
2064
|
-
name: str = None
|
|
2065
|
-
''' The name of the unary 0D predicate.
|
|
2066
|
-
|
|
2067
|
-
:type: str
|
|
2068
|
-
'''
|
|
2069
|
-
|
|
2070
|
-
def __init__(self):
|
|
2071
|
-
''' Default constructor.
|
|
2072
|
-
|
|
2073
|
-
'''
|
|
2074
|
-
pass
|
|
2075
|
-
|
|
2076
|
-
def __call__(self, it: 'Interface0DIterator') -> bool:
|
|
2077
|
-
''' Must be overload by inherited classes.
|
|
2078
|
-
|
|
2079
|
-
:param it: The Interface0DIterator pointing onto the Interface0D at which we wish to evaluate the predicate.
|
|
2080
|
-
:type it: 'Interface0DIterator'
|
|
2081
|
-
:rtype: bool
|
|
2082
|
-
:return: True if the condition is satisfied, false otherwise.
|
|
2083
|
-
'''
|
|
2084
|
-
pass
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
class UnaryPredicate1D:
|
|
2088
|
-
''' Base class for unary predicates that work on `Interface1D`. A UnaryPredicate1D is a functor that evaluates a condition on a Interface1D and returns true or false depending on whether this condition is satisfied or not. The UnaryPredicate1D is used by invoking its __call__() method. Any inherited class must overload the __call__() method.
|
|
2089
|
-
'''
|
|
2090
|
-
|
|
2091
|
-
name: str = None
|
|
2092
|
-
''' The name of the unary 1D predicate.
|
|
2093
|
-
|
|
2094
|
-
:type: str
|
|
2095
|
-
'''
|
|
2096
|
-
|
|
2097
|
-
def __init__(self):
|
|
2098
|
-
''' Default constructor.
|
|
2099
|
-
|
|
2100
|
-
'''
|
|
2101
|
-
pass
|
|
2102
|
-
|
|
2103
|
-
def __call__(self, inter: 'Interface1D') -> bool:
|
|
2104
|
-
''' Must be overload by inherited classes.
|
|
2105
|
-
|
|
2106
|
-
:param inter: The Interface1D on which we wish to evaluate the predicate.
|
|
2107
|
-
:type inter: 'Interface1D'
|
|
2108
|
-
:rtype: bool
|
|
2109
|
-
:return: True if the condition is satisfied, false otherwise.
|
|
2110
|
-
'''
|
|
2111
|
-
pass
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
class ViewEdge:
|
|
2115
|
-
''' Class hierarchy: `Interface1D` > `ViewEdge` Class defining a ViewEdge. A ViewEdge in an edge of the image graph. it connects two `ViewVertex` objects. It is made by connecting a set of FEdges.
|
|
2116
|
-
'''
|
|
2117
|
-
|
|
2118
|
-
chaining_time_stamp: int = None
|
|
2119
|
-
''' The time stamp of this ViewEdge.
|
|
2120
|
-
|
|
2121
|
-
:type: int
|
|
2122
|
-
'''
|
|
2123
|
-
|
|
2124
|
-
first_fedge: 'FEdge' = None
|
|
2125
|
-
''' The first FEdge that constitutes this ViewEdge.
|
|
2126
|
-
|
|
2127
|
-
:type: 'FEdge'
|
|
2128
|
-
'''
|
|
2129
|
-
|
|
2130
|
-
first_viewvertex: 'ViewVertex' = None
|
|
2131
|
-
''' The first ViewVertex.
|
|
2132
|
-
|
|
2133
|
-
:type: 'ViewVertex'
|
|
2134
|
-
'''
|
|
2135
|
-
|
|
2136
|
-
id: 'Id' = None
|
|
2137
|
-
''' The Id of this ViewEdge.
|
|
2138
|
-
|
|
2139
|
-
:type: 'Id'
|
|
2140
|
-
'''
|
|
2141
|
-
|
|
2142
|
-
is_closed: bool = None
|
|
2143
|
-
''' True if this ViewEdge forms a closed loop.
|
|
2144
|
-
|
|
2145
|
-
:type: bool
|
|
2146
|
-
'''
|
|
2147
|
-
|
|
2148
|
-
last_fedge: 'FEdge' = None
|
|
2149
|
-
''' The last FEdge that constitutes this ViewEdge.
|
|
2150
|
-
|
|
2151
|
-
:type: 'FEdge'
|
|
2152
|
-
'''
|
|
2153
|
-
|
|
2154
|
-
last_viewvertex: 'ViewVertex' = None
|
|
2155
|
-
''' The second ViewVertex.
|
|
2156
|
-
|
|
2157
|
-
:type: 'ViewVertex'
|
|
2158
|
-
'''
|
|
2159
|
-
|
|
2160
|
-
nature: 'Nature' = None
|
|
2161
|
-
''' The nature of this ViewEdge.
|
|
2162
|
-
|
|
2163
|
-
:type: 'Nature'
|
|
2164
|
-
'''
|
|
2165
|
-
|
|
2166
|
-
occludee: 'ViewShape' = None
|
|
2167
|
-
''' The shape that is occluded by the ViewShape to which this ViewEdge belongs to. If no object is occluded, this property is set to None.
|
|
2168
|
-
|
|
2169
|
-
:type: 'ViewShape'
|
|
2170
|
-
'''
|
|
2171
|
-
|
|
2172
|
-
qi: int = None
|
|
2173
|
-
''' The quantitative invisibility.
|
|
2174
|
-
|
|
2175
|
-
:type: int
|
|
2176
|
-
'''
|
|
2177
|
-
|
|
2178
|
-
viewshape: 'ViewShape' = None
|
|
2179
|
-
''' The ViewShape to which this ViewEdge belongs to.
|
|
2180
|
-
|
|
2181
|
-
:type: 'ViewShape'
|
|
2182
|
-
'''
|
|
2183
|
-
|
|
2184
|
-
def __init__(self):
|
|
2185
|
-
''' __init__(brother) Builds a `ViewEdge` using the default constructor or the copy constructor.
|
|
2186
|
-
|
|
2187
|
-
:param brother: A ViewEdge object.
|
|
2188
|
-
:type brother: 'ViewEdge'
|
|
2189
|
-
'''
|
|
2190
|
-
pass
|
|
2191
|
-
|
|
2192
|
-
def update_fedges(self):
|
|
2193
|
-
''' Sets Viewedge to this for all embedded fedges.
|
|
2194
|
-
|
|
2195
|
-
'''
|
|
2196
|
-
pass
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
class ViewEdgeIterator:
|
|
2200
|
-
''' Class hierarchy: `Iterator` > `ViewEdgeIterator` Base class for iterators over ViewEdges of the `ViewMap` Graph. Basically the increment() operator of this class should be able to take the decision of "where" (on which ViewEdge) to go when pointing on a given ViewEdge.
|
|
2201
|
-
'''
|
|
2202
|
-
|
|
2203
|
-
begin: 'ViewEdge' = None
|
|
2204
|
-
''' The first ViewEdge used for the iteration.
|
|
2205
|
-
|
|
2206
|
-
:type: 'ViewEdge'
|
|
2207
|
-
'''
|
|
2208
|
-
|
|
2209
|
-
current_edge: 'ViewEdge' = None
|
|
2210
|
-
''' The ViewEdge object currently pointed by this iterator.
|
|
2211
|
-
|
|
2212
|
-
:type: 'ViewEdge'
|
|
2213
|
-
'''
|
|
2214
|
-
|
|
2215
|
-
object: 'ViewEdge' = None
|
|
2216
|
-
''' The ViewEdge object currently pointed by this iterator.
|
|
2217
|
-
|
|
2218
|
-
:type: 'ViewEdge'
|
|
2219
|
-
'''
|
|
2220
|
-
|
|
2221
|
-
orientation: bool = None
|
|
2222
|
-
''' The orientation of the pointed ViewEdge in the iteration. If true, the iterator looks for the next ViewEdge among those ViewEdges that surround the ending ViewVertex of the "begin" ViewEdge. If false, the iterator searches over the ViewEdges surrounding the ending ViewVertex of the "begin" ViewEdge.
|
|
2223
|
-
|
|
2224
|
-
:type: bool
|
|
2225
|
-
'''
|
|
2226
|
-
|
|
2227
|
-
def __init__(self,
|
|
2228
|
-
begin: typing.Optional['ViewEdge'] = None,
|
|
2229
|
-
orientation: bool = True):
|
|
2230
|
-
''' __init__(brother) Builds a ViewEdgeIterator from a starting ViewEdge and its orientation or the copy constructor.
|
|
2231
|
-
|
|
2232
|
-
:param begin: The ViewEdge from where to start the iteration.
|
|
2233
|
-
:type begin: typing.Optional['ViewEdge']
|
|
2234
|
-
: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.
|
|
2235
|
-
:type orientation: bool
|
|
2236
|
-
:param brother: A ViewEdgeIterator object.
|
|
2237
|
-
:type brother: 'ViewEdgeIterator'
|
|
2238
|
-
'''
|
|
2239
|
-
pass
|
|
2240
|
-
|
|
2241
|
-
def change_orientation(self):
|
|
2242
|
-
''' Changes the current orientation.
|
|
2243
|
-
|
|
2244
|
-
'''
|
|
2245
|
-
pass
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
class ViewMap:
|
|
2249
|
-
''' Class defining the ViewMap.
|
|
2250
|
-
'''
|
|
2251
|
-
|
|
2252
|
-
scene_bbox: 'BBox' = None
|
|
2253
|
-
''' The 3D bounding box of the scene.
|
|
2254
|
-
|
|
2255
|
-
:type: 'BBox'
|
|
2256
|
-
'''
|
|
2257
|
-
|
|
2258
|
-
def __init__(self):
|
|
2259
|
-
''' Default constructor.
|
|
2260
|
-
|
|
2261
|
-
'''
|
|
2262
|
-
pass
|
|
2263
|
-
|
|
2264
|
-
def get_closest_fedge(self, x: float, y: float) -> 'FEdge':
|
|
2265
|
-
''' Gets the FEdge nearest to the 2D point specified as arguments.
|
|
2266
|
-
|
|
2267
|
-
:param x: X coordinate of a 2D point.
|
|
2268
|
-
:type x: float
|
|
2269
|
-
:param y: Y coordinate of a 2D point.
|
|
2270
|
-
:type y: float
|
|
2271
|
-
:rtype: 'FEdge'
|
|
2272
|
-
:return: The FEdge nearest to the specified 2D point.
|
|
2273
|
-
'''
|
|
2274
|
-
pass
|
|
2275
|
-
|
|
2276
|
-
def get_closest_viewedge(self, x: float, y: float) -> 'ViewEdge':
|
|
2277
|
-
''' Gets the ViewEdge nearest to the 2D point specified as arguments.
|
|
2278
|
-
|
|
2279
|
-
:param x: X coordinate of a 2D point.
|
|
2280
|
-
:type x: float
|
|
2281
|
-
:param y: Y coordinate of a 2D point.
|
|
2282
|
-
:type y: float
|
|
2283
|
-
:rtype: 'ViewEdge'
|
|
2284
|
-
:return: The ViewEdge nearest to the specified 2D point.
|
|
2285
|
-
'''
|
|
2286
|
-
pass
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
class ViewShape:
|
|
2290
|
-
''' Class gathering the elements of the ViewMap (i.e., `ViewVertex` and `ViewEdge`) that are issued from the same input shape.
|
|
2291
|
-
'''
|
|
2292
|
-
|
|
2293
|
-
edges: typing.List['ViewEdge'] = None
|
|
2294
|
-
''' The list of ViewEdge objects contained in this ViewShape.
|
|
2295
|
-
|
|
2296
|
-
:type: typing.List['ViewEdge']
|
|
2297
|
-
'''
|
|
2298
|
-
|
|
2299
|
-
id: 'Id' = None
|
|
2300
|
-
''' The Id of this ViewShape.
|
|
2301
|
-
|
|
2302
|
-
:type: 'Id'
|
|
2303
|
-
'''
|
|
2304
|
-
|
|
2305
|
-
library_path: typing.Union[str, typing.Any] = None
|
|
2306
|
-
''' The library path of the ViewShape.
|
|
2307
|
-
|
|
2308
|
-
:type: typing.Union[str, typing.Any]
|
|
2309
|
-
'''
|
|
2310
|
-
|
|
2311
|
-
name: str = None
|
|
2312
|
-
''' The name of the ViewShape.
|
|
2313
|
-
|
|
2314
|
-
:type: str
|
|
2315
|
-
'''
|
|
2316
|
-
|
|
2317
|
-
sshape: 'SShape' = None
|
|
2318
|
-
''' The SShape on top of which this ViewShape is built.
|
|
2319
|
-
|
|
2320
|
-
:type: 'SShape'
|
|
2321
|
-
'''
|
|
2322
|
-
|
|
2323
|
-
vertices: typing.List['ViewVertex'] = None
|
|
2324
|
-
''' The list of ViewVertex objects contained in this ViewShape.
|
|
2325
|
-
|
|
2326
|
-
:type: typing.List['ViewVertex']
|
|
2327
|
-
'''
|
|
2328
|
-
|
|
2329
|
-
def __init__(self):
|
|
2330
|
-
''' __init__(brother) __init__(sshape) Builds a `ViewShape` using the default constructor, copy constructor, or from a `SShape`.
|
|
2331
|
-
|
|
2332
|
-
:param brother: A ViewShape object.
|
|
2333
|
-
:type brother: 'ViewShape'
|
|
2334
|
-
:param sshape: An SShape object.
|
|
2335
|
-
:type sshape: 'SShape'
|
|
2336
|
-
'''
|
|
2337
|
-
pass
|
|
2338
|
-
|
|
2339
|
-
def add_edge(self, edge: 'ViewEdge'):
|
|
2340
|
-
''' Adds a ViewEdge to the list of ViewEdge objects.
|
|
2341
|
-
|
|
2342
|
-
:param edge: A ViewEdge object.
|
|
2343
|
-
:type edge: 'ViewEdge'
|
|
2344
|
-
'''
|
|
2345
|
-
pass
|
|
2346
|
-
|
|
2347
|
-
def add_vertex(self, vertex: 'ViewVertex'):
|
|
2348
|
-
''' Adds a ViewVertex to the list of the ViewVertex objects.
|
|
2349
|
-
|
|
2350
|
-
:param vertex: A ViewVertex object.
|
|
2351
|
-
:type vertex: 'ViewVertex'
|
|
2352
|
-
'''
|
|
2353
|
-
pass
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
class ViewVertex:
|
|
2357
|
-
''' Class hierarchy: `Interface0D` > `ViewVertex` Class to define a view vertex. A view vertex is a feature vertex corresponding to a point of the image graph, where the characteristics of an edge (e.g., nature and visibility) might change. A `ViewVertex` can be of two kinds: A `TVertex` when it corresponds to the intersection between two ViewEdges or a `NonTVertex` when it corresponds to a vertex of the initial input mesh (it is the case for vertices such as corners for example). Thus, this class can be specialized into two classes, the `TVertex` class and the `NonTVertex` class.
|
|
2358
|
-
'''
|
|
2359
|
-
|
|
2360
|
-
nature: 'Nature' = None
|
|
2361
|
-
''' The nature of this ViewVertex.
|
|
2362
|
-
|
|
2363
|
-
:type: 'Nature'
|
|
2364
|
-
'''
|
|
2365
|
-
|
|
2366
|
-
def edges_begin(self) -> 'orientedViewEdgeIterator':
|
|
2367
|
-
''' Returns an iterator over the ViewEdges that goes to or comes from this ViewVertex pointing to the first ViewEdge of the list. The orientedViewEdgeIterator allows to iterate in CCW order over these ViewEdges and to get the orientation for each ViewEdge (incoming/outgoing).
|
|
2368
|
-
|
|
2369
|
-
:rtype: 'orientedViewEdgeIterator'
|
|
2370
|
-
:return: An orientedViewEdgeIterator pointing to the first ViewEdge.
|
|
2371
|
-
'''
|
|
2372
|
-
pass
|
|
2373
|
-
|
|
2374
|
-
def edges_end(self) -> 'orientedViewEdgeIterator':
|
|
2375
|
-
''' Returns an orientedViewEdgeIterator over the ViewEdges around this ViewVertex, pointing after the last ViewEdge.
|
|
2376
|
-
|
|
2377
|
-
:rtype: 'orientedViewEdgeIterator'
|
|
2378
|
-
:return: An orientedViewEdgeIterator pointing after the last ViewEdge.
|
|
2379
|
-
'''
|
|
2380
|
-
pass
|
|
2381
|
-
|
|
2382
|
-
def edges_iterator(self, edge: 'ViewEdge') -> 'orientedViewEdgeIterator':
|
|
2383
|
-
''' Returns an orientedViewEdgeIterator pointing to the ViewEdge given as argument.
|
|
2384
|
-
|
|
2385
|
-
:param edge: A ViewEdge object.
|
|
2386
|
-
:type edge: 'ViewEdge'
|
|
2387
|
-
:rtype: 'orientedViewEdgeIterator'
|
|
2388
|
-
:return: An orientedViewEdgeIterator pointing to the given ViewEdge.
|
|
2389
|
-
'''
|
|
2390
|
-
pass
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
class orientedViewEdgeIterator:
|
|
2394
|
-
''' Class hierarchy: `Iterator` > `orientedViewEdgeIterator` Class representing an iterator over oriented ViewEdges around a `ViewVertex`. This iterator allows a CCW iteration (in the image plane). An instance of an orientedViewEdgeIterator can only be obtained from a ViewVertex by calling edges_begin() or edges_end().
|
|
2395
|
-
'''
|
|
2396
|
-
|
|
2397
|
-
object: typing.Union[bool, 'ViewEdge'] = None
|
|
2398
|
-
''' The oriented ViewEdge (i.e., a tuple of the pointed ViewEdge and a boolean value) currently pointed to by this iterator. If the boolean value is true, the ViewEdge is incoming.
|
|
2399
|
-
|
|
2400
|
-
:type: typing.Union[bool, 'ViewEdge']
|
|
2401
|
-
'''
|
|
2402
|
-
|
|
2403
|
-
def __init__(self):
|
|
2404
|
-
''' __init__(iBrother) Creates an `orientedViewEdgeIterator` using either the default constructor or the copy constructor.
|
|
2405
|
-
|
|
2406
|
-
:param iBrother: An orientedViewEdgeIterator object.
|
|
2407
|
-
:type iBrother: 'orientedViewEdgeIterator'
|
|
2408
|
-
'''
|
|
2409
|
-
pass
|