fake-bpy-module 20240327__py3-none-any.whl → 20240329__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- aud/__init__.pyi +34 -96
- bgl/__init__.pyi +1265 -2417
- bl_math/__init__.pyi +3 -14
- bl_ui/space_toolsystem_toolbar/__init__.pyi +3 -0
- blf/__init__.pyi +13 -50
- bmesh/ops/__init__.pyi +68 -142
- bmesh/types/__init__.pyi +18 -44
- bmesh/utils/__init__.pyi +2 -6
- bpy/app/icons/__init__.pyi +2 -4
- bpy/app/timers/__init__.pyi +2 -6
- bpy/ops/action/__init__.pyi +92 -93
- bpy/ops/anim/__init__.pyi +104 -104
- bpy/ops/armature/__init__.pyi +108 -112
- bpy/ops/asset/__init__.pyi +32 -32
- bpy/ops/boid/__init__.pyi +18 -18
- bpy/ops/brush/__init__.pyi +18 -18
- bpy/ops/buttons/__init__.pyi +12 -12
- bpy/ops/cachefile/__init__.pyi +10 -10
- bpy/ops/camera/__init__.pyi +4 -4
- bpy/ops/clip/__init__.pyi +194 -195
- bpy/ops/cloth/__init__.pyi +2 -2
- bpy/ops/collection/__init__.pyi +10 -10
- bpy/ops/console/__init__.pyi +42 -42
- bpy/ops/constraint/__init__.pyi +36 -36
- bpy/ops/curve/__init__.pyi +114 -118
- bpy/ops/curves/__init__.pyi +55 -53
- bpy/ops/cycles/__init__.pyi +6 -6
- bpy/ops/dpaint/__init__.pyi +12 -12
- bpy/ops/ed/__init__.pyi +24 -24
- bpy/ops/export_anim/__init__.pyi +2 -2
- bpy/ops/export_mesh/__init__.pyi +2 -2
- bpy/ops/export_scene/__init__.pyi +7 -7
- bpy/ops/file/__init__.pyi +80 -83
- bpy/ops/fluid/__init__.pyi +28 -28
- bpy/ops/font/__init__.pyi +46 -46
- bpy/ops/geometry/__init__.pyi +38 -38
- bpy/ops/gizmogroup/__init__.pyi +4 -4
- bpy/ops/gpencil/__init__.pyi +308 -309
- bpy/ops/graph/__init__.pyi +150 -151
- bpy/ops/grease_pencil/__init__.pyi +114 -115
- bpy/ops/image/__init__.pyi +100 -100
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +2 -2
- bpy/ops/import_mesh/__init__.pyi +2 -2
- bpy/ops/import_scene/__init__.pyi +6 -6
- bpy/ops/info/__init__.pyi +14 -14
- bpy/ops/lattice/__init__.pyi +16 -16
- bpy/ops/marker/__init__.pyi +22 -22
- bpy/ops/mask/__init__.pyi +90 -91
- bpy/ops/material/__init__.pyi +6 -6
- bpy/ops/mball/__init__.pyi +20 -21
- bpy/ops/mesh/__init__.pyi +429 -427
- bpy/ops/nla/__init__.pyi +90 -91
- bpy/ops/node/__init__.pyi +242 -243
- bpy/ops/object/__init__.pyi +572 -567
- bpy/ops/outliner/__init__.pyi +142 -142
- bpy/ops/paint/__init__.pyi +182 -126
- bpy/ops/paintcurve/__init__.pyi +20 -20
- bpy/ops/palette/__init__.pyi +14 -14
- bpy/ops/particle/__init__.pyi +72 -72
- bpy/ops/pose/__init__.pyi +90 -90
- bpy/ops/poselib/__init__.pyi +18 -18
- bpy/ops/preferences/__init__.pyi +76 -76
- bpy/ops/ptcache/__init__.pyi +14 -14
- bpy/ops/render/__init__.pyi +24 -24
- bpy/ops/rigidbody/__init__.pyi +34 -34
- bpy/ops/scene/__init__.pyi +86 -86
- bpy/ops/screen/__init__.pyi +84 -84
- bpy/ops/script/__init__.pyi +6 -6
- bpy/ops/sculpt/__init__.pyi +62 -62
- bpy/ops/sculpt_curves/__init__.pyi +8 -8
- bpy/ops/sequencer/__init__.pyi +184 -185
- bpy/ops/sound/__init__.pyi +16 -16
- bpy/ops/spreadsheet/__init__.pyi +8 -8
- bpy/ops/surface/__init__.pyi +12 -12
- bpy/ops/text/__init__.pyi +86 -86
- bpy/ops/text_editor/__init__.pyi +2 -2
- bpy/ops/texture/__init__.pyi +8 -8
- bpy/ops/transform/__init__.pyi +112 -112
- bpy/ops/ui/__init__.pyi +64 -64
- bpy/ops/uilist/__init__.pyi +6 -6
- bpy/ops/uv/__init__.pyi +104 -105
- bpy/ops/view2d/__init__.pyi +28 -28
- bpy/ops/view3d/__init__.pyi +134 -134
- bpy/ops/wm/__init__.pyi +232 -232
- bpy/ops/workspace/__init__.pyi +14 -14
- bpy/ops/world/__init__.pyi +2 -2
- bpy/props/__init__.pyi +29 -52
- bpy/types/__init__.pyi +5257 -3766
- bpy/utils/__init__.pyi +3 -6
- bpy/utils/units/__init__.pyi +3 -6
- bpy_extras/io_utils/__init__.pyi +8 -0
- {fake_bpy_module-20240327.dist-info → fake_bpy_module-20240329.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240327.dist-info → fake_bpy_module-20240329.dist-info}/RECORD +114 -114
- freestyle/chainingiterators/__init__.pyi +5 -12
- freestyle/functions/__init__.pyi +19 -73
- freestyle/predicates/__init__.pyi +8 -21
- freestyle/shaders/__init__.pyi +32 -81
- freestyle/types/__init__.pyi +100 -270
- freestyle/utils/ContextFunctions/__init__.pyi +7 -27
- freestyle/utils/__init__.pyi +1 -2
- gpu/capabilities/__init__.pyi +15 -32
- gpu/matrix/__init__.pyi +1 -2
- gpu/state/__init__.pyi +4 -10
- gpu/types/__init__.pyi +29 -87
- gpu_extras/presets/__init__.pyi +4 -16
- imbuf/types/__init__.pyi +4 -10
- mathutils/__init__.pyi +106 -257
- mathutils/bvhtree/__init__.pyi +7 -15
- mathutils/geometry/__init__.pyi +9 -18
- mathutils/kdtree/__init__.pyi +4 -11
- mathutils/noise/__init__.pyi +41 -82
- {fake_bpy_module-20240327.dist-info → fake_bpy_module-20240329.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240327.dist-info → fake_bpy_module-20240329.dist-info}/top_level.txt +0 -0
freestyle/types/__init__.pyi
CHANGED
|
@@ -275,11 +275,8 @@ class Curve:
|
|
|
275
275
|
:type: bool
|
|
276
276
|
"""
|
|
277
277
|
|
|
278
|
-
segments_size:
|
|
279
|
-
""" The number of segments in the polyline constituting the Curve.
|
|
280
|
-
|
|
281
|
-
:type: int
|
|
282
|
-
"""
|
|
278
|
+
segments_size: typing.Any
|
|
279
|
+
""" The number of segments in the polyline constituting the Curve."""
|
|
283
280
|
|
|
284
281
|
def __init__(self):
|
|
285
282
|
"""Builds a `FrsCurve` using a default constructor,
|
|
@@ -352,11 +349,8 @@ A shortcut for CurvePoint.first_svertex.get_fedge(CurvePoint.second_svertex).
|
|
|
352
349
|
:type: SVertex
|
|
353
350
|
"""
|
|
354
351
|
|
|
355
|
-
t2d:
|
|
356
|
-
""" The 2D interpolation parameter.
|
|
357
|
-
|
|
358
|
-
:type: float
|
|
359
|
-
"""
|
|
352
|
+
t2d: typing.Any
|
|
353
|
+
""" The 2D interpolation parameter."""
|
|
360
354
|
|
|
361
355
|
def __init__(self):
|
|
362
356
|
"""Builds a CurvePoint using the default constructor, copy constructor,
|
|
@@ -378,7 +372,7 @@ A shortcut for CurvePoint.first_svertex.get_fedge(CurvePoint.second_svertex).
|
|
|
378
372
|
"""
|
|
379
373
|
...
|
|
380
374
|
|
|
381
|
-
def __init__(self, first_vertex: SVertex, second_vertex: SVertex, t2d
|
|
375
|
+
def __init__(self, first_vertex: SVertex, second_vertex: SVertex, t2d):
|
|
382
376
|
"""Builds a CurvePoint using the default constructor, copy constructor,
|
|
383
377
|
or one of the overloaded constructors. The over loaded constructors
|
|
384
378
|
can either take two `SVertex` or two `CurvePoint`
|
|
@@ -390,11 +384,10 @@ A shortcut for CurvePoint.first_svertex.get_fedge(CurvePoint.second_svertex).
|
|
|
390
384
|
:type second_vertex: SVertex
|
|
391
385
|
:param t2d: A 2D interpolation parameter used to linearly interpolate
|
|
392
386
|
first_vertex and second_vertex or first_point and second_point.
|
|
393
|
-
:type t2d: float
|
|
394
387
|
"""
|
|
395
388
|
...
|
|
396
389
|
|
|
397
|
-
def __init__(self, first_point: CurvePoint, second_point: CurvePoint, t2d
|
|
390
|
+
def __init__(self, first_point: CurvePoint, second_point: CurvePoint, t2d):
|
|
398
391
|
"""Builds a CurvePoint using the default constructor, copy constructor,
|
|
399
392
|
or one of the overloaded constructors. The over loaded constructors
|
|
400
393
|
can either take two `SVertex` or two `CurvePoint`
|
|
@@ -406,7 +399,6 @@ A shortcut for CurvePoint.first_svertex.get_fedge(CurvePoint.second_svertex).
|
|
|
406
399
|
:type second_point: CurvePoint
|
|
407
400
|
:param t2d: A 2D interpolation parameter used to linearly interpolate
|
|
408
401
|
first_vertex and second_vertex or first_point and second_point.
|
|
409
|
-
:type t2d: float
|
|
410
402
|
"""
|
|
411
403
|
...
|
|
412
404
|
|
|
@@ -422,17 +414,11 @@ class CurvePointIterator:
|
|
|
422
414
|
:type: CurvePoint
|
|
423
415
|
"""
|
|
424
416
|
|
|
425
|
-
t:
|
|
426
|
-
""" The curvilinear abscissa of the current point.
|
|
417
|
+
t: typing.Any
|
|
418
|
+
""" The curvilinear abscissa of the current point."""
|
|
427
419
|
|
|
428
|
-
:
|
|
429
|
-
"""
|
|
430
|
-
|
|
431
|
-
u: float
|
|
432
|
-
""" The point parameter at the current point in the stroke (0 <= u <= 1).
|
|
433
|
-
|
|
434
|
-
:type: float
|
|
435
|
-
"""
|
|
420
|
+
u: typing.Any
|
|
421
|
+
""" The point parameter at the current point in the stroke (0 <= u <= 1)."""
|
|
436
422
|
|
|
437
423
|
def __init__(self):
|
|
438
424
|
"""Builds a CurvePointIterator object using either the default constructor,
|
|
@@ -450,14 +436,13 @@ class CurvePointIterator:
|
|
|
450
436
|
"""
|
|
451
437
|
...
|
|
452
438
|
|
|
453
|
-
def __init__(self, step
|
|
439
|
+
def __init__(self, step=0.0):
|
|
454
440
|
"""Builds a CurvePointIterator object using either the default constructor,
|
|
455
441
|
copy constructor, or the overloaded constructor.
|
|
456
442
|
|
|
457
443
|
:param step: A resampling resolution with which the curve is resampled.
|
|
458
444
|
If zero, no resampling is done (i.e., the iterator iterates over
|
|
459
445
|
initial vertices).
|
|
460
|
-
:type step: float
|
|
461
446
|
"""
|
|
462
447
|
...
|
|
463
448
|
|
|
@@ -562,19 +547,13 @@ false.
|
|
|
562
547
|
:type: bool
|
|
563
548
|
"""
|
|
564
549
|
|
|
565
|
-
material_index_left:
|
|
566
|
-
""" The index of the material of the face lying on the left of the FEdge.
|
|
567
|
-
|
|
568
|
-
:type: int
|
|
569
|
-
"""
|
|
550
|
+
material_index_left: typing.Any
|
|
551
|
+
""" The index of the material of the face lying on the left of the FEdge."""
|
|
570
552
|
|
|
571
|
-
material_index_right:
|
|
553
|
+
material_index_right: typing.Any
|
|
572
554
|
""" The index of the material of the face lying on the right of the FEdge.
|
|
573
555
|
If this FEdge is a border, it has no Face on its right and therefore
|
|
574
|
-
no material.
|
|
575
|
-
|
|
576
|
-
:type: int
|
|
577
|
-
"""
|
|
556
|
+
no material."""
|
|
578
557
|
|
|
579
558
|
material_left: Material
|
|
580
559
|
""" The material of the face lying on the left of the FEdge.
|
|
@@ -647,11 +626,8 @@ class FEdgeSmooth:
|
|
|
647
626
|
:type: Material
|
|
648
627
|
"""
|
|
649
628
|
|
|
650
|
-
material_index:
|
|
651
|
-
""" The index of the material of the face that this FEdge is running across.
|
|
652
|
-
|
|
653
|
-
:type: int
|
|
654
|
-
"""
|
|
629
|
+
material_index: typing.Any
|
|
630
|
+
""" The index of the material of the face that this FEdge is running across."""
|
|
655
631
|
|
|
656
632
|
normal: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
657
633
|
""" The normal of the face that this FEdge is running across.
|
|
@@ -689,17 +665,11 @@ class FEdgeSmooth:
|
|
|
689
665
|
class Id:
|
|
690
666
|
"""Class for representing an object Id."""
|
|
691
667
|
|
|
692
|
-
first:
|
|
693
|
-
""" The first number constituting the Id.
|
|
668
|
+
first: typing.Any
|
|
669
|
+
""" The first number constituting the Id."""
|
|
694
670
|
|
|
695
|
-
:
|
|
696
|
-
"""
|
|
697
|
-
|
|
698
|
-
second: int
|
|
699
|
-
""" The second number constituting the Id.
|
|
700
|
-
|
|
701
|
-
:type: int
|
|
702
|
-
"""
|
|
671
|
+
second: typing.Any
|
|
672
|
+
""" The second number constituting the Id."""
|
|
703
673
|
|
|
704
674
|
def __init__(self, brother):
|
|
705
675
|
"""Build the Id from two numbers or another `Id` using the copy constructor.
|
|
@@ -708,13 +678,11 @@ class Id:
|
|
|
708
678
|
"""
|
|
709
679
|
...
|
|
710
680
|
|
|
711
|
-
def __init__(self, first
|
|
681
|
+
def __init__(self, first=0, second=0):
|
|
712
682
|
"""Build the Id from two numbers or another `Id` using the copy constructor.
|
|
713
683
|
|
|
714
684
|
:param first:
|
|
715
|
-
:type first: int
|
|
716
685
|
:param second: The second number.
|
|
717
|
-
:type second: int
|
|
718
686
|
"""
|
|
719
687
|
...
|
|
720
688
|
|
|
@@ -759,23 +727,14 @@ class Interface0D:
|
|
|
759
727
|
:type: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
760
728
|
"""
|
|
761
729
|
|
|
762
|
-
projected_x:
|
|
763
|
-
""" The X coordinate of the projected 3D point of this 0D element.
|
|
730
|
+
projected_x: typing.Any
|
|
731
|
+
""" The X coordinate of the projected 3D point of this 0D element."""
|
|
764
732
|
|
|
765
|
-
:
|
|
766
|
-
"""
|
|
767
|
-
|
|
768
|
-
projected_y: float
|
|
769
|
-
""" The Y coordinate of the projected 3D point of this 0D element.
|
|
733
|
+
projected_y: typing.Any
|
|
734
|
+
""" The Y coordinate of the projected 3D point of this 0D element."""
|
|
770
735
|
|
|
771
|
-
:
|
|
772
|
-
"""
|
|
773
|
-
|
|
774
|
-
projected_z: float
|
|
775
|
-
""" The Z coordinate of the projected 3D point of this 0D element.
|
|
776
|
-
|
|
777
|
-
:type: float
|
|
778
|
-
"""
|
|
736
|
+
projected_z: typing.Any
|
|
737
|
+
""" The Z coordinate of the projected 3D point of this 0D element."""
|
|
779
738
|
|
|
780
739
|
def __init__(self):
|
|
781
740
|
"""Default constructor."""
|
|
@@ -813,17 +772,11 @@ class, the .object property refers to a `StrokeVertex` object.
|
|
|
813
772
|
:type: Interface0D
|
|
814
773
|
"""
|
|
815
774
|
|
|
816
|
-
t:
|
|
817
|
-
""" The curvilinear abscissa of the current point.
|
|
818
|
-
|
|
819
|
-
:type: float
|
|
820
|
-
"""
|
|
821
|
-
|
|
822
|
-
u: float
|
|
823
|
-
""" The point parameter at the current point in the 1D element (0 <= u <= 1).
|
|
775
|
+
t: typing.Any
|
|
776
|
+
""" The curvilinear abscissa of the current point."""
|
|
824
777
|
|
|
825
|
-
:
|
|
826
|
-
"""
|
|
778
|
+
u: typing.Any
|
|
779
|
+
""" The point parameter at the current point in the 1D element (0 <= u <= 1)."""
|
|
827
780
|
|
|
828
781
|
def __init__(self, brother: Interface0DIterator):
|
|
829
782
|
"""Construct a nested Interface0DIterator using either the copy constructor
|
|
@@ -852,11 +805,8 @@ class Interface1D:
|
|
|
852
805
|
:type: Id
|
|
853
806
|
"""
|
|
854
807
|
|
|
855
|
-
length_2d:
|
|
856
|
-
""" The 2D length of this Interface1D.
|
|
857
|
-
|
|
858
|
-
:type: float
|
|
859
|
-
"""
|
|
808
|
+
length_2d: typing.Any
|
|
809
|
+
""" The 2D length of this Interface1D."""
|
|
860
810
|
|
|
861
811
|
name: str
|
|
862
812
|
""" The string of the name of the 1D element.
|
|
@@ -870,17 +820,14 @@ class Interface1D:
|
|
|
870
820
|
:type: Nature
|
|
871
821
|
"""
|
|
872
822
|
|
|
873
|
-
time_stamp:
|
|
874
|
-
""" The time stamp of the 1D element, mainly used for selection.
|
|
875
|
-
|
|
876
|
-
:type: int
|
|
877
|
-
"""
|
|
823
|
+
time_stamp: typing.Any
|
|
824
|
+
""" The time stamp of the 1D element, mainly used for selection."""
|
|
878
825
|
|
|
879
826
|
def __init__(self):
|
|
880
827
|
"""Default constructor."""
|
|
881
828
|
...
|
|
882
829
|
|
|
883
|
-
def points_begin(self, t
|
|
830
|
+
def points_begin(self, t=0.0):
|
|
884
831
|
"""Returns an iterator over the Interface1D points, pointing to the
|
|
885
832
|
first point. The difference with vertices_begin() is that here we can
|
|
886
833
|
iterate over points of the 1D element at a any given sampling.
|
|
@@ -888,13 +835,12 @@ class Interface1D:
|
|
|
888
835
|
|
|
889
836
|
:param t: A sampling with which we want to iterate over points of
|
|
890
837
|
this 1D element.
|
|
891
|
-
:type t: float
|
|
892
838
|
:return: An Interface0DIterator pointing to the first point.
|
|
893
839
|
:rtype: Interface0DIterator
|
|
894
840
|
"""
|
|
895
841
|
...
|
|
896
842
|
|
|
897
|
-
def points_end(self, t
|
|
843
|
+
def points_end(self, t=0.0):
|
|
898
844
|
"""Returns an iterator over the Interface1D points, pointing after the
|
|
899
845
|
last point. The difference with vertices_end() is that here we can
|
|
900
846
|
iterate over points of the 1D element at a given sampling. Indeed,
|
|
@@ -902,7 +848,6 @@ class Interface1D:
|
|
|
902
848
|
|
|
903
849
|
:param t: A sampling with which we want to iterate over points of
|
|
904
850
|
this 1D element.
|
|
905
|
-
:type t: float
|
|
906
851
|
:return: An Interface0DIterator pointing after the last point.
|
|
907
852
|
:rtype: Interface0DIterator
|
|
908
853
|
"""
|
|
@@ -986,17 +931,11 @@ class Material:
|
|
|
986
931
|
:type: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
987
932
|
"""
|
|
988
933
|
|
|
989
|
-
priority:
|
|
990
|
-
""" Line color priority of the material.
|
|
934
|
+
priority: typing.Any
|
|
935
|
+
""" Line color priority of the material."""
|
|
991
936
|
|
|
992
|
-
:
|
|
993
|
-
"""
|
|
994
|
-
|
|
995
|
-
shininess: float
|
|
996
|
-
""" Shininess coefficient of the material.
|
|
997
|
-
|
|
998
|
-
:type: float
|
|
999
|
-
"""
|
|
937
|
+
shininess: typing.Any
|
|
938
|
+
""" Shininess coefficient of the material."""
|
|
1000
939
|
|
|
1001
940
|
specular: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
1002
941
|
""" RGBA components of the specular color of the material.
|
|
@@ -1027,8 +966,8 @@ class Material:
|
|
|
1027
966
|
ambient: typing.Union[typing.Sequence[float], mathutils.Vector, list],
|
|
1028
967
|
specular: typing.Union[typing.Sequence[float], mathutils.Vector, list],
|
|
1029
968
|
emission: typing.Union[typing.Sequence[float], mathutils.Vector, list],
|
|
1030
|
-
shininess
|
|
1031
|
-
priority
|
|
969
|
+
shininess,
|
|
970
|
+
priority,
|
|
1032
971
|
):
|
|
1033
972
|
"""Creates a `FrsMaterial` using either default constructor,
|
|
1034
973
|
copy constructor, or an overloaded constructor
|
|
@@ -1044,9 +983,7 @@ class Material:
|
|
|
1044
983
|
:param emission: The emissive color.
|
|
1045
984
|
:type emission: typing.Union[typing.Sequence[float], mathutils.Vector, list]
|
|
1046
985
|
:param shininess: The shininess coefficient.
|
|
1047
|
-
:type shininess: float
|
|
1048
986
|
:param priority: The line color priority.
|
|
1049
|
-
:type priority: int
|
|
1050
987
|
"""
|
|
1051
988
|
...
|
|
1052
989
|
|
|
@@ -1065,23 +1002,20 @@ class Nature:
|
|
|
1065
1002
|
class Noise:
|
|
1066
1003
|
"""Class to provide Perlin noise functionalities.Undocumented, consider contributing.Undocumented, consider contributing."""
|
|
1067
1004
|
|
|
1068
|
-
def __init__(self, seed
|
|
1005
|
+
def __init__(self, seed=-1):
|
|
1069
1006
|
"""Builds a Noise object. Seed is an optional argument. The seed value is used
|
|
1070
1007
|
as a seed for random number generation if it is equal to or greater than zero;
|
|
1071
1008
|
otherwise, time is used as a seed.
|
|
1072
1009
|
|
|
1073
1010
|
:param seed: Seed for random number generation.
|
|
1074
|
-
:type seed: int
|
|
1075
1011
|
"""
|
|
1076
1012
|
...
|
|
1077
1013
|
|
|
1078
|
-
def smoothNoise1(self, v
|
|
1014
|
+
def smoothNoise1(self, v):
|
|
1079
1015
|
"""Returns a smooth noise value for a 1D element.
|
|
1080
1016
|
|
|
1081
1017
|
:param v: One-dimensional sample point.
|
|
1082
|
-
:type v: float
|
|
1083
1018
|
:return: A smooth noise value.
|
|
1084
|
-
:rtype: float
|
|
1085
1019
|
"""
|
|
1086
1020
|
...
|
|
1087
1021
|
|
|
@@ -1093,7 +1027,6 @@ class Noise:
|
|
|
1093
1027
|
:param v: Two-dimensional sample point.
|
|
1094
1028
|
:type v: typing.Union[typing.Sequence[float], mathutils.Vector, list]
|
|
1095
1029
|
:return: A smooth noise value.
|
|
1096
|
-
:rtype: float
|
|
1097
1030
|
"""
|
|
1098
1031
|
...
|
|
1099
1032
|
|
|
@@ -1105,67 +1038,53 @@ class Noise:
|
|
|
1105
1038
|
:param v: Three-dimensional sample point.
|
|
1106
1039
|
:type v: typing.Union[typing.Sequence[float], mathutils.Vector, list]
|
|
1107
1040
|
:return: A smooth noise value.
|
|
1108
|
-
:rtype: float
|
|
1109
1041
|
"""
|
|
1110
1042
|
...
|
|
1111
1043
|
|
|
1112
|
-
def turbulence1(self, v
|
|
1044
|
+
def turbulence1(self, v, freq, amp, oct=4):
|
|
1113
1045
|
"""Returns a noise value for a 1D element.
|
|
1114
1046
|
|
|
1115
1047
|
:param v: One-dimensional sample point.
|
|
1116
|
-
:type v: float
|
|
1117
1048
|
:param freq: Noise frequency.
|
|
1118
|
-
:type freq: float
|
|
1119
1049
|
:param amp: Amplitude.
|
|
1120
|
-
:type amp: float
|
|
1121
1050
|
:param oct: Number of octaves.
|
|
1122
|
-
:type oct: int
|
|
1123
1051
|
:return: A noise value.
|
|
1124
|
-
:rtype: float
|
|
1125
1052
|
"""
|
|
1126
1053
|
...
|
|
1127
1054
|
|
|
1128
1055
|
def turbulence2(
|
|
1129
1056
|
self,
|
|
1130
1057
|
v: typing.Union[typing.Sequence[float], mathutils.Vector, list],
|
|
1131
|
-
freq
|
|
1132
|
-
amp
|
|
1133
|
-
oct
|
|
1134
|
-
)
|
|
1058
|
+
freq,
|
|
1059
|
+
amp,
|
|
1060
|
+
oct=4,
|
|
1061
|
+
):
|
|
1135
1062
|
"""Returns a noise value for a 2D element.
|
|
1136
1063
|
|
|
1137
1064
|
:param v: Two-dimensional sample point.
|
|
1138
1065
|
:type v: typing.Union[typing.Sequence[float], mathutils.Vector, list]
|
|
1139
1066
|
:param freq: Noise frequency.
|
|
1140
|
-
:type freq: float
|
|
1141
1067
|
:param amp: Amplitude.
|
|
1142
|
-
:type amp: float
|
|
1143
1068
|
:param oct: Number of octaves.
|
|
1144
|
-
:type oct: int
|
|
1145
1069
|
:return: A noise value.
|
|
1146
|
-
:rtype: float
|
|
1147
1070
|
"""
|
|
1148
1071
|
...
|
|
1149
1072
|
|
|
1150
1073
|
def turbulence3(
|
|
1151
1074
|
self,
|
|
1152
1075
|
v: typing.Union[typing.Sequence[float], mathutils.Vector, list],
|
|
1153
|
-
freq
|
|
1154
|
-
amp
|
|
1155
|
-
oct
|
|
1156
|
-
)
|
|
1076
|
+
freq,
|
|
1077
|
+
amp,
|
|
1078
|
+
oct=4,
|
|
1079
|
+
):
|
|
1157
1080
|
"""Returns a noise value for a 3D element.
|
|
1158
1081
|
|
|
1159
1082
|
:param v: Three-dimensional sample point.
|
|
1160
1083
|
:type v: typing.Union[typing.Sequence[float], mathutils.Vector, list]
|
|
1161
1084
|
:param freq: Noise frequency.
|
|
1162
|
-
:type freq: float
|
|
1163
1085
|
:param amp: Amplitude.
|
|
1164
|
-
:type amp: float
|
|
1165
1086
|
:param oct: Number of octaves.
|
|
1166
|
-
:type oct: int
|
|
1167
1087
|
:return: A noise value.
|
|
1168
|
-
:rtype: float
|
|
1169
1088
|
"""
|
|
1170
1089
|
...
|
|
1171
1090
|
|
|
@@ -1297,11 +1216,10 @@ class Operators:
|
|
|
1297
1216
|
...
|
|
1298
1217
|
|
|
1299
1218
|
@staticmethod
|
|
1300
|
-
def get_chain_from_index(i
|
|
1219
|
+
def get_chain_from_index(i):
|
|
1301
1220
|
"""Returns the Chain at the index in the current set of Chains.
|
|
1302
1221
|
|
|
1303
1222
|
:param i: index (0 <= i < Operators.get_chains_size()).
|
|
1304
|
-
:type i: int
|
|
1305
1223
|
:return: The Chain object.
|
|
1306
1224
|
:rtype: Chain
|
|
1307
1225
|
"""
|
|
@@ -1312,16 +1230,14 @@ class Operators:
|
|
|
1312
1230
|
"""Returns the number of Chains.
|
|
1313
1231
|
|
|
1314
1232
|
:return: The number of Chains.
|
|
1315
|
-
:rtype: int
|
|
1316
1233
|
"""
|
|
1317
1234
|
...
|
|
1318
1235
|
|
|
1319
1236
|
@staticmethod
|
|
1320
|
-
def get_stroke_from_index(i
|
|
1237
|
+
def get_stroke_from_index(i):
|
|
1321
1238
|
"""Returns the Stroke at the index in the current set of Strokes.
|
|
1322
1239
|
|
|
1323
1240
|
:param i: index (0 <= i < Operators.get_strokes_size()).
|
|
1324
|
-
:type i: int
|
|
1325
1241
|
:return: The Stroke object.
|
|
1326
1242
|
:rtype: Stroke
|
|
1327
1243
|
"""
|
|
@@ -1332,25 +1248,22 @@ class Operators:
|
|
|
1332
1248
|
"""Returns the number of Strokes.
|
|
1333
1249
|
|
|
1334
1250
|
:return: The number of Strokes.
|
|
1335
|
-
:rtype: int
|
|
1336
1251
|
"""
|
|
1337
1252
|
...
|
|
1338
1253
|
|
|
1339
1254
|
@staticmethod
|
|
1340
|
-
def get_view_edges_size()
|
|
1255
|
+
def get_view_edges_size():
|
|
1341
1256
|
"""Returns the number of ViewEdges.
|
|
1342
1257
|
|
|
1343
1258
|
:return: The number of ViewEdges.
|
|
1344
|
-
:rtype: int
|
|
1345
1259
|
"""
|
|
1346
1260
|
...
|
|
1347
1261
|
|
|
1348
1262
|
@staticmethod
|
|
1349
|
-
def get_viewedge_from_index(i
|
|
1263
|
+
def get_viewedge_from_index(i):
|
|
1350
1264
|
"""Returns the ViewEdge at the index in the current set of ViewEdges.
|
|
1351
1265
|
|
|
1352
1266
|
:param i: index (0 <= i < Operators.get_view_edges_size()).
|
|
1353
|
-
:type i: int
|
|
1354
1267
|
:return: The ViewEdge object.
|
|
1355
1268
|
:rtype: ViewEdge
|
|
1356
1269
|
"""
|
|
@@ -1358,7 +1271,7 @@ class Operators:
|
|
|
1358
1271
|
|
|
1359
1272
|
@staticmethod
|
|
1360
1273
|
def recursive_split(
|
|
1361
|
-
func: UnaryFunction0DDouble, pred_1d: UnaryPredicate1D, sampling
|
|
1274
|
+
func: UnaryFunction0DDouble, pred_1d: UnaryPredicate1D, sampling=0.0
|
|
1362
1275
|
):
|
|
1363
1276
|
"""Splits the current set of chains in a recursive way. We process the
|
|
1364
1277
|
points of each chain (with a specified sampling) to find the point
|
|
@@ -1381,7 +1294,6 @@ class Operators:
|
|
|
1381
1294
|
predicates evaluation. (The chain is not actually resampled; a
|
|
1382
1295
|
virtual point only progresses along the curve using this
|
|
1383
1296
|
resolution.)
|
|
1384
|
-
:type sampling: float
|
|
1385
1297
|
"""
|
|
1386
1298
|
...
|
|
1387
1299
|
|
|
@@ -1390,7 +1302,7 @@ class Operators:
|
|
|
1390
1302
|
func: UnaryFunction0DDouble,
|
|
1391
1303
|
pred_0d: UnaryPredicate0D,
|
|
1392
1304
|
pred_1d: UnaryPredicate1D,
|
|
1393
|
-
sampling
|
|
1305
|
+
sampling=0.0,
|
|
1394
1306
|
):
|
|
1395
1307
|
"""Splits the current set of chains in a recursive way. We process the
|
|
1396
1308
|
points of each chain (with a specified sampling) to find the point
|
|
@@ -1419,7 +1331,6 @@ class Operators:
|
|
|
1419
1331
|
predicates evaluation. (The chain is not actually resampled; a
|
|
1420
1332
|
virtual point only progresses along the curve using this
|
|
1421
1333
|
resolution.)
|
|
1422
|
-
:type sampling: float
|
|
1423
1334
|
"""
|
|
1424
1335
|
...
|
|
1425
1336
|
|
|
@@ -1445,9 +1356,7 @@ class Operators:
|
|
|
1445
1356
|
|
|
1446
1357
|
@staticmethod
|
|
1447
1358
|
def sequential_split(
|
|
1448
|
-
starting_pred: UnaryPredicate0D,
|
|
1449
|
-
stopping_pred: UnaryPredicate0D,
|
|
1450
|
-
sampling: float = 0.0,
|
|
1359
|
+
starting_pred: UnaryPredicate0D, stopping_pred: UnaryPredicate0D, sampling=0.0
|
|
1451
1360
|
):
|
|
1452
1361
|
"""Splits each chain of the current set of chains in a sequential way.
|
|
1453
1362
|
The points of each chain are processed (with a specified sampling)
|
|
@@ -1465,12 +1374,11 @@ class Operators:
|
|
|
1465
1374
|
predicates evaluation. (The chain is not actually resampled;
|
|
1466
1375
|
a virtual point only progresses along the curve using this
|
|
1467
1376
|
resolution.)
|
|
1468
|
-
:type sampling: float
|
|
1469
1377
|
"""
|
|
1470
1378
|
...
|
|
1471
1379
|
|
|
1472
1380
|
@staticmethod
|
|
1473
|
-
def sequential_split(pred: UnaryPredicate0D, sampling
|
|
1381
|
+
def sequential_split(pred: UnaryPredicate0D, sampling=0.0):
|
|
1474
1382
|
"""Splits each chain of the current set of chains in a sequential way.
|
|
1475
1383
|
The points of each chain are processed (with a specified sampling)
|
|
1476
1384
|
sequentially. The first point of the initial chain is the
|
|
@@ -1485,7 +1393,6 @@ class Operators:
|
|
|
1485
1393
|
predicates evaluation. (The chain is not actually resampled;
|
|
1486
1394
|
a virtual point only progresses along the curve using this
|
|
1487
1395
|
resolution.)
|
|
1488
|
-
:type sampling: float
|
|
1489
1396
|
"""
|
|
1490
1397
|
...
|
|
1491
1398
|
|
|
@@ -1595,11 +1502,8 @@ derivative of the radial curvature at this SVertex, respectively.
|
|
|
1595
1502
|
has exactly one normal. In a smooth surface, an SVertex can have any
|
|
1596
1503
|
number of normals."""
|
|
1597
1504
|
|
|
1598
|
-
normals_size:
|
|
1599
|
-
""" The number of different normals for this SVertex.
|
|
1600
|
-
|
|
1601
|
-
:type: int
|
|
1602
|
-
"""
|
|
1505
|
+
normals_size: typing.Any
|
|
1506
|
+
""" The number of different normals for this SVertex."""
|
|
1603
1507
|
|
|
1604
1508
|
point_2d: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
1605
1509
|
""" The projected 3D coordinates of the SVertex.
|
|
@@ -1680,17 +1584,11 @@ class SVertexIterator:
|
|
|
1680
1584
|
:type: SVertex
|
|
1681
1585
|
"""
|
|
1682
1586
|
|
|
1683
|
-
t:
|
|
1684
|
-
""" The curvilinear abscissa of the current point.
|
|
1587
|
+
t: typing.Any
|
|
1588
|
+
""" The curvilinear abscissa of the current point."""
|
|
1685
1589
|
|
|
1686
|
-
:
|
|
1687
|
-
"""
|
|
1688
|
-
|
|
1689
|
-
u: float
|
|
1690
|
-
""" The point parameter at the current point in the 1D element (0 <= u <= 1).
|
|
1691
|
-
|
|
1692
|
-
:type: float
|
|
1693
|
-
"""
|
|
1590
|
+
u: typing.Any
|
|
1591
|
+
""" The point parameter at the current point in the 1D element (0 <= u <= 1)."""
|
|
1694
1592
|
|
|
1695
1593
|
def __init__(self):
|
|
1696
1594
|
"""Build an SVertexIterator using either the default constructor, copy constructor,or the overloaded constructor that starts iteration from an SVertex object vertex."""
|
|
@@ -1705,12 +1603,7 @@ class SVertexIterator:
|
|
|
1705
1603
|
...
|
|
1706
1604
|
|
|
1707
1605
|
def __init__(
|
|
1708
|
-
self,
|
|
1709
|
-
vertex: SVertex,
|
|
1710
|
-
begin: SVertex,
|
|
1711
|
-
previous_edge: FEdge,
|
|
1712
|
-
next_edge: FEdge,
|
|
1713
|
-
t: float,
|
|
1606
|
+
self, vertex: SVertex, begin: SVertex, previous_edge: FEdge, next_edge: FEdge, t
|
|
1714
1607
|
):
|
|
1715
1608
|
"""Build an SVertexIterator using either the default constructor, copy constructor,or the overloaded constructor that starts iteration from an SVertex object vertex.
|
|
1716
1609
|
|
|
@@ -1723,7 +1616,6 @@ class SVertexIterator:
|
|
|
1723
1616
|
:param next_edge: The next FEdge going out from vertex.
|
|
1724
1617
|
:type next_edge: FEdge
|
|
1725
1618
|
:param t: The curvilinear abscissa at vertex.
|
|
1726
|
-
:type t: float
|
|
1727
1619
|
"""
|
|
1728
1620
|
...
|
|
1729
1621
|
|
|
@@ -1740,11 +1632,8 @@ class Stroke:
|
|
|
1740
1632
|
:type: Id
|
|
1741
1633
|
"""
|
|
1742
1634
|
|
|
1743
|
-
length_2d:
|
|
1744
|
-
""" The 2D length of the Stroke.
|
|
1745
|
-
|
|
1746
|
-
:type: float
|
|
1747
|
-
"""
|
|
1635
|
+
length_2d: typing.Any
|
|
1636
|
+
""" The 2D length of the Stroke."""
|
|
1748
1637
|
|
|
1749
1638
|
medium_type: MediumType
|
|
1750
1639
|
""" The MediumType used for this Stroke.
|
|
@@ -1752,11 +1641,8 @@ class Stroke:
|
|
|
1752
1641
|
:type: MediumType
|
|
1753
1642
|
"""
|
|
1754
1643
|
|
|
1755
|
-
texture_id:
|
|
1756
|
-
""" The ID of the texture used to simulate th marks system for this Stroke.
|
|
1757
|
-
|
|
1758
|
-
:type: int
|
|
1759
|
-
"""
|
|
1644
|
+
texture_id: typing.Any
|
|
1645
|
+
""" The ID of the texture used to simulate th marks system for this Stroke."""
|
|
1760
1646
|
|
|
1761
1647
|
tips: bool
|
|
1762
1648
|
""" True if this Stroke uses a texture with tips, and false otherwise.
|
|
@@ -1775,7 +1661,7 @@ class Stroke:
|
|
|
1775
1661
|
"""
|
|
1776
1662
|
...
|
|
1777
1663
|
|
|
1778
|
-
def compute_sampling(self, n
|
|
1664
|
+
def compute_sampling(self, n):
|
|
1779
1665
|
"""Compute the sampling needed to get N vertices. If the
|
|
1780
1666
|
specified number of vertices is less than the actual number of
|
|
1781
1667
|
vertices, the actual sampling value is returned. (To remove Vertices,
|
|
@@ -1783,10 +1669,8 @@ class Stroke:
|
|
|
1783
1669
|
|
|
1784
1670
|
:param n: The number of stroke vertices we eventually want
|
|
1785
1671
|
in our Stroke.
|
|
1786
|
-
:type n: int
|
|
1787
1672
|
:return: The sampling that must be used in the Resample(float)
|
|
1788
1673
|
method.
|
|
1789
|
-
:rtype: float
|
|
1790
1674
|
"""
|
|
1791
1675
|
...
|
|
1792
1676
|
|
|
@@ -1816,7 +1700,7 @@ class Stroke:
|
|
|
1816
1700
|
"""
|
|
1817
1701
|
...
|
|
1818
1702
|
|
|
1819
|
-
def resample(self, n
|
|
1703
|
+
def resample(self, n):
|
|
1820
1704
|
"""Resamples the stroke so using one of two methods with the goal
|
|
1821
1705
|
of creating a stroke with fewer points and the same shape.
|
|
1822
1706
|
|
|
@@ -1824,28 +1708,25 @@ class Stroke:
|
|
|
1824
1708
|
it is going to add N-vertices_size, where vertices_size is the
|
|
1825
1709
|
number of points we already have. If vertices_size >= N, no
|
|
1826
1710
|
resampling is done.
|
|
1827
|
-
:type n: int
|
|
1828
1711
|
"""
|
|
1829
1712
|
...
|
|
1830
1713
|
|
|
1831
|
-
def resample(self, sampling
|
|
1714
|
+
def resample(self, sampling):
|
|
1832
1715
|
"""Resamples the stroke so using one of two methods with the goal
|
|
1833
1716
|
of creating a stroke with fewer points and the same shape.
|
|
1834
1717
|
|
|
1835
1718
|
:param sampling: Resamples the stroke with a given sampling value. If the
|
|
1836
1719
|
sampling is smaller than the actual sampling value, no resampling is done.
|
|
1837
|
-
:type sampling: float
|
|
1838
1720
|
"""
|
|
1839
1721
|
...
|
|
1840
1722
|
|
|
1841
|
-
def stroke_vertices_begin(self, t
|
|
1723
|
+
def stroke_vertices_begin(self, t=0.0):
|
|
1842
1724
|
"""Returns a StrokeVertexIterator pointing on the first StrokeVertex of
|
|
1843
1725
|
the Stroke. One can specify a sampling value to re-sample the Stroke
|
|
1844
1726
|
on the fly if needed.
|
|
1845
1727
|
|
|
1846
1728
|
:param t: The resampling value with which we want our Stroke to be
|
|
1847
1729
|
resampled. If 0 is specified, no resampling is done.
|
|
1848
|
-
:type t: float
|
|
1849
1730
|
:return: A StrokeVertexIterator pointing on the first StrokeVertex.
|
|
1850
1731
|
:rtype: StrokeVertexIterator
|
|
1851
1732
|
"""
|
|
@@ -1864,7 +1745,6 @@ class Stroke:
|
|
|
1864
1745
|
"""Returns the number of StrokeVertex constituting the Stroke.
|
|
1865
1746
|
|
|
1866
1747
|
:return: The number of stroke vertices.
|
|
1867
|
-
:rtype: int
|
|
1868
1748
|
"""
|
|
1869
1749
|
...
|
|
1870
1750
|
|
|
@@ -1878,11 +1758,8 @@ class StrokeAttribute:
|
|
|
1878
1758
|
Vertex.
|
|
1879
1759
|
"""
|
|
1880
1760
|
|
|
1881
|
-
alpha:
|
|
1882
|
-
""" Alpha component of the stroke color.
|
|
1883
|
-
|
|
1884
|
-
:type: float
|
|
1885
|
-
"""
|
|
1761
|
+
alpha: typing.Any
|
|
1762
|
+
""" Alpha component of the stroke color."""
|
|
1886
1763
|
|
|
1887
1764
|
color: typing.Union[typing.Sequence[float], mathutils.Color]
|
|
1888
1765
|
""" RGB components of the stroke color.
|
|
@@ -1922,37 +1799,21 @@ when following the stroke.
|
|
|
1922
1799
|
"""
|
|
1923
1800
|
...
|
|
1924
1801
|
|
|
1925
|
-
def __init__(
|
|
1926
|
-
self,
|
|
1927
|
-
red: float,
|
|
1928
|
-
green: float,
|
|
1929
|
-
blue: float,
|
|
1930
|
-
alpha: float,
|
|
1931
|
-
thickness_right: float,
|
|
1932
|
-
thickness_left: float,
|
|
1933
|
-
):
|
|
1802
|
+
def __init__(self, red, green, blue, alpha, thickness_right, thickness_left):
|
|
1934
1803
|
"""Creates a `StrokeAttribute` object using either a default constructor,
|
|
1935
1804
|
copy constructor, overloaded constructor, or and interpolation constructor
|
|
1936
1805
|
to interpolate between two `StrokeAttribute` objects.
|
|
1937
1806
|
|
|
1938
1807
|
:param red: Red component of a stroke color.
|
|
1939
|
-
:type red: float
|
|
1940
1808
|
:param green: Green component of a stroke color.
|
|
1941
|
-
:type green: float
|
|
1942
1809
|
:param blue: Blue component of a stroke color.
|
|
1943
|
-
:type blue: float
|
|
1944
1810
|
:param alpha: Alpha component of a stroke color.
|
|
1945
|
-
:type alpha: float
|
|
1946
1811
|
:param thickness_right: Stroke thickness on the right.
|
|
1947
|
-
:type thickness_right: float
|
|
1948
1812
|
:param thickness_left: Stroke thickness on the left.
|
|
1949
|
-
:type thickness_left: float
|
|
1950
1813
|
"""
|
|
1951
1814
|
...
|
|
1952
1815
|
|
|
1953
|
-
def __init__(
|
|
1954
|
-
self, attribute1: StrokeAttribute, attribute2: StrokeAttribute, t: float
|
|
1955
|
-
):
|
|
1816
|
+
def __init__(self, attribute1: StrokeAttribute, attribute2: StrokeAttribute, t):
|
|
1956
1817
|
"""Creates a `StrokeAttribute` object using either a default constructor,
|
|
1957
1818
|
copy constructor, overloaded constructor, or and interpolation constructor
|
|
1958
1819
|
to interpolate between two `StrokeAttribute` objects.
|
|
@@ -1962,7 +1823,6 @@ when following the stroke.
|
|
|
1962
1823
|
:param attribute2: The second StrokeAttribute object.
|
|
1963
1824
|
:type attribute2: StrokeAttribute
|
|
1964
1825
|
:param t: The interpolation parameter (0 <= t <= 1).
|
|
1965
|
-
:type t: float
|
|
1966
1826
|
"""
|
|
1967
1827
|
...
|
|
1968
1828
|
|
|
@@ -1972,7 +1832,6 @@ when following the stroke.
|
|
|
1972
1832
|
:param name: The name of the attribute.
|
|
1973
1833
|
:type name: str
|
|
1974
1834
|
:return: The attribute value.
|
|
1975
|
-
:rtype: float
|
|
1976
1835
|
"""
|
|
1977
1836
|
...
|
|
1978
1837
|
|
|
@@ -2028,7 +1887,7 @@ when following the stroke.
|
|
|
2028
1887
|
"""
|
|
2029
1888
|
...
|
|
2030
1889
|
|
|
2031
|
-
def set_attribute_real(self, name: str, value
|
|
1890
|
+
def set_attribute_real(self, name: str, value):
|
|
2032
1891
|
"""Adds a user-defined attribute of float type. If there is no
|
|
2033
1892
|
attribute of the given name, it is added. Otherwise, the new value
|
|
2034
1893
|
replaces the old one.
|
|
@@ -2036,7 +1895,6 @@ when following the stroke.
|
|
|
2036
1895
|
:param name: The name of the attribute.
|
|
2037
1896
|
:type name: str
|
|
2038
1897
|
:param value: The attribute value.
|
|
2039
|
-
:type value: float
|
|
2040
1898
|
"""
|
|
2041
1899
|
...
|
|
2042
1900
|
|
|
@@ -2109,11 +1967,8 @@ class StrokeVertex:
|
|
|
2109
1967
|
:type: StrokeAttribute
|
|
2110
1968
|
"""
|
|
2111
1969
|
|
|
2112
|
-
curvilinear_abscissa:
|
|
2113
|
-
""" Curvilinear abscissa of this StrokeVertex in the Stroke.
|
|
2114
|
-
|
|
2115
|
-
:type: float
|
|
2116
|
-
"""
|
|
1970
|
+
curvilinear_abscissa: typing.Any
|
|
1971
|
+
""" Curvilinear abscissa of this StrokeVertex in the Stroke."""
|
|
2117
1972
|
|
|
2118
1973
|
point: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
2119
1974
|
""" 2D point coordinates.
|
|
@@ -2121,18 +1976,12 @@ class StrokeVertex:
|
|
|
2121
1976
|
:type: typing.Union[typing.Sequence[float], mathutils.Vector]
|
|
2122
1977
|
"""
|
|
2123
1978
|
|
|
2124
|
-
stroke_length:
|
|
1979
|
+
stroke_length: typing.Any
|
|
2125
1980
|
""" Stroke length (it is only a value retained by the StrokeVertex,
|
|
2126
|
-
and it won't change the real stroke length).
|
|
1981
|
+
and it won't change the real stroke length)."""
|
|
2127
1982
|
|
|
2128
|
-
:
|
|
2129
|
-
"""
|
|
2130
|
-
|
|
2131
|
-
u: float
|
|
2132
|
-
""" Curvilinear abscissa of this StrokeVertex in the Stroke.
|
|
2133
|
-
|
|
2134
|
-
:type: float
|
|
2135
|
-
"""
|
|
1983
|
+
u: typing.Any
|
|
1984
|
+
""" Curvilinear abscissa of this StrokeVertex in the Stroke."""
|
|
2136
1985
|
|
|
2137
1986
|
def __init__(self):
|
|
2138
1987
|
"""Builds a `StrokeVertex` using the default constructor,
|
|
@@ -2152,9 +2001,7 @@ and it won't change the real stroke length).
|
|
|
2152
2001
|
"""
|
|
2153
2002
|
...
|
|
2154
2003
|
|
|
2155
|
-
def __init__(
|
|
2156
|
-
self, first_vertex: StrokeVertex, second_vertex: StrokeVertex, t3d: float
|
|
2157
|
-
):
|
|
2004
|
+
def __init__(self, first_vertex: StrokeVertex, second_vertex: StrokeVertex, t3d):
|
|
2158
2005
|
"""Builds a `StrokeVertex` using the default constructor,
|
|
2159
2006
|
copy constructor, from 2 `StrokeVertex` and an interpolation parameter,
|
|
2160
2007
|
from a CurvePoint, from a SVertex, or a `SVertex` and a `StrokeAttribute` object.
|
|
@@ -2164,7 +2011,6 @@ and it won't change the real stroke length).
|
|
|
2164
2011
|
:param second_vertex: The second StrokeVertex.
|
|
2165
2012
|
:type second_vertex: StrokeVertex
|
|
2166
2013
|
:param t3d: An interpolation parameter.
|
|
2167
|
-
:type t3d: float
|
|
2168
2014
|
"""
|
|
2169
2015
|
...
|
|
2170
2016
|
|
|
@@ -2229,17 +2075,11 @@ For its counterpart (pointing to the first valid element), use it.is_begin.
|
|
|
2229
2075
|
:type: StrokeVertex
|
|
2230
2076
|
"""
|
|
2231
2077
|
|
|
2232
|
-
t:
|
|
2233
|
-
""" The curvilinear abscissa of the current point.
|
|
2234
|
-
|
|
2235
|
-
:type: float
|
|
2236
|
-
"""
|
|
2078
|
+
t: typing.Any
|
|
2079
|
+
""" The curvilinear abscissa of the current point."""
|
|
2237
2080
|
|
|
2238
|
-
u:
|
|
2239
|
-
""" The point parameter at the current point in the stroke (0 <= u <= 1).
|
|
2240
|
-
|
|
2241
|
-
:type: float
|
|
2242
|
-
"""
|
|
2081
|
+
u: typing.Any
|
|
2082
|
+
""" The point parameter at the current point in the stroke (0 <= u <= 1)."""
|
|
2243
2083
|
|
|
2244
2084
|
def __init__(self):
|
|
2245
2085
|
"""Creates a `StrokeVertexIterator` using either the
|
|
@@ -2739,11 +2579,8 @@ class ViewEdge:
|
|
|
2739
2579
|
a set of FEdges.
|
|
2740
2580
|
"""
|
|
2741
2581
|
|
|
2742
|
-
chaining_time_stamp:
|
|
2743
|
-
""" The time stamp of this ViewEdge.
|
|
2744
|
-
|
|
2745
|
-
:type: int
|
|
2746
|
-
"""
|
|
2582
|
+
chaining_time_stamp: typing.Any
|
|
2583
|
+
""" The time stamp of this ViewEdge."""
|
|
2747
2584
|
|
|
2748
2585
|
first_fedge: FEdge
|
|
2749
2586
|
""" The first FEdge that constitutes this ViewEdge.
|
|
@@ -2794,11 +2631,8 @@ belongs to. If no object is occluded, this property is set to None.
|
|
|
2794
2631
|
:type: ViewShape
|
|
2795
2632
|
"""
|
|
2796
2633
|
|
|
2797
|
-
qi:
|
|
2798
|
-
""" The quantitative invisibility.
|
|
2799
|
-
|
|
2800
|
-
:type: int
|
|
2801
|
-
"""
|
|
2634
|
+
qi: typing.Any
|
|
2635
|
+
""" The quantitative invisibility."""
|
|
2802
2636
|
|
|
2803
2637
|
viewshape: ViewShape
|
|
2804
2638
|
""" The ViewShape to which this ViewEdge belongs to.
|
|
@@ -2896,25 +2730,21 @@ class ViewMap:
|
|
|
2896
2730
|
"""Default constructor."""
|
|
2897
2731
|
...
|
|
2898
2732
|
|
|
2899
|
-
def get_closest_fedge(self, x
|
|
2733
|
+
def get_closest_fedge(self, x, y):
|
|
2900
2734
|
"""Gets the FEdge nearest to the 2D point specified as arguments.
|
|
2901
2735
|
|
|
2902
2736
|
:param x: X coordinate of a 2D point.
|
|
2903
|
-
:type x: float
|
|
2904
2737
|
:param y: Y coordinate of a 2D point.
|
|
2905
|
-
:type y: float
|
|
2906
2738
|
:return: The FEdge nearest to the specified 2D point.
|
|
2907
2739
|
:rtype: FEdge
|
|
2908
2740
|
"""
|
|
2909
2741
|
...
|
|
2910
2742
|
|
|
2911
|
-
def get_closest_viewedge(self, x
|
|
2743
|
+
def get_closest_viewedge(self, x, y):
|
|
2912
2744
|
"""Gets the ViewEdge nearest to the 2D point specified as arguments.
|
|
2913
2745
|
|
|
2914
2746
|
:param x: X coordinate of a 2D point.
|
|
2915
|
-
:type x: float
|
|
2916
2747
|
:param y: Y coordinate of a 2D point.
|
|
2917
|
-
:type y: float
|
|
2918
2748
|
:return: The ViewEdge nearest to the specified 2D point.
|
|
2919
2749
|
:rtype: ViewEdge
|
|
2920
2750
|
"""
|